Re: [PHP-DB] ini_set ...

[email protected] ("Daniel Brown")
Newsgroups php.db,php.general
Message-ID <[email protected]>
On Fri, Mar 21, 2008 at 10:20 AM, VanBuskirk, Patricia
<[email protected]> wrote:
>
>  I have the line "ini_set('display_errors', 'on');" in my code, but it is
>  not working.  Does it need to be the first command on the page?
[merge]
>  I have full access to the php.ini file, which is what I do now to
>  test... go there, change the file, restart the IIS service, etc.  I read
>  somewhere recently where they used this line in their code, and I
>  thought how convenient that would be ... just haven't been able to get
>  it to work.  I will try "true" instead of "on" and see if that works.
>  Does it go back to the default on it's own, or do I need to hard-code
>  that in the page when I'm done?

    Trish, this is a general question rather than a database question,
so it's being forwarded to the PHP-General list as well.  It will not
only get you some more detailed replies, but it helps keep the
archives organized.  If you're not already subscribed, please consider
doing so: http://php.net/mailinglists

    Try something like this at the head of your code:
<?
error_reporting(E_ALL);
ini_set('display_errors','On');
?>

    Keep in mind that it will only be executed in the same script as
it's coded, and only if/when those lines are executed.  It won't set
the system-wide (or even same-session) display_errors, it only enables
that option for that script at that time.

-- 
</Daniel P. Brown>
Forensic Services, Senior Unix Engineer
1+ (570-) 362-0283
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.