|
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]
|