problem of fopen()

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

JackyWMK
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Mar 31, 2003 6:34 pm
Contact:

problem of fopen()

Postby JackyWMK » Sun Apr 20, 2003 8:53 am

I transfer a web-site from one PC to another PC.There is a problem in one page which use fopen() function.Do User need permission to use fopen() to open some text file???
Bottom is the error message

Warning: fopen("./dns_temp/dns.me", "w") - Permission denied in /usr/local/apache/htdocs/ip/modify_action.php on line 425

User avatar
pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Postby pootergeist » Sun Apr 20, 2003 11:08 am

yes, you'll need to chmod both the holding folder and the file to allow write permissions for other.

JackyWMK
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Mar 31, 2003 6:34 pm
Contact:

Postby JackyWMK » Mon Apr 21, 2003 7:06 pm

OIC~~~
thanks very much~~ :D


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 1 guest

cron