Posted by Chris Hope on 10/19/06 00:21
affiliateian@gmail.com wrote:
> Just moved web hosts and noticed that this:
>
> <?php echo "$f"; ?>
>
> used to work when there was an ?f= in the URL like so:
> http://www.mydomain.com/index.html?f=yes
>
> Now it doesn't at the new host.
>
> I want to echo out "yes" in the HTML.
>
> Any ideas?
register_globals will be off on your new host.
Either enable it using .htaccess (if possible) or change all references
to eg echo $_GET['f']. The latter is the better option but if your site
is full of global references then as a short term solution you'll need
to get register_globals enabled.
More info here: http://nz.php.net/register_globals
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
[Back to original message]
|