LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > suggestion: copy whole script name into argv0

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2011, 05:52 AM
anything anything is offline
Member
 
Join Date: Jun 2010
Posts: 40
Default 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.
Reply With Quote
  #2  
Old 07-31-2011, 07:23 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It will crash PHP, you can give it a try, the source code can be modified as your wish.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:20 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.