Page 2 of 2

Posted: Thu Jun 17, 2004 4:54 pm
by tim
turn globals on, php.ini

they are off by default.

Posted: Thu Jun 17, 2004 4:56 pm
by Chocolate_Raindrop
ok and how do i do that. i'm actually teaching myself php but some things still confuse me.

Posted: Thu Jun 17, 2004 5:03 pm
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 :) )

Posted: Mon Jun 21, 2004 12:59 pm
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.

Posted: Mon Jun 21, 2004 1:02 pm
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: