Reply to Re: [PHP] php uncongruence (or config?)

Your name:

Reply:


Posted by Jochem Maas on 05/27/05 14:11

Miguel Vaz wrote:
>
> Hi,
>
> I am confused as to how to solve this simple problem. Although
> it seems as some little config issue i am missing.

its the fact that your hosting provider is using an older php version
than you are at home (I'm guessing here, but it seems the most obvious reason)
.... and that the default (php.ini)setting for 'register_globals'
has changed from 'On' to 'Off'. googling for 'PHP + register_globals' should
get you upto speed on whats going on. (hint: relying on register_globals being On,
as you are going, is not recommended)

also findout about using the function phpinfo() to determine what version
of php you are running at any given site/machine (phpinfo() also provides
_lots_ of other useful/interesting info)

> I have a file index.php with some html tables and this php code:
>
>
> ..html stuff here...
> <?
> print $mod;
> ?>
> ..some more html here...
>
> If i feed the script with "index.php?mod=2", etc. and run it
> locally, i get an error saying:
>
> Notice: Undefined variable: mod in
> c:\win2kapp\easyphp1-8\www\index.php on line 36
>
> If i run it on a web server, it works perfectly.
> Whats the difference or where might be the problem in the
> php.ini? (if its there)
> The server i am using is easyphp, that package that install
> apache, php and mysql all together. I am running a windows xp box.
>
> Thanks in advance.
>
>
> Pag
>

[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

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