Reply to Re: Why won't variable echo?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация