Raditha Dissanayake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Wrong approach all together. Start using CVS
and do not mix php and html - use templates :)
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
hi,
This may sound very newbie. But since html comment uses !-- -- which doesn't comment
out the
php code. And the php comment /**/ // apparently doesn't work on html. So how do I
comment out
a chunk of html/php mixed code?
Many thanks,
Wei Wang
You might try the following:
!-- ?php /*
*/ ? --
This is untested, I've never had to face the issue.
Cheers,
Rob.
On Mon, 2003-09-15 at 15:59, Wei Wang wrote:
hi,
This may sound very newbie. But since html comment uses !-- -- which doesn't
comment out the
php code. And the php comment
On Monday 15 September 2003 12:59 pm, Wei Wang wrote:
hi,
This may sound very newbie. But since html comment uses !-- -- which
doesn't comment out the php code. And the php comment /**/ // apparently
doesn't work on html. So how do I comment out a chunk of html/php mixed
code?
probably the
From: Wei Wang [EMAIL PROTECTED]
This may sound very newbie. But since
html comment uses !-- -- which doesn't
comment out the php code. And the php
comment /**/ // apparently doesn't work
on html. So how do I comment out a
chunk of html/php mixed code?
/* and */ appears to work:
?php
/*
On Mon, Sep 15, 2003 at 08:59:53PM +0100, Wei Wang wrote:
:
: This may sound very newbie. But since html comment uses !-- --
: which doesn't comment out the php code. And the php comment /**/ //
: apparently doesn't work on html. So how do I comment out a chunk of
: html/php mixed code?
Remove
?php /*
your mixed html and php code here
*/ ?
that way php will take everything inside the ?php ? tags and
comment them
out, regardless of if they are html or php or whatever.
This won't work is your PHP code has comments using /* */ syntax in it
already. I always just through an
Wrong approach all together. Start using CVS
Wei Wang wrote:
hi,
This may sound very newbie. But since html comment uses !-- -- which doesn't
comment out the
php code. And the php comment /**/ // apparently doesn't work on html. So how do I
comment out
a chunk of html/php mixed code?
Many
8 matches
Mail list logo