Reply to commenting ?>

Your name:

Reply:


Posted by julian_m on 07/07/06 18:35

I cant think in any reason why this code fails...

Commented line shuldn't be completely ignored by the parser?

<?php

// ?> whatever

ehco 'bla bla';

?>


In the real case, I'm having problems commenting out regex expressions
such as

$res= preg_replace('#<\s*(p|span|li|ul|ol)\s+.*?>#si', '<\1>',$str);

While this doesn't work:
// $res= preg_replace('#<\s*(p|span|li|ul|ol)\s+.*?>#si', '<\1>',$str);

The following seems to be treated as expected

/*
$res= preg_replace('#<\s*(p|span|li|ul|ol)\s+.*?>#si', '<\1>',$str);
*/

Again, I can't see the reason of that parser's behavior...

regards- julian

[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

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