The USD web server uses PHP 5.3.3 for dynamic content.
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);
The first line turns error display on. The second line tells PHP to display all errors and warnings.
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.
You can also see errors by using the php command-line program. If you’re using a Macintosh, you have it built-in: go to the terminal and type “php” and then the filename to see any syntax errors. You can also use the php command-line on files.sandiego.edu if you’re using a departmental web account.
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