-   Linux - Server (
-   -   php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 (

shakeel_125 09-28-2006 09:15 AM

php comment problem // and /* on Fedora Core 5 and PHP 5.1.4

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..

Thanks & Regards,

reddazz 09-28-2006 03:11 PM

Does the same happen when you use proper php delimeters (<?php ?>) instead of short tags?

shakeel_125 09-29-2006 02:09 AM

Thank u for the kind reply..

i tried it but no use. same problem even if i put <?php tag.

Thanks & Regards,

shakeel_125 09-29-2006 02:12 AM


again i installed Fedora5 now i tested the same issue with default installation.

if i put "/*" comment no out put in browser when i complile it. this problem is there in default installation also.

Execute the below code and check the result
echo "No out put in browser";
This is comment

what could be the solution for this???? help pleaseee

Thanks & Regards,

reddazz 09-29-2006 04:42 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Discussion continues here.

All times are GMT -5. The time now is 11:17 AM.