Current location: Hot Scripts Forums » Programming Languages » PHP » Useful PHP errors in OS X


Useful PHP errors in OS X

Reply
  #1 (permalink)  
Old 04-04-05, 12:55 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Useful PHP errors in OS X

Anyone know how I should modify my php.ini file in OS X to get it to display useful errors? That is, currently I get errors like:
Quote:
Parse error: parse error in /Library/WebServer/Documents/index.php on line 8
and I would like the errors to appear as they do on my XP machine, i.e.:
Quote:
Parse error: parse error, unexpected ';', expecting ']' in /Library/WebServer/Documents/index.php on line 8
display_errors is set to on, but I can't seem to get it to show the more verbose error messages. I don't want to play around too much for fear of breaking something. Many thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-04-05, 10:44 AM
kjmatthews kjmatthews is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: Boston, MA
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
Let me clarify. I am running PHP on an Apache server which happens to be running on an Apple computer. I stupidly asked how to modify the php.ini on an OSX box without realizing that it sounded as though I was running an Apple server or something. That is not the case. What I can't figure out is how to generate useful error messages in Apache - for whatever reason I didn't have this problem on my WinXP computer, which displayed the verbose error messages automatically, so I don't know how to solve it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 09:26 AM
AHHH HELP!!! PHP with Mac OS X Server question!!! DESPERATE!!!!!!!!!!!!!!!!!!! phizzlecom PHP 8 10-20-04 08:41 PM
MySQL errors, php, etc... Help Jason B PHP 6 07-23-04 01:14 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 11:15 AM


All times are GMT -5. The time now is 10:15 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.