You are here: Re: what does this code block do? « All PHP « IT news, forums, messages
Re: what does this code block do?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация