[FX.php List] PHP Error Reporting...One more time

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed Sep 3 14:16:15 MDT 2008


Yes, it's command line.

On a mac maybe change the vim line like this:
---
cp test.php test-$(date +%Y-%m-%d-%H-%M-%S).php
/Applications/Smultron.app/Contents/MacOS/Smultron test.php
---
   if it works you are done now...
--- else ---
   you have to copy the most recent test-<<self made time stamp of
some recent working copy>>.php to test.php
---
It gives you the option to turn back to a working copy in the terms of seconds,
it's usually faster to do the changes again from a working copy than
to turn yourself into Indiana Jones and gå excavating a power plant of
potential failures.

ggt

2008/9/3 Jonathan Schwartz <jschwartz at exit445.com>:
> ggt,
>
> Not sure how this applies.
>
> It looks like a command line process to copy a file and then open it in an
> editor?
>
> How does that detect an error in the currently running script and email the
> adminsitrator?
>
> Jonathan
>
> At 9:39 PM +0200 9/3/08, Gjermund Gusland Thorsen wrote:
>>
>> This is how I do it, for example.php I do
>>
>> cp example.php example-2008-09-02.php
>> vim example.php
>>
>> ggt
>>
>> 2008/9/3 Jonathan Schwartz <jschwartz at exit445.com>:
>>>
>>>  Hi folks,
>>>
>>>  Occasionally, php syntax errors can result after performing on-the-fly
>>>  script edits for clients, and there just isn't time to perform testing.
>>> Call
>>>  me human. ;-)
>>>
>>>  However, it is often the client that informs me of the error.  Hmmm...
>>>
>>>  To resolve, I'd like to receive email notification for php errors  on
>>> any
>>>  page ( not FMP errors) and have a shot at finding the error first.
>>>
>>>  What mechanism can do that?
>>>
>>>
>>>  Thx
>>>
>>>  J
>>>
>>>
>>>
>>>
>>>  --
>>>  Jonathan Schwartz
>>>  Exit 445 Group
>>>  jonathan at exit445.com
>>>  http://www.exit445.com
>>>  415-370-5011
>>>  _______________________________________________
>>>  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
>
>
> --
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-370-5011
> _______________________________________________
> 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