|
|
#1 |
|
PHP Comments
So I'm attempting to add comments around certain lines of code in my Index.php file and for some reason they're still showing on my site. Any help would be greatly appreciated, code is below:
PHP Code:
PHP Code:
__________________
2011 15" MacBook Pro 2.2Ghz i7, hr anti-glare iPad 2 32gb (white) iPhone 4S 16gb x2
|
|
|
|
0
|
|
|
#2 |
|
Make sure PHP is enabled on your site.
Code:
<?php phpinfo(); ?>
__________________
Regards, Frank |
|
|
|
0
|
|
|
#3 |
|
This might be of some help:
http://php.net/manual/en/language.ba...x.comments.php
__________________
Have You Hugged Your Mac Today?
Daily Expressions | Power Mac G5 | Late 2011 13" MacBook Pro | iPod Nano (7G) | iPod Shuffle (2012) | iPad Mini |
|
|
|
0
|
|
|
#4 |
|
Thanks for the comments, already figured it out:
PHP Code:
__________________
2011 15" MacBook Pro 2.2Ghz i7, hr anti-glare iPad 2 32gb (white) iPhone 4S 16gb x2
|
|
|
|
0
|
|
|
#5 |
|
Just a point of clarification.
The comments shown in your first post are PHP and the one in your last post is HTML. I know you have already answered your own question. I'm just pointing this out because understanding the difference might save you some time in the future. They way PHP and HTML can be mixed on a page can make it difficult to follow what is going on. |
|
|
|
0
|
|
|
#6 |
|
|
0
|
|
|
#7 |
|
//comment in PHP (inside the <?php ?> tags)
#Comment in .htaccess <!-- Comment in HTML -->
__________________
Questions? MRoogle it! I support the MacRumors Blood Drive! ![]() MR Scavenger Score: 1 |
|
|
|
1
|
|
|
#8 |
|
Thanks for this! I have to adjust my .htaccess file so this is perfect.
__________________
2011 15" MacBook Pro 2.2Ghz i7, hr anti-glare iPad 2 32gb (white) iPhone 4S 16gb x2
|
|
|
|
0
|
|
|
#9 | |
|
Quote:
PHP Code:
PHP Code:
__________________
Jim Goldbloom Sr. Web Developer, owner GoldTechPro, LLC http://www.GoldTechPro.com
|
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 03:28 AM.




2011 15" MacBook Pro 2.2Ghz i7, hr anti-glare


I support the 
Linear Mode
