avoiding redirect

From: Date: Sat, 17 Mar 2001 00:41:25 +0000
Subject: avoiding redirect
Groups: php.general 
Request: Send a blank email to php-general+get-44346@lists.php.net to get a copy of this message
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

« previous php.general (#44346) next »