I'm having problems with a simple script:
<?php
$size_limit = "1000000";
if($file_name !="" && $file_size <= $size_limit)
{
copy ("$file", "/home/fang/public_html/files/$file_name");
or die("Could not copy file");
}
else {
die("No file specified.");
}
?>
I'm getting alot of parse errors, notably on lines 4, 5, and 6, but I don't see them..
And yes i'm a PHP noob, be gentle. :glare:
And if it helps: [URL=This is the form and
http://www.sebszhost.com/~fang/upload/