Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Where to find and edit the php.ini file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Where to find and edit the php.ini file
Authored by: Anonymous on Nov 25, '03 12:10:37AM
Not being a professional programmer, how do I go about correcting those scripts that use globals. I have a few that stopped working with the Panther update so I turned register_globals on, but if they can be repaired I would rather do that. Even simple relocates such as,
<a href="file.php?var=something">test</a>
no longer worked. Any suggestions? Cheers, ptervin...always in a fog

[ Reply to This | # ]
10.3: Where to find and edit the php.ini file
Authored by: Bytesmiths on Dec 16, '03 10:22:37PM
Replace every global with an access to the $_GET array. For example:
$someGlobalVariable

becomes
$_GET['someGlobalVariable']

---
: Jan Steinman, Bytesmiths

[ Reply to This | # ]