PHP Script directory

meto

Well-Known Member
#1
When i Watch processes under htop or with "ps aux | grep lsphp" I can partially see scripts directory (f.e. lsphp53:pl/public_html/vbenterprisetranslator_seo.php). Is it possible to make it longer to see whole dir?
 

meto

Well-Known Member
#2
I've done some research and that's what i've came up with:
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?
 
Top