Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/basecang/public_html/index.php:1) in /home/basecang/public_html/autoload.php on line 31

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/basecang/public_html/index.php:1) in /home/basecang/public_html/autoload.php on line 31
public function gravarArquivoTexto( $strArquivo, $strTexto, $bolApagarSeJaExiste = false, $bolUTF8 = true ) { if ( !is_dir( dirname( $strArquivo ) ) ) { mkdir( dirname( $strArquivo ), 0755, true ); } $strModo = ($bolApagarSeJaExiste) ? "w" : "a"; $criarArquivo = (!is_file( $strArquivo ) ); $objTxt = fopen( $strArquivo, $strModo ); if ( $criarArquivo && $bolUTF8 ) { //UTF-8 fwrite( $objTxt, pack( "CCC", 0xef, 0xbb, 0xbf ) ); } fwrite( $objTxt, $strTexto ); fclose( $objTxt ); } public function lerArquivoTexto( $strArquivo ) { if ( is_file( $strArquivo ) ) { $objTxt = fopen( $strArquivo, "r" ); $texto = fread( $objTxt, filesize( $strArquivo ) ); fclose( $objTxt ); return $texto; } }
Fatal error: Class 'clsArquivo' not found in /home/basecang/public_html/autoload.php on line 19