[FX.php List] PHP question
Dale Bengston
dbengston at tds.net
Thu Jul 3 16:02:32 MDT 2008
Instead of modifying php.ini, I just put
error_reporting(E_ALL);
...at the top of the page when I'm testing.
This provides pretty good feedback. If the error message is
inscrutable, at least it tells me what line to look at.
Dale
On Jul 3, 2008, at 4:37 PM, Anders Monsen wrote:
> In that case I would refer to the error configuration link that
> Andrew sent. I tried using a colon instead of a semi-colon with one
> of my files, and got this message. Not sure how the php.ini file is
> set up though.
>
> Parse error: syntax error, unexpected ':' in /[pathto_file/
> filename].php on line 53
>
> Thanks,
> Anders
>
> On Jul 3, 2008, at 4:25 PM, Bob Patin wrote:
>
>> Hi,
>>
>> Well, that helps a little, but what I really wish was that if there
>> were a goofy error like a missing semicolon, that I could have an
>> error message display that would tell me what type of error I've
>> caused...
>>
>> I have an error function I wrote for broken queries, but not for
>> broken PHP... :)
>>
>> Thanks,
>>
>> Bob
>>
>>
>> On Jul 3, 2008, at 3:40 PM, Anders Monsen wrote:
>>
>>> I have a copy of CS3, and I have a section on the left for coding
>>> shortcuts. If you right click up at the top with Code Split Design
>>> section you should see a list of menu bars that you can display.
>>> If you select Coding, this should appear on the left. Almost 2/3
>>> of the way down there is an icon like {|} which you can use to
>>> balance brace. Select the opening or closing brace you want to
>>> test and click this icon, and it should show you the other brace.
>>>
>>> Hope that helps,
>>> Anders
>>>
>>>
>>> On Jul 3, 2008, at 3:22 PM, Bob Patin wrote:
>>>
>>>> Where is that in the prefs? I'm using CS3.
>>>>
>>>> Thanks,
>>>>
>>>> Bob
>>>>
>>>>
>>>> On Jul 3, 2008, at 3:20 PM, Anders Monsen wrote:
>>>>
>>>>> How about the Balance Braces option?
>>>>>
>>>>> Anders
>>>>>
>>>>> On Jul 3, 2008, at 3:14 PM, Bob Patin wrote:
>>>>>
>>>>>> That's what I was afraid of...
>>>>>>
>>>>>> I use Dreamweaver, which I like, but which won't alert me to
>>>>>> something like a missing semicolon or unclosed FOREACH loop.
>>>>>>
>>>>>>
>>>>>> On Jul 3, 2008, at 2:57 PM, Anders Monsen wrote:
>>>>>>
>>>>>>> Not unless you're using an IDE, or possibly TextMate (on the
>>>>>>> Mac, I think), which supposedly lets you validate your code.
>>>>>>> I'm using BBEdit on a Mac, although sometimes I'll load up a
>>>>>>> troublesome page in Zend Studio if I think I have an unpaired
>>>>>>> ( or { as Zend will let you step through your code. Not sure
>>>>>>> about apps on the Windows side for getting feedback on PHP code.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Anders Monsen
>>>>>>> AlaMark Technologies
>>>>>>>
>>>>>>> On Jul 3, 2008, at 2:46 PM, Bob Patin wrote:
>>>>>>>
>>>>>>>> I'm using PHP 5, and am wondering if there is a syntax error-
>>>>>>>> reporting setting that I can change so that my silly syntax
>>>>>>>> errors could be reported. Just now, for example, I left off a
>>>>>>>> semicolon, and the page reload just showed nothingness.
>>>>>>>>
>>>>>>>> Is there a way for me to get some feedback for these sorts of
>>>>>>>> things? I seem to recall that I used to get them in PHP4, but
>>>>>>>> I could be fogbound...
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Bob Patin
>>>>>>>> Longterm Solutions
>>>>>>>> bob at longtermsolutions.com
>>>>>>>> 615-333-6858
>>>>>>>> http://www.longtermsolutions.com
>>>>>>>> FileMaker 9 Certified Developer
>>>>>>>> Member of FileMaker Business Alliance and FileMaker TechNet
>>>>>>>>
>>>>>>>> INSTANT MESSAGING:
>>>>>>>> AIM or iChat: longterm1954
>>>>>>>>
>>>>>>>> --------------------------
>>>>>>>> Contact us for FileMaker hosting and programming for all
>>>>>>>> versions of FileMaker
>>>>>>>> PHP • Full email services • Free DNS hosting • Colocation •
>>>>>>>> Consulting
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>
>> _______________________________________________
>> 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
More information about the FX.php_List
mailing list