[FX.php List] How to turn on PHP error reporting on OS X

William Akey wcakey at hotmail.com
Thu May 4 11:16:02 MDT 2006


Steve,

Thanks. I initially could not even find the php.ini file as I was not logged in with proper permissions. I have it in my sights now though. Also, as I found that while error_reporting  =  E_ALL is the default value in the php.ini file display errors is set to Off by default, making it somewhat hard to see them :-).

All is well now.

Many thanks to all for your responses to my query for assistance.

William
  ----- Original Message ----- 
  From: Steve Hannah 
  To: FX.php Discussion List 
  Sent: Thursday, May 04, 2006 8:47 AM
  Subject: Re: [FX.php List] How to turn on PHP error reporting on OS X


  Adding error_reporting() to each page will display runtime errors but won't display parse errors.  If you want to display parse errors you have to make the change inside the php.ini file.  This only makes sense because if there is a parse error then the error_reporting() function will never be processed.


  Best regards


  Steve

  On 4-May-06, at 8:13 AM, Jason H Awbrey wrote:


    You could also add error_reporting() to each page if you don't want to modify your php.ini file. This would allow you to turn on reporting for a single page or a subset of pages. 


    Check out http://us3.php.net/error_reporting for details on how to use the function.


    HTH,
    Jason




    ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
    Jason Awbrey
    Web Integration
    FileMaker 7 Certified Developer
    Harmonic Data Associates
    http://www.harmonic-data.com
    jawbrey at harmonic-data.com
    w - 214 269.2804
    ~-~-~-~~-~-~-~-~-~-~-~-~-~-~-~-~-~-~






    On May 4, 2006, at 10:07 AM, gerry.charest at agfa.com wrote:


      You can change the setting in your PHP.ini file, display_errors function to on and it will return a bit more information. 

      Gerry Charest


      <graycol.gif>
      ">"William Akey" <wcakey at hotmail.com>


            <ecblank.gif>
           <ecblank.gif>


                    "William Akey" <wcakey at hotmail.com>
                    Sent by: fx.php_list-bounces at mail.iviking.org 
                    05/04/2006 10:56 AM
                    Please respond to "FX.php Discussion List"
           <ecblank.gif>


            To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
            cc: (bcc: Gerry Charest/MJVYN/AGFA)
            Subject: [FX.php List] How to turn on PHP error reporting on OS X 


      Hi Folks,

      I have just started to work on a FX.php solution on an Mac running OS 10.3.9
      and PHP 5.x. Can some kind soul tell me where to go to enable display of PHP
      parsing errors?

      Currently, when I have parsing errors in my code, I just get a blank page
      instead of the nice error reporting that I am used to on the PC side.
      Needless to say, blank pages make it a lot harder to debug my code. I am
      familiar with using Print_r() and Set Debug True, but those don't catch the
      simple parse errors from poor typing. There does not seem to be a php.ini
      file anywhere on the Mac that I could hope to modify.

      Thanks for any help you can give.

      William
      _______________________________________________
      FX.php_List mailing list
      FX.php_List at mail.iviking.org
      http://www.iviking.org/mailman/listinfo/fx.php_list

      <graycol.gif>
      <ecblank.gif>
      <pic32209.gif>
      _______________________________________________

      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





  ----------------------------------------
  Steve Hannah
  Web Services Developer


  Faculty of Applied Sciences
  Simon Fraser University
  shannah at sfu.ca
  604-268-7228
  Homepage: http://www.sjhannah.com








------------------------------------------------------------------------------


  _______________________________________________
  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/20060504/b7b4b86b/attachment.html


More information about the FX.php_List mailing list