Reply to Re: what does this code block do?

Your name:

Reply:


Posted by Vince Morgan on 03/19/07 01:07

>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.
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.

>print('· You have <u>damaged</u>: <b>config.'.$phpEx.'</b> file !<br /
>· File must begin with: <b>&lt;?php</b> and finish with <b>?&gt;</b>
>with any other chars (spaces, tabs or new line) before &lt;?php and
>after ?&gt;<br />· You must correct the file !<br />· Remember <u>it
>is not mistake</u>, if your text editor can not see this space, tab or
>new line, use other editor with operating multi (CR/LF) format or
>create new file with clean content.<br />· Forum will not work
>correctly with damaged config.php file.<hr /><br />');
>}

HTH
Vince Morgan

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация