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; } Link to comment https://forums.phpfreaks.com/topic/79447-solved-unexpected-tclass/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.