You are here: WAMP5, short tags and CLI PHP issue « All PHP « IT news, forums, messages
WAMP5, short tags and CLI PHP issue

Posted by comp.lang.php on 01/29/07 14:02

I installed WAMP5 on my WinXP box which works just fine on its own,
and I found a practical way of handling my short-tag PHP script
via .htaccess:

php_flag short_open_tag on

To ensure my literally hundreds of PHP scripts will all function
within the WAMP5 architecture.

However, there is a case of a series of installer scripts written in
PHP that are not meant to be run except as CLI PHP that obviously will
not benefit from .htaccess, furthermore, changing the CLI PHP scripts
from short to long tags is very much not an option due to both the
volume of scripts and code complexity as patterns of '<' . '?..' or
"<" . "?.." or '<' . "?.." will exist within scripts alongside the
dynamic generation of other PHP scripts by other CLI PHP scripts.

Realizing that .htaccess is not usable for CLI PHP nor can I use
ini_set(), and the business requirement of these scripts being fully
portable installer scripts (tested so far successfully in Win XP/
Apache 1.33/PHP 5.2.0, Win XP/Apache 2.0.53/PHP 4.3.9, WinXP/Apache
2.0.53/PHP 5.0.4, Linux/Apache 2.0.54/PHP 4.3.9), what other last-
minute portable tricks would you suggest (other than the obvious:
changing php.ini, which I can't do on certain remote host services
this app will reside in)?

Phil

 

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

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