Re: [PHP-WIN] cache control at client

2007-04-12 Thread bedul
i have some problem like u said. and i always fake the url by give $url.="?".time(); soo it will reload.. and change to new page when refresh - Original Message - From: "Alf Stockton" <[EMAIL PROTECTED]> To: "php windows" <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2007 10:50 PM Subject:

Re: [PHP-WIN] cache control at client

2007-04-12 Thread Rich Buggy
Alf I had a similar problem trying to expire pages so that the user received a "Page Expired" message when they clicked on the back button. I discovered that if you set Cache-control to no-cache then Firefox/IE ignore the expires date. The solution that I got working on IE7 was to set Cache-contro

Re: [PHP-WIN] Calling PHP from PHP

2007-04-12 Thread Jarrett Meyer
header("Location:next-script.php"); would work as long as nothing has been written to the screen. You can write to a DB, a cookie, a session, a file, etc, though to keep data flowing. Thank you, Jarrett Meyer http://jarrettmeyer.blogspot.com No trees were harmed during this transmission; howev

Re: [PHP-WIN] cache control at client

2007-04-12 Thread Alf Stockton
Mikael Grön wrote: What I generally use for no-cache is this: Also, to force it to work correctly, I've seen people do stuff like this: Pragma No-cache This is an example of where to place the second header section so that the "Pragama, No-Cache" metatag will work as it is supposed to.

Re: [PHP-WIN] cache control at client

2007-04-12 Thread Mikael Grön
What I generally use for no-cache is this: Also, to force it to work correctly, I've seen people do stuff like this: Pragma No-cache This is an example of where to place the second header section so that the "Pragama, No-Cache" metatag will work as it is supposed to. Supposedly the

Re: [PHP-WIN] Calling PHP from PHP

2007-04-12 Thread Mikael Grön
If you're not using an external program or script to run all your php scripts, but want one script to execute another, then include or require are the only methods that'll do the job. Putting the include / require -part in the end of the first script is exactly the same as running them both afte

[PHP-WIN] cache control at client

2007-04-12 Thread Alf Stockton
I have set:- in the header are of all my pages but still until the user does a reload in both IE & Firefox they do not see the new screen. Please tell me what else I can do to force the browser to not cache anything ever. I am not in a position of altering the client browser settings despite t

Re: [PHP-WIN] Calling PHP from PHP

2007-04-12 Thread Alf Stockton
Mikael Grön wrote: Sidenote: You can also do: $dir = "folder/of/include/files"; $files = opendir($dir); while ($file = readdir($file)): if (substr($file,-4) == '.php'): include_once($dir.'/'.$file); endif; endwhile; but I wouldn't recommend it. :P No neither would I recommend that

Re: [PHP-WIN] Fw: change ? into 'slash' (solved but need more light)

2007-04-12 Thread bedul
nothing less.. that a correct. - Original Message - From: "Mikael Grön" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2007 1:26 PM Subject: Re: [PHP-WIN] Fw: change ? into 'slash' > Is this what you mean? > > www.server.com/index.php?pageid=123 > becomes > www.serv