USD Logo MySanDiego | Libraries | Bookstore | Find People | A to Z Index | Resources | Jobs
 Prospective Students | Current Students | Alumni | Faculty & Employees | Visitors | International
About USDAdmissionsAcademicsNews and EventsAdministrationAthleticsGiving

PHP

PHP

The USD web server uses PHP 5.2.4 for dynamic content.

Errors

By default, errors are turned off. If you want to see the errors that your PHP code is producing, add the following PHP lines above where you think the error is occurring.

ini_set('display_errors', true); error_reporting(E_ALL ^E_NOTICE );

The first line turns error display on. The second line tells PHP to display all errors except notices.

You should generally use this only while you are testing your PHP scripts, and turn it off once your scripts are in production. Error messages can sometimes reveal private or confidential information.

Comments

If you have comments or tips for readers of this page, you may post them here. Questions are more appropriately directed to the webmaster. Comment on this page