[FX.php List] PHP FX neophytes needs help

Steve Hannah shannah at sfu.ca
Fri Jul 21 13:41:32 MDT 2006


It may depend on whether you are using the default apache.  The  
default location is
/var/log/httpd/error_log

E.g.:

stevepbook:~ shannah$ tail /var/log/httpd/error_log
[Thu Jul 20 14:12:10 2006] [error] PHP Parse error:  parse error,  
unexpected '(', expecting T_STRING in /Users/shannah/Sites/ 
array_maptest.php on line 3
[Thu Jul 20 14:12:10 2006] [error] [client 127.0.0.1] File does not  
exist: /Library/WebServer/Documents/favicon.ico
[Thu Jul 20 14:12:21 2006] [error] PHP Parse error:  parse error,  
unexpected '(', expecting T_STRING in /Users/shannah/Sites/ 
array_maptest.php on line 3

Hope this helps.

-Steve

On 21-Jul-06, at 12:38 PM, Don W. Yee wrote:

> Hi Steve,
>
> Do you know where the error log is on Mac OSX?  I think it could be  
> very useful in trouble shooting for me.  Being new to FX and PHP, I  
> need all the help I could get.  I remembering learning PHP a while  
> back, PHP reports errors in the browser.
>
> Don
>
>
> Don Yee
> Program of Technocultural Studies
> 1 Shields Avenue
> Davis, Ca 95616
> Art Building Rm 316
>
> Phone 530-754-7208
> Website: http://technoculture.ucdavis.edu/
>
>
> On Jul 21, 2006, at 12:33 PM, Steve Hannah wrote:
>
>> I can see 2 debugging approaches available to you then.
>>
>> 1. Locate your error log and see what the error is.
>>
>> 2. Try commenting out all of the php except for the first line...  
>> and see if you get output ... then first and second lines ... and  
>> so on... to try to find the line where the error occurs....
>> But your best bet is option 1.
>>
>> -Steve
>> ----------------------------------------
>> Steve Hannah
>> Web Services Developer
>>
>> Faculty of Applied Sciences
>> Simon Fraser University
>> shannah at sfu.ca
>> 604-268-7228
>> Homepage: http://www.sjhannah.com
>> --
>> Need to build a database driven web application quickly?
>> Try Dataface: http://fas.sfu.ca/dataface
>>
>>
>>
>> On 21-Jul-06, at 12:27 PM, Don W. Yee wrote:
>>
>>> Hey Steve,
>>>
>>> Thanks for the quick response!  I tried putting the  
>>> "error_reporting(E_ALL); "  beginning of the script (after the "<? 
>>> php"  tag) and got the same blank page.  I've just learned about  
>>> turning or error reporting.
>>>
>>> Don
>>>
>>>
>>> Don Yee
>>> Program of Technocultural Studies
>>> 1 Shields Avenue
>>> Davis, Ca 95616
>>> Art Building Rm 316
>>>
>>> Phone 530-754-7208
>>> Website: http://technoculture.ucdavis.edu/
>>>
>>>
>>> On Jul 21, 2006, at 12:18 PM, Steve Hannah wrote:
>>>
>>>> <? error_reporting(E_ALL); ?>
>>>
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060721/9f81c256/attachment-0001.html


More information about the FX.php_List mailing list