You are here: Re: PHP parser error only on production box « PHP Programming Language « IT news, forums, messages
Re: PHP parser error only on production box

Posted by Mani on 06/21/07 04:37

On Jun 21, 1:57 am, "Janwillem Borleffs" <j...@jwscripts.com> wrote:
> Mani wrote:
> > <form action = "<?php$_SERVER['php_self']?>" method = "GET" >
>
> This will just throw a notice because the $_SERVER array doesn't contain a
> php_self key (only a PHP_SELF key). The semicolon is not mandatory in this
> case, because of the closing tag and the absence of trailing code. Not using
> echo or print, won't trigger alarms either...
>
> JW


I changed the key from php_self to PHP_SELF and executed the script in
both environments. Like earlier, production box is throwing

PHP Parse error: syntax error, unexpected T_VARIABLE in SCRIPTPATH on
line 6

and script execution is getting terminated whereas in local
development environment, it is not throwing any error and notices.

Following are the details of both environments.


Local environment:

1. SUSE LINUX 10.0 (i586)
2. PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 4 2007
07:31:59)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

php.ini error constants:

error_reporting = E_ALL
display_errors = Off
;html_errors = Off

Production environment:

1. SUSE LINUX 10.0 (i586)
2. PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 4 2007
07:31:59)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP
Project

php.ini error constants:

error_reporting = E_ALL
display_errors = Off
;html_errors = Off



I compared the both php.ini's and found no difference interms of error
reporting perspective.

I am just thinking, Is there any problem in php module ?

Thanks

 

Navigation:

[Reply to this 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

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