Hmm, well spotted ekullhu, I was worried about leaving globals on, since it's a security threat. However, some of the PHP scripts I have (from various places) would take me a life-time to change to the new way!
Oh well. Anyway, you can create the php.ini file with just the line register_globals On if you want to test it. Do the following (in the terminal Twister
):
cd /usr/local/
ls
[if you don't see the lib directory when you do the 'ls' command, then do the following]:
sudo mkdir lib
cd lib
[you are now inside the lib directory (type pwd in the terminal to confirm this), if you did have the lib idrectory already, you don't need to do sudo mkdir lib] Next:
sudo pico php.ini
[If a file opens up with a load of code then you already have the php.ini file, if not then you should get a blank Pico screen, if so then type]:
register_globals On
[Then press Ctrl-O to save and then Ctrl-X to exit Pico. You now have the php.ini file with Globals on. If you already had the php.ini file with the code already in it, then within Pico, type Ctrl-W and type: register_globals.(Without the full-stop). This'll jump to the line with the command on, just change to On if Off.]
Remember! Finally, you have to restart Apache from the terminal with:
sudo apachectl restart