RE: [PHP] Copy function usage ?
| From: | Jon Farmer | Date: | Thu, 09 Aug 2001 15:40:59 +0000 |
| Subject: | RE: [PHP] Copy function usage ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61997@lists.php.net to get a copy of this message | ||
You need to make sure that what ever user the webserver/php runs under has
permissions to read from the source folder/file and write permission for the
destination folder/file.
Common users for apache/php are "nobody" or "apache"
regards
Jon
Jon Farmer
Systems Programmer
Entanet International Ltd www.enta.net
Tel 01952 428969
Mob 07968 524175
-----Original Message-----
From: Tamas Bucsu [mailto:ta.bucsu@orion-infotech.com]
Sent: 09 August 2001 16:36
To: php-general@lists.php.net
Subject: [PHP] Copy function usage ?
Hi guys,
I have a problem that's killin' me. As I'm not very good at Linux I don't
know how to set the properties of the folder pics to be able to use the copy
function. (If I'm right and the problem is not some else) Please help.
Here's the code:
if (file_exists($userfile)) {
copy("$userfile","pics/".$userfile);
} else {
echo "Nem sikerül a következõ file-t feltölteni:".$userfile;
}
thx
Tamas Bucsu