Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Advanced PHP FILE NEWS SYSTEM QUESTION |
Page: 1 2 3 | Reply |
Sep 16th 2002 | #69483 Report |
Member since: Apr 1st 2002 Posts: 1487 |
yea, i don't think you have the file there. it needs to be there in order for the script to work.
|
Reply with Quote Reply |
Sep 16th 2002 | #69485 Report |
Member since: Apr 12th 2002 Posts: 48 |
how do i set the txt file to 666?
|
Reply with Quote Reply |
Sep 16th 2002 | #69487 Report |
Member since: Apr 12th 2002 Posts: 48 |
it still says this Warning: fopen("news.txt", "a+") - Permission denied in /home/rant-on/public_html/micro/news.php on line 2 Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/rant-on/public_html/micro/news.php on line 5 Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/rant-on/public_html/micro/news.php on line 6 |
Reply with Quote Reply |
Sep 16th 2002 | #69499 Report |
Member since: Apr 1st 2002 Posts: 1487 |
you need to set it to 777, right click on it in your ftp client and choose 777 or 0777 whichever it is.
|
Reply with Quote Reply |
Sep 16th 2002 | #69505 Report |
Member since: Mar 20th 2001 Posts: 3367 |
666 if your host doesn't allow chmod files to 777. 777 = writable, executable, readable 666 = writable, readable Most FTP programs will allow you to chmod your files |
Reply with Quote Reply |
Sep 16th 2002 | #69549 Report |
Member since: Apr 12th 2002 Posts: 48 |
i will try on ws ftp pro and thanks all if that dont work then i guess my hosts need to get a highier ver of php and apache.... and squid i love ur shout box but will u tell me how u did that random splash sig........i know with php and i know of several scripts to make it random but when i type it in my profile it just comes out as code.....later |
Reply with Quote Reply |
Sep 16th 2002 | #69555 Report |
Member since: Apr 1st 2002 Posts: 1487 |
i put in an iframe that points to the php code on my server.
|
Reply with Quote Reply |
Sep 16th 2002 | #69572 Report |
Member since: Jun 30th 2001 Posts: 447 |
I believe your running the code on Windows, if so, you don't need to set the permissions (CHMOD). Why don't you try changing your fopen call to this: [php]$fp = fopen("./news.txt", "w");[/php] |
Reply with Quote Reply |
Sep 16th 2002 | #69573 Report |
Member since: Apr 1st 2002 Posts: 1487 |
hunk, though you are the team's master of php :D i modified his script on windows and ran it on apache on windows (my machine) and then uploaded it to my host (unix) and both worked. so he's definitely doing something wrong. :(
|
Reply with Quote Reply |
Page: 1 2 3 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |