Re: trouble with file upload page using PHP

From: Date: Wed, 06 Jul 2005 23:25:13 +0000
Subject: Re: trouble with file upload page using PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-218259@lists.php.net to get a copy of this message
Hello Bruce, Thursday, July 7, 2005, 12:10:30 AM, you wrote: BG> I get an error stating: BG> "Warning: BG> copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf): BG> failed to open stream: Permission denied in BG> /hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on line BG> 4 BG> Could not copy file" The answer is in your error. First of all I'd use move_uploaded_file instead of copy, just for the additional checks it gives you. But the problem is far more likely that the user the web server is running as (nobody/apache/etc) doesn't have permissions to put files into your "inspired-evolution.com" directory. Check the permissions setting on that folder as a first course of action. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov

« previous php.general (#218259) next »