You are here: Re: [PHP] trouble with file upload page using PHP « PHP « IT news, forums, messages
Re: [PHP] trouble with file upload page using PHP

Posted by Richard Davey on 07/07/05 02:25

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация