Re: trouble with file upload page using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux