Posted by:
RiggsFolly
(---.dynamic.dsl.as9105.com)
Hello MigSel
Here is the nornal work around for this situation.
There is a parameter in the php.ini file that controls the display of errors generated by the PHP interpreter called 'display_errors'. It can be 'On' or 'Off' and it controls whether errors are displayed on the browser or not.
To get this code to run, you have to set it to
display_errors = Off
Good developers will have this turned ON so that they can See and FIX errors in their code, but on a live server you would turn it OFF as you do not want this information going to a user as it might expose too much information to a hacker. Obviously the developer of this code does not fall into this category.
Now WAMPServer is designed to be a primarily a developers tool, so it comes with this parameter turned on.
To turn it off, edit the php.ini file, using the wampmanager menus like so :-
wampmanager -> PHP -> php.ini
Find
display_errors = On
and change it to
display_errors = Off
Save the php.ini file, and then restart Apache
wampmanager -> Apache -> Service -> Restart Service
Unfortunately this does mean to see any errors while you are developing you will need to look at the 'php error log' a file that lives in the \wamp\logs folder
---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>Read The Manuals Apache --
MySQL --
PHP --
phpMyAdminGet your Apache/MySQL/mariaDB/PHP ADDONs here from the
WAMPServer alternate Repo-X-X-X-
Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-
Edited 1 time(s). Last edit at 11/13/2014 09:36AM by Otomatic.