Results 1 to 3 of 3
Feb 15, 2002, 08:37 #1
HELP file creation - permission denied(?)
Im having some difficulty understanding how to create files on host server (unix). I got some very simple code together to test if it would work, but I get the message "permission denied". I've had a look at the manual, but it doesnt make sense. Can any1 help?
Here is the code I used:
$content="<html><body>some text here</body></html>";
Warning: fopen("/export/WWW/docs/sometestfile.htm", "w") - Permission denied in /export/WWW/docs/cp/config/functions.inc.php on line 273
Warning: Supplied argument is not a valid File-Handle resource in /export/WWW/docs/cp/config/functions.inc.php on line 274
Warning: Supplied argument is not a valid File-Handle resource in /export/WWW/docs/cp/config/functions.inc.php on line 275
Feb 15, 2002, 09:20 #2
You need to make sure that /home/WWW/docs is CHMODED 0777 so PHP will have permission to write (create new files/folders) in it.
Feb 15, 2002, 09:35 #3
hmm is that the only option ? !!