Older Posts
· Dumping old computer blog posts here
· Problems publishing on Blogger.com?
· What is PR2, PR3, PR4, etc.?
· Site update
· Various useful images
· And so the site transfer goes on...
· Anyone else having problems with MTV Overdrive buf...
· Site overhaul
· Update on JVC GR-D30US camcorder
· Site of the Day

Archives
April 2005
May 2005
June 2005
July 2005
August 2005
November 2005
December 2005
January 2006
February 2006
March 2006
May 2006
June 2006
July 2006
August 2006
October 2006
March 2007
May 2007
June 2007
September 2007
November 2007
January 2008
June 2008
August 2008

Links
· Startup Applications List
· Welcome to the Hex Hub (Named Hexadecimal Color Codes for HTML)



More blogs on this site:



Powered by Blogger
 

Computer Blog - thebroadroom.net: Warning: copy(yourfile): failed to open stream: Permission denied in yourPHPfile on line x

Disclaimer: all of the following is purely from personal experience. TheBroadroom.Net urges you to use your own instincts, common sense, and willingness to take risks when applying any of the information below.

Geeks rule.
Profile · Current Blog



Google Custom Search


Warning: copy(yourfile): failed to open stream: Permission denied in yourPHPfile on line x
posted by TheBroadroom.Net, Monday, May 28, 2007 at 10:54 AM (Pacific)

Friday, February 04, 2005

A possible solution to PHP Warning: copy(yourfile): failed to open stream: Permission denied in yourPHPfile on line x

I got this error and cracked my head over it for a while. The usual, googling around and getting hundreds of examples of people asking this same question and not getting much, if any, answer to it.

Someone finally came up with the idea that it had to do with permissions...XOOPS.

First I checked to see if the destination directory was writable. It was.

Then...(slaps self upside head)...I realized that the file I was trying to upload, was supposed to overwrite an existing file on the server. I had FTP'd that existing file up prior to that and I suppose that had made it un-writable-to.

I went and deleted the existing file on the server, rather than bother trying to change permissions on it. Of course this would depend on which file you're trying to overwrite...you may well prefer to change the permissions.

Once the file was gone, the upload was successful.

Labels:


0 Comment(s)