Guestbooks

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

turn globals on, php.ini

they are off by default.
Chocolate_Raindrop
Forum Newbie
Posts: 11
Joined: Thu May 20, 2004 6:07 pm
Location: Alabama
Contact:

Post by Chocolate_Raindrop »

ok and how do i do that. i'm actually teaching myself php but some things still confuse me.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

if you dont have access to php.ini

.htaccess
php_flag register_globals on

if you do have access to php.ini, you will see it visibly

I recommend not turning them on. Big secuirty risk (hence why the good people who made php has them off by default for a reason :) )
Chocolate_Raindrop
Forum Newbie
Posts: 11
Joined: Thu May 20, 2004 6:07 pm
Location: Alabama
Contact:

Post by Chocolate_Raindrop »

is there anyway i can keep them off and still use the code? also i'm looking at the site that i got the code from and i'm not sure what i'm suppose to do.

This is from the site.
Upload the guestbook.php file to your server in directory with CHMOD at least 0777
Insert in your guestbook HTML file the following strings -
<!--Guestbook_start--> and <!--Guestbook_end-->
Indicate the desired guestbook HTML file name in
"$filename = "index.html";" (default "index.html")

The guestbook script will insert all messages only between this two strings.

In case if you have not the guestbook HTML file the guestbook PHP scripts will create it for your using the default template.

In the code it has CHMOD at 0775. could that be a problem? also when they tell me to put the two tags in my HTML file. i'm not so sure exactly where in the file they want me to put them.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

no you must either turn them on OR recode the script.

or, find a different script

or

pay me and i'll write one for ya

:twisted: :twisted: :wink: :wink:
Post Reply