SUBMIT BUTTON

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

SUBMIT BUTTON

Post 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?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post by helpful »

Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post by helpful »

sorry i dont know how to do that
with specific instructions i can manage
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post by helpful »

my srver asked if there is any database anywhere that needs to be permissoined
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post by helpful »

i chmoded ALREADY!
I DONT KNOW HOW TO SENT YOU THE FILE YOU REQUESTED
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post by helpful »

Ok i did not mean to yell
i just ressed caps lock my mistake
http://www.moshiachforkids.com/gbook/phpinfo.php
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
helpful
Posts: 8
Joined: Tue May 30, 2006 2:26 am

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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, ...).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply