configuration - PHP config quark with if statements -


OK, this is odd on my development server if I'm running a test on a script and I / P> < Pre & gt; if ($ _GET ['cat']) {...

Instead of another practical way:

  if (isset ($ _GET ['cat'])) {...  

I'll get an error by saying

Notice: Undefined variable: in pwdmsg: WAMP \ www \ myFile \ Decrypt-text.php on line 16

Just wondering if anyone would know that this is not a big thing true Because I can only do this when I am testing a theory or trying to check something is just an annoyance

Oh, and please do not scold my question if this is complete Like stupid or like "... even n00bs know that!" I know it does not do this on my live server, but my god does on the server

My basic dev-server information:

PHP 5.3.0 Apache 2.2.11 MyScale 5.1.36

PHP exts: * Core * Bcmath * Calendar * com_dotnet * CTYPE * Date * Eagle * Filter * FTP * hash * iconv * json * mcrypt * mysqlnd * ODBC * PCRE * Reflection * Session * SPL * standard * tokenizer * zip * zlib * libxml * dome * pdO * openssl * simplexml * wddx * xml * xmlReader * xmlwriter * apache2handler * curl * gd Text after imap * mbstring * mysql * mysqli * fur * pdo_mysql * pdo_sqlite * mhash

I can say that Your error_reporting is configured differently.

You can often

  error_reporting (E_ALL) on system system;  

While most E_ERRORs on live systems are set to avoid output which is not user-relevant.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -