Jump to content
xisto Community
Sign in to follow this  
paypal.login

Any Php Gods Out There? Help! help&

Recommended Posts

Warning: fopen(passworddata.txt): failed to open stream: Permission denied in /home/abc/public_html/abc.php on line 27
Warning: fputs(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 28

Warning: fclose(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 29

Warning: fopen(passworddata.txt): failed to open stream: Permission denied in /home/abc/public_html/abc.php on line 34

Warning: fputs(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 35

Warning: fclose(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 36

any idea how i can get rid of that?

Notice from snlildude87:
Use the quote tags next time you do this, please:
[quote]post goes here[/quote]
Also, if you're going to ask for error fixings, please include more information. Thank you.

Edited by snlildude87 (see edit history)

Share this post


Link to post
Share on other sites

Well it's hard to help without any script to work with, can you copy-paste your php page into a .txt and upload it so we can take a look?thanks in advance..

Share this post


Link to post
Share on other sites

What method did you use for fopen? w+? x+? r+? a+? Cause for certain one of these may cause problems if the file isnt created first..

Share this post


Link to post
Share on other sites

Hmm, Lets see the errors one by one.

Warning: fopen(passworddata.txt): failed to open stream: Permission denied in /home/abc/public_html/abc.php on line 27
This one simply indicates that passworddata.txt is not having read or write permissions. Depending on the task it requires to perform. Please see to it that you give it 777 permission. Use CHMOD.

Warning: fputs(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 28
Fputs depends on the fopen handle. So since the above code did not work, this one is going to give an error too. :-)

Warning: fclose(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 29
Same dependency issue again.

Warning: fopen(passworddata.txt): failed to open stream: Permission denied in /home/abc/public_html/abc.php on line 34
Here, its again permission issue.

Warning: fputs(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 35
Dependency...

Warning: fclose(): supplied argument is not a valid stream resource in /home/abc/public_html/abc.php on line 36
once again Dependency...

So you better CHMOD passworddata.txt file to 777. For changing FILE PERMISSIONS, you can either use your ftp client. Click on the file and you will find options to change the permissions in file properties settings.

Share this post


Link to post
Share on other sites

i used the w+ method....however i solved the problem. for future reference: i loged into my ftp by typing the ftp in the mydocuments address bar and then loggin in. then i changed the permission to write for others and groups on the txt file!

Share this post


Link to post
Share on other sites

i used the w+ method....however i solved the problem. for future reference: i loged into my ftp by typing the ftp in the mydocuments address bar and then loggin in. then i changed the permission to write for others and groups on the txt file!

155467[/snapback]


opaque put that well. still, it's good that you fixed it.

 

If you are writing scripts, it's good to atleast know a little bit of php, try http://www.thefreecountry.com/, they have everything.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.