thanks pejone for the help.
new error:
i am trying to append a text file, and the error is this...
Warning: fopen("mails.dat", "a") - Permission denied in /usr/home/jungli/www/mail.php on line 17
Moderators: macek, egami, gesf

parxal wrote:thanks pejone for the help.
new error:
i am trying to append a text file, and the error is this...
Warning: fopen("mails.dat", "a") - Permission denied in /usr/home/jungli/www/mail.php on line 17

WiZARD wrote:parxal wrote:thanks pejone for the help.
new error:
i am trying to append a text file, and the error is this...
Warning: fopen("mails.dat", "a") - Permission denied in /usr/home/jungli/www/mail.php on line 17
You do not have a permission for write to the file.
Try change permission by hand.



webwired wrote:Just my 2cents worth... but I found that if I put the .dat file in the cgi-bin, then I could change the permissions all I wanted, you can't change to a higher permission level inside the www folder.

webwired wrote:Yeah, chmod it say, 777. If you're worried about security, then you can tinker around with making it lower.

uncertain_manos wrote:webwired wrote:Yeah, chmod it say, 777. If you're worried about security, then you can tinker around with making it lower.
thanks alot people,
but the problem still insists. I have made chmod = 777 but still, I cannot write to my file. My file has .txt extension. Does this matter at all?
In more detail, I want to make a program which will be reading the contents of a file from the internet and then append them to this file "random.txt" Although I can read the www file, I cannot append the contents.
Thanks again

Return to PHP coding => General
Users browsing this forum: No registered users and 3 guests