shage Posted November 29, 2007 Share Posted November 29, 2007 Im trying to use a class that i found but getting a tclass error class cwhereistransport { var $CUrlLibExists; var $CUrlPath; var $WGetPath; var $FOpenExists; var $SocketExists; function cwhereistransport( ) { $this->CUrlLibExists = function_exists( "curl_init" ); @ini_set( "allow_url_fopen", "On" ); $this->FOpenExists = ini_get( "allow_url_fopen" ) == "1"; } function fnwhereis( $s ) { $output = shell_exec( "whereis ".$s ); $arr = split( " ", $output ); if ( isset( $arr[1] ) ) { $arr[1] = trim( $arr[1], " \n\r" ); return $arr[1]; } else { return false; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.