[PHP] reload page without use header

2012-06-17 Thread Farzan Dalaee
hi guys is there any way to reload page without using header('location :index.php'); and javascript? Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reload page without use header

2012-06-17 Thread Simon Schick
Hi, Farzan Redirecting is something you can do in a way the user doesn't see anything (I call them server-side redirects) and in a way the user get's informed that the url has changed (I call them client-side redirects). What I mean with server-side (mostly called internal redirects) is if the

Re: [PHP] reload page without use header

2012-06-17 Thread As'ad Djamalilleil
you can use header(Refresh: 60); to refresh your current page if that what you really need. 60 means it will be refresh in 60 seconds. On Sun, Jun 17, 2012 at 12:06 AM, Farzan Dalaee farzan.dal...@gmail.comwrote: hi guys is there any way to reload page without using header('location

Re: [PHP] reload page without use header

2012-06-17 Thread Stuart Dallas
On 17 Jun 2012, at 09:06, Farzan Dalaee wrote: is there any way to reload page without using header('location :index.php'); and javascript? When you say reload page do you mean redirect to another page or refresh the current page? You can reload or redirect a page using a meta tag in your

[PHP] phpinfo

2012-06-17 Thread Jim Giner
When one executes a phpinfo call, the display of info broken into the various sections mostly makes sense. The $_SERVER vars are listed with a _SERVER name, the environment ones show _ENV, and so on. But I question what are the duplicate ones that dont' have a prefix name. My concern is the

[PHP] Missing something simple

2012-06-17 Thread Lester Caine
Serves me right for not starting this earlier, but I need to take a machine to site in the morning and now something is not playing ball. Windows XP 32bit up to date with updates ... PHP5.4.4 installed from php-5.4.4-Win32-VC9-x86.zip up and running fine from command line and via php -S

Re: [PHP] phpinfo

2012-06-17 Thread Matijn Woudt
On Sun, Jun 17, 2012 at 10:22 PM, Jim Giner jim.gi...@albanyhandball.com wrote: When one executes a phpinfo call, the display of info broken into the  various sections mostly makes sense. The $_SERVER vars are listed with a  _SERVER name, the environment ones show _ENV, and so on.  But I

Re: [PHP] phpinfo

2012-06-17 Thread Jim Giner
Matijn Woudt tijn...@gmail.com wrote in message news:cac_gtumpirenkswm2-lucwhbycmxdgg3a+hwr1aoqwiyz40...@mail.gmail.com... On Sun, Jun 17, 2012 at 10:22 PM, Jim Giner jim.gi...@albanyhandball.com wrote: When one executes a phpinfo call, the display of info broken into the various sections

Re: [PHP] phpinfo

2012-06-17 Thread Jim Giner
oops - read the notes for PUTENV. Did the 'delete' properly and now I have no entries for php_auth_pw. For those reading along - to remove the variable use putenv(varname) NOT putenv(varname= '' ); Thanks Martijn!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] else if vs switch

2012-06-17 Thread Jim Lucas
On 6/15/2012 3:29 PM, Joshua Kehn wrote: Way easier to just use a map. $mapping = array( 'Calgary' = abc@emailaddress, 'Brooks' = def@emailaddress, // etc ); $toaddress = $mapping[$city]; I would use this, but add a check to it. $mapping = array( 'default' =

Re: [PHP] else if vs switch

2012-06-17 Thread James
Same logical check with my personal preference ;) $toaddress = $mapping['default']; if ( isset($city) isset($mapping[$city]) ) { ... } -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Jim Lucas li...@cmsws.com wrote: On 6/15/2012 3:29 PM, Joshua Kehn wrote: Way easier

[PHP] IE9 Large Post Hangs for 5 Minutes Plus

2012-06-17 Thread Christopher Cowan
I'm working on an issue with IE9. I have a web app that posts a multipart form via Ajax. The content-length is about 1MB often larger (uploading GPS tracks). Chrome, Safari and Firefox all make the POST request then immediately (after the POST completes receives the response). IE on the other