Re: avoiding redirect

From: Date: Sat, 17 Mar 2001 17:25:02 +0000
Subject: Re: avoiding redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44404@lists.php.net to get a copy of this message
From memory, 3 will delay 3 seconds before redirect. Change to : printf ("<meta http-equiv=\"refresh\" content=\"0;URL=http://coolsite/test/newfile.html\">"); mat t <mat@remail.net> wrote in message news:20010317004125.AAA3D36F9@sitemail.everyone.net... > I have a form that allows user to either upload a file from the client to the server or take the contents of the textarea and dump it in a new file on the server. > > Unfortunately I have tried to make the form write the new file to the server and at the same time redirect to the this new file. It seems that php takes a second to write the new file and therefore only works if I delay the process by redirecting as follows: > > printf ("<meta http-equiv=\"refresh\" content=\"3;URL=http://coolsite/test/newfile.html\">"); > > Is there any better process I can use? > > > > _____________________________________________________________ > Pick up your email anywhere in the world ---> > http://www.remail.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#44404) next »