Jump to content

[SOLVED] Unexpected TClass


shage

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.