vendredi 10 mars 2017

PHP Error blank screen localhost

Hi I am having an issue with my php files. I'm getting these error codes while trying a simple "Hello World!" output with php.

'E_ERROR', 0x0002 => 'E_WARNING', 0x0004 => 'E_PARSE', 0x0008 => 'E_NOTICE', 0x0010 => 'E_CORE_ERROR', 0x0020 => 'E_CORE_WARNING', 0x0040 => 'E_COMPILE_ERROR', 0x0080 => 'E_COMPILE_WARNING', 0x0100 => 'E_USER_ERROR', 0x0200 => 'E_USER_WARNING', 0x0400 => 'E_USER_NOTICE', 0x0800 => 'E_STRICT', 0x1000 => 'E_RECOVERABLE_ERROR', 0x2000 => 'E_DEPRECATED', 0x4000 => 'E_USER_DEPRECATED' ); if(!@is_string($name = @array_search($type, @array_flip($_ERRORS)))) { $name = 'E_UNKNOWN'; }; return(print(@sprintf("%s Error in file \xBB%s\xAB at line %d: %s\n", $name, @basename($file), $line, $message))); }; $old_error_handler = set_error_handler("ErrorHandler"); echo "Hello World!"; ?>

At first I was just getting a WSOD but found some code that displayed those errors here:PHP's white screen of death

I am on Ubuntu linux and trying to start up a web server. I currently have installed php7, apache2, mysql, proftpd and filezilla. I am not using LAMP

I'm sure and I apologize for repeating this question/issue but others that I found such as here:500 internal server error or blank accessing php files I just don't understand




Aucun commentaire:

Enregistrer un commentaire