I turned register globals off and..

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

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

I turned register globals off and..

Post by John Cartwright »

Now my include won't work...

the line was include ("form.php"); but now nothing is coming up... I made sure the code was getting to that point etc etc... tried single quotes etc etc but nothing is working? why?

thanks 4 any help :p
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

register_globals shouldn't affect the include call, maybe it's something inside form.php?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

OMG WILL YOU MARRY ME? haha...you always look outside the box don't you...


BTW: I had a problem with turning register global off and you suggested:

php_flag register_globals off which didn't work in .htaccess....

I asked someone else they suggested this:

<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>

and it worked... just thought i'd let you know.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Ah, good to know, will store it away for future reference ;)
Post Reply