I'm having problems with the destination strings for my files. I'm using this code:
<?php
If(!copy($userfile, "I don't know what to put in here")){
echo("copy failed");
}
?>
I'm using freephp.digiro.net to host the site. In my root directory there's 5 dir:
ad
conf
htdocs
logs
tmp
Htdocs is the directory for my php files and tmp is the dir for php uploads. What i wanna know is how do i copy whatever's in the tmp dir to the htdocs dir. No matter what i try i keep getting this:
Warning: Unable to create '../htdocs/test.txt': Permission denied in /home/httpd/vhosts/watcher.freephp.digiro.net/htdocs/test.php on line 3
could someone please tell me what's wrong and how to fix it