Page 1 of 1

SUBMIT BUTTON

Posted: Tue May 30, 2006 2:42 am
by helpful
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:
SOMETHING HAPPENED TO MY SCRIPT WHEN I CLICK THE AD COMMENT BUTTON,
it ddoes not direct me anywhere, it just refreshes the page
WHY?

Posted: Tue May 30, 2006 5:47 am
by Henrie
Hello helpful,

Which version of GBook are you using?
Where can i see your Guestbook in action to see for myself what is happening.

Greetings,
Henrie

Posted: Tue May 30, 2006 4:41 pm
by helpful

Posted: Tue May 30, 2006 7:23 pm
by Henrie
Hello helpful,

I just tested your GBook and it did not reload, i got the following error message

Code: Select all

Warning: fopen(entries.txt) [function.fopen]: failed to open stream: Permission denied in E:\moshiachforkids.com\moshiachforkids.com\gbook\gbook.php on line 616

Error

Couldn't open links file (entries.txt) for writing! Please CHMOD all entries.txt to 666 (rw-rw-rw)!
This means the entries.txt file could not be opened for writing. Are you sure the entries.txt file is chmod set to 666 (rw-rw-rw)?
If you don't know how to chmod the file, read this link http://www.phpjunkyard.com/ftp-chmod-tutorial.php

Because i saw an E:\ in the path i think you are on a windows server, then you should read the part CHMOD on Windows servers at the end of the page.

Greetings,
Henrie

Posted: Tue May 30, 2006 8:15 pm
by helpful
it is 666 chmod
is there anything i have to set up with the server provider?

does it have anything to do with the fact i changed some text in the script. i.e. instead of add comment i wrote something else
instead of view /sign guessbook i wrote something else

Posted: Tue May 30, 2006 8:30 pm
by Klemen
That shouldn't make a difference. Are you sure the CHMOD of entries.txt is 666? Can you also upload this file and place a link here:
http://www.phpjunkyard.com/extras/phpinfo.zip

Posted: Tue May 30, 2006 8:34 pm
by helpful
sorry i dont know how to do that
with specific instructions i can manage

Posted: Tue May 30, 2006 9:50 pm
by helpful
my srver asked if there is any database anywhere that needs to be permissoined

Posted: Wed May 31, 2006 5:08 pm
by Klemen
You mean how to CHMOD to 666? Most FTP programs allow you to right-click on the file (on server) and select "chmod" or "permissions" or "properties" or something similar and you can set file permissions for entries.txt there (set it to 666 or rw-rw-rw-). A tutorial is also here:
http://www.phpjunkyard.com/ftp-chmod-tutorial.php

You can also ask your host to chmod entries.txt to 666

Regards

Posted: Wed May 31, 2006 6:48 pm
by helpful
i chmoded ALREADY!
I DONT KNOW HOW TO SENT YOU THE FILE YOU REQUESTED

Posted: Thu Jun 01, 2006 10:43 am
by Klemen
Please don't YELL. You should be more specific if you need specific answers.

Download
http://www.phpjunkyard.com/extras/phpinfo.zip
Upload the phpinfo.php file inside the Zip file to your server (in gbook folder) and post the URL of the phpinfo.php file here.

Posted: Mon Jun 05, 2006 3:07 pm
by helpful
Ok i did not mean to yell
i just ressed caps lock my mistake
http://www.moshiachforkids.com/gbook/phpinfo.php

Posted: Mon Jun 05, 2006 8:30 pm
by Klemen
I don't see any particular reason why it wouldn't work. Can you also upload (similarly like phpinfo) this files:
http://www.phpjunkyard.com/extras/session_test.zip

Just upload to your gbook folder and post the link to session_test.php file here.

Posted: Tue Jun 06, 2006 1:43 am
by helpful
it works!!!!!!!!!!!!!
BUT i messed something up
www.moshiachforkids.com/gbook/gbook.php
how can i change the font size of the header.txt
where ir says sign/view guestbook

Posted: Tue Jun 06, 2006 12:52 pm
by Klemen
You messed up the gbook.php code. Make sure you only translate the text from original gbook.php and DON'T add anything else unless you are sure you have the correct PHP syntax. Don't add any code on top of gbook.php

I suggest you upload the ORIGINAL gbook.php again, make sure it works and then edit step-by-step (make a change, test it to make sure it works, make another change, test, ...).