php header function...
| From: | Brad Apps | Date: | Sat, 09 Nov 2002 02:55:30 +0000 |
| Subject: | php header function... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-123535@lists.php.net to get a copy of this message | ||
Hey,
Got a problem using the header function on a file upload page to redirect
the user back to a web page. Here's the code:
#!/usr/bin/php -q
<?php
$filedest = "/home/$directory";
if (copy($clientfile,"$filedest/$clientfile_name"))
header("Location: http://www.webfusion.net.au...");
else
print("Error");
Any ideas on how i would get this to work. The error which shows is
Warning: Cannot add header information - headers already sent....
Thanks in advance.