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

Go Back   LiteSpeed Support Forums > External Applications > PHP > PHP Script directory

Reply
 
Thread Tools Display Modes
  #1  
Old 07-24-2010, 04:56 AM
meto meto is offline
Senior Member
 
Join Date: Jan 2008
Posts: 65
Default PHP Script directory

When i Watch processes under htop or with "ps aux | grep lsphp" I can partially see scripts directory (f.e. lsphp53l/public_html/vbenterprisetranslator_seo.php). Is it possible to make it longer to see whole dir?
Reply With Quote
  #2  
Old 07-28-2010, 07:14 AM
meto meto is offline
Senior Member
 
Join Date: Jan 2008
Posts: 65
I've done some research and that's what i've came up with:
Quote:
static int lsapi_execute_script( zend_file_handle * file_handle )
{
char *p;
int len;
file_handle->type = ZEND_HANDLE_FILENAME;
file_handle->handle.fd = 0;
file_handle->filename = SG(request_info).path_translated;
file_handle->free_filename = 0;
file_handle->opened_path = NULL;

p = argv0;
*p++ = ':';
len = strlen( SG(request_info).path_translated );
if ( len > 45 )
len = len - 45;
else
len = 0;
memccpy( p, SG(request_info).path_translated + len, 0, 46 );

php_execute_script(file_handle TSRMLS_CC);
return 0;

}
Is it possible to pass those 45 (as this is the number of signs shown) as a variable so that it can be tunned via admin panel?
Reply With Quote
  #3  
Old 07-29-2010, 04:24 AM
meto meto is offline
Senior Member
 
Join Date: Jan 2008
Posts: 65
for whar exactly? :>

-edit
Oh, your a bot/spammer. GO AWAY!

Last edited by meto; 07-29-2010 at 05:07 AM..
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 01:28 PM.



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