Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

server problem

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

server problem

Postby parxal » Mon Dec 02, 2002 5:42 am

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
parxal
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Nov 07, 2002 5:58 am

Re: server problem

Postby WiZARD » Mon Dec 02, 2002 8:12 am

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.
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

:)

Postby parxal » Mon Dec 02, 2002 8:38 am

:) thanks! 1º time is hard :P
parxal
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Nov 07, 2002 5:58 am

Re: server problem

Postby uncertain_manos » Wed Dec 11, 2002 10:57 pm

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.



Since I have the same problem, can you please tell me how to change permission manually?
thanks beforehand,
Manos
uncertain_manos
New php-forum User
New php-forum User
 
Posts: 31
Joined: Wed Oct 23, 2002 12:55 am

Postby webwired » Thu Dec 12, 2002 12:02 am

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.
User avatar
webwired
New php-forum User
New php-forum User
 
Posts: 26
Joined: Sat Nov 23, 2002 5:20 pm
Location: St. Louis, Missouri

Postby Oleg Butuzov » Thu Dec 12, 2002 12:35 am

and my 2 grivnas to =)

for changing atributeson files at you server you can use a ftp-clien
such as window comander (now total commander) or (i am use Pro version) Cute FTP
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby uncertain_manos » Thu Dec 12, 2002 12:46 am

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.


Well in order to clear things out, are permisions the "CHMod" in the UNIX? I have an apache/1.3.26 server. Does this matter?
I am sorry but my knowledge is limited on such matters.

regards,
Manos
uncertain_manos
New php-forum User
New php-forum User
 
Posts: 31
Joined: Wed Oct 23, 2002 12:55 am

Postby Oleg Butuzov » Thu Dec 12, 2002 1:39 am

yes it is same at unix.
it does matter whan php scripts runs like a cgi scripts.
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby webwired » Thu Dec 12, 2002 6:48 am

Yeah, chmod it say, 777. If you're worried about security, then you can tinker around with making it lower.
User avatar
webwired
New php-forum User
New php-forum User
 
Posts: 26
Joined: Sat Nov 23, 2002 5:20 pm
Location: St. Louis, Missouri

Postby uncertain_manos » Thu Dec 12, 2002 10:45 am

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
uncertain_manos
New php-forum User
New php-forum User
 
Posts: 31
Joined: Wed Oct 23, 2002 12:55 am

Postby uncertain_manos » Thu Dec 12, 2002 10:50 am

I G N O R E T H E P R E V I O U S M E S S A G E!
I am very sorry, but I made a mistake. I found the solution.
Again Thanks Very much
Manos


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
uncertain_manos
New php-forum User
New php-forum User
 
Posts: 31
Joined: Wed Oct 23, 2002 12:55 am


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.