I use an upload form and use the following code to process it.
<?php
if ($form == "yes")
{
$dir = chdir("http://shawazi.addr.com/Art/");
copy($userArt, "$dir");
}
?>
I get the error
Warning: ChDir: No such file or directory (errno 2) in /usr163/home/s/h/shawazi/public_html/submitart.php on line 6
(from $dir)
Warning: Unable to create '': No such file or directory in /usr163/home/s/h/shawazi/public_html/submitart.php on line 7
(from uploading)
I set the folder CHMOD to writeable and executable so why would it say that?