Re: [PHP] Variables not passed on localhost setup [FIXED]
On Wed, 01 Oct 2003 14:22:30 -0400, Greg Watson <[EMAIL PROTECTED]> wrote: I'll check up on the security implications. Unfortunately for me, this is the way I was taught PHP. I'll have to rethink things I suppose! (and make sure you understand the security implications that may arise from having globals on and poorly written code) It would be best if you *do* get used to registered globals being off. It's gotten so that I can't even download premade PHP scripts anymore because 2 of the 3 webservers I work on have it turned off. It's not fun having to sort through other people's code and making it work with registered globals being off (extract() is the easiest way, but I still have to sort through which include needs it). It ends up being almost as much work as building a new one from scratch. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables not passed on localhost setup [FIXED]
Thank you all so much! That sorted it! Cheers! I didn't see that before because I'm blind. Metorphorically speaking. Put it down to code-blindness from staring at the screen too long. Weird thing is, my searches took me to http://www.php.net/configuration, which didn't mention the moving ini file thing. That page told me about the location being a compile time option. I'll check up on the security implications. Unfortunately for me, this is the way I was taught PHP. I'll have to rethink things I suppose! I'll brush my teeth, too. Want 'em all nice and sparkly! Thanks again, you guys are so helpful! Greg CPT John W. Holmes wrote: From: "Gal" <[EMAIL PROTECTED]> Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini' and change register_globals = Off to register_globals = On (and restart your web server) (and make sure you understand the security implications that may arise from having globals on and poorly written code) (and brush your teeth) ---John Holmes...