PHP question
Mark Richards
mark.richards at massmicro.com
Fri Mar 30 13:34:43 EDT 2007
Jerry Feldman wrote:
> On Fri, 30 Mar 2007 11:58:54 -0400
> "John Abreau" <abreauj at gmail.com> wrote:
>
>> The old behavior is dangerous, and would leave the website
>> vulnerable to compromise in the presence of sloppy PHP code.
>> So enabling the old behavior is not an option.
> I agree. At the time I wrote the script I used what had been acceptable
> behavior. What I need to do is to find the specific cases that cause
> the script to fail and correct it in the PHP 5 context. It's more of a
> case that I don't do much PHP coding.
>
Log files can also help a lot.
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors ',1);
at the very top of the script.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list