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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to