Reply to PHP parser error only on production box

Your name:

Reply:


Posted by Mani on 06/20/07 15:31

Hi

Here is my code snippet:

<?php
error_reporting(E_ERROR | E_PARSE);
?>
<html>
<body>
<form action = "<?php$_SERVER['php_self']?>" method = "GET" >
<?php
echo "adasd";
?>
</form>
</body>
</html>


if you see form action of the above lines, semicolon wont be there and
also the word 'echo'. If i execute this, it supposed to throw an
parser error and script should get terminated at that point.

It is happening in my production/staging environment but it not the
case in development server.

So I compared the error_reporting, display_html_errors, etc values of
both the environments and it is same interms of error level mechanism.


Is there any constants in php.ini which tells php interpreter not able
to produce parse error in my development server?

Thx in advance

[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

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