The lines I have commented are all on their own line and are one liners.
More or less, anywhere I use a "//" to comment, the entire line is displayed
to the user.  The following two scripts will give me the same result.

<?php
    // This comment will show on the web page
?>

<?php
    print('// This comment will show on the web page');
?>

I noticed in the documentation that the "//" was considered a C++ style of
commenting.  Do I possibly need a particular module or directive to say that
"//" is a comment?

Thanks,
Lael


> ID: 12323
> Updated by: cnewbill
> Reported By: [EMAIL PROTECTED]
> Status: Open
> Bug Type: Output Control
> Operating System: Mac OS X
> PHP Version: 4.0.6
> New Comment:
> 
> Okay it would happen on more than one liners.
> 
> basically if you have a ?> on the same line as the // comment it will do this.
> 
> I know there is some other bugs on this same problem, but I don't have the
> numbers handy.
> 
> -Chris
> 
> Previous Comments:
> ------------------------------------------------------------------------
> 
> [2001-07-23 18:31:24] [EMAIL PROTECTED]
> 
> The only situation I can think of where this would happen is
> 
> <?php // print "stuff"; ?>
> 
> i.e. one liners
> 
> If this is your case this is expected behavior IIRC.  Otherwsie submit a small
> script that reproduces the problem.
> 
> -Chris
> 
> ------------------------------------------------------------------------
> 
> [2001-07-23 17:19:38] [EMAIL PROTECTED]
> 
> When I use the "//" as the comment, the text behind the tag
> is displayed out to the user.  I can replace it with a "/*"
> and put a "*/" at the end to make it work.  But I was
> hoping I had missed some compile option or something that
> is causing this to not work.
> 
> 
> 
> 
> 
> To make the installs on my G3 PowerMac Laptop, I have used
> the instructions found at: http://www.devshed.com/
> Server_Side/Administration/BuildingOnOSX/
> 
> Any suggestions are welcome.
> 
> Thanks,
> Lael
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=12323&edit=2
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to