|
Posted by Vince Morgan on 03/19/07 01:42
"Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
news:45fde317$0$4753$afc38c87@news.optusnet.com.au...
>
> >if ( strpos($config_content, 'dbuser') && (substr($config_content, 0,
> >5) != '<?php' || substr($config_content, -2) != '?>') )
> {
>
> I should have paid more attention to the above.
> The firt test is for the string 'dbuser' within the "config.php" file.
> If that is missing it will also generate the message below, and that could
> be very confusing.
I should have stayed in bed a little longer this morning I think.
If, 'dbuser' is found, AND then if the first 5 chars are not '<?php', OR
the last 2 chars are not '?>', the error mesage is output.
> Especialy considering that it states "Remember <u>it
> >is not mistake</u>" when in fact it may well not be what the error
message
> indicates, which would in fact be a "mistake"
> Badly formed error testing and reporting I think.
>
Applogies,
Vince Morgan
Navigation:
[Reply to this message]
|