php comment problem // and /* on Fedora Core 5 and PHP 5.1.4
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4
Hi,
I have recomplied PHP on fedora core5 with PHP 5.1.4. everything is fine but my broser dispay PHP code if i put any comment in PHP code. for example.
The below code work fine when the i comment the lines with "//"
<?
echo "This is working";
//This is comment1
//This is comment2
?>
The Same above code dint work if i comment the lines with "/*"
<?
echo "This is not working, code will dispaly in browser";
/*
This is comment1
This is comment2
*/
?>
i tried with .php but same problem. i see only this problem other things r fine. i have lot of comments in my code like this.
I googled but dint get proper solution. please help me. if this is resolved i can put Fedora in my compnay..pls help me and help fedora..
I just tried this. works for me, the comments are not displayed. even I use php5.1.4 with apache 2.2.0 on fc5.
give us more details on how you access and display it.
There is no error in compilation. i tried it for 3 times with fresh installation..and i have seen the same isue with Fedora core4 also.
i can give you more details if needed.....
try using a default installation of php and check if that works i.e. without the other options that you have inputted.
then we will be able to pin point the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.