inno-code / simplephp

Project to illustrate basic PHP HTML CSS coding concepts for beginners.
8 stars 9 forks source link

error_display function #10

Closed taono closed 9 years ago

taono commented 9 years ago

I used ini_set( 'error_display", 1); & error_reporting ( E-ALL | E-STRICT); to enable php error report. It doesn't work. Then I tried to enable error report through editing php.ini file, but I couldn't find it. Ullman's book chapter 3 & appendix A: installation and configuration has a section about PHP configuration but it's not clear (can't find php.ini. file). Help is needed to enable error report. Thanks!

zoelogic commented 9 years ago

How to find php.ini file

<?php

// Option1: Show all information, defaults to INFO_ALL
phpinfo();

// Option2: Shows The configuration line, php.ini location, build date, 
// Web Server, System and more.
phpinfo(INFO_GENERAL);

?>
zoelogic commented 9 years ago

Todo Let's add a phpinfo.php script to the simplephp project. This will allow us to conveniently run the script and see our php configs as needed. Put in: /simplephp/skeleton

zoe-1 commented 9 years ago

Where is everyone? Have you guys stopped meeting?

taono commented 9 years ago

I have been traveling @zoe-1, and there is generally no internet access for me. our meeting will resume next week.