LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   suggestion: copy whole script name into argv0 (http://www.litespeedtech.com/support/forum/showthread.php?t=5180)

anything 07-31-2011 05:52 AM

suggestion: copy whole script name into argv0
 
suggest an environment variable to change litespeed sapi to copy the whole script name into argv0 instead of the last 45 characters.

its handy, but I'd find it more convenient with the whole name there instead.

eg:
lsphp5:/var/www/mywebsite.com/html/wp-content/themes/a-wordpress-theme-with-a-really-long-name/library/support-scripts/blah/blah.php
instead of
lsphp5:ng-name/library/support-scripts/blah/blah.php

even better would be to include the http requested site name as well, but perhaps it isn't as easy to do.

mistwang 07-31-2011 07:23 AM

It will crash PHP, you can give it a try, the source code can be modified as your wish.


All times are GMT -7. The time now is 03:21 AM.