suggestion: copy whole script name into argv0

Discussion in 'PHP' started by anything, Jul 31, 2011.

  1. anything

    anything Member

    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.
  2. mistwang

    mistwang LiteSpeed Staff

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

Share This Page