Thread: fopen errors
View Single Post
Old 04-07-2008, 09:01 PM   #1 (permalink)
metazai
Regular Contributor
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 120
metazai is on a distinguished road
fopen errors

Ok, I've built a CMS and installed same on several different servers. Occasionally I've had problems with the PHP code that writes to the created pages and files, but nearly always they've been permissions problems and once the fopen setting in php.ini. Now, however, I'm on a server that's thrown me another curve ball -- no matter what the permissions are on files, folders, or whatever -- even 777! -- I still get:
Code:
Warning: fopen(../../index.php) [function.fopen]: failed to open stream: Permission denied in /home/warriorg/public_html/admin/includes/publish.php on line 46 can't open ../../index.php
Incredibly frustrating . . . fopen is turned on in the .ini, and I'm at a loss of what to check next. Anybody with any thoughts? Remember this same code has worked literally on 10 other servers.
__________________
metazai is offline   Reply With Quote