Reply to fopen() Permission denied

Your name:

Reply:


Posted by Lee C. Haas on 02/17/06 21:02

I have created the file lhcount.data with the content the number 1 in
it.
This file is in the same directory (public_html) as the following
index.php file that contains the following code:

<?php
echo("count");
$fh = fopen('lhcount.data','r+');

result is:
count
Warning: fopen(lhcount.data): failed to open stream: Permission denied
in /home/abc/public_html/index.php

The permissions are:
public_html directory rwxrwx- - -
lhcount.data rwxrwxr- -
index.php rw-r- -r- -

phpadmin() shows the following:
safe_mode is off
open_basedir has no value set

I'm at a loss. I have used this with success at another web host.

Thanks for any advice.
Lee Haas, Raleigh, NC
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Email may be sent to me by using:
http://tinyurl.com/fylz

[Back to original 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

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