LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Closed Thread
 
LinkBack Search this Thread
Old 09-28-2006, 09:15 AM   #1
shakeel_125
LQ Newbie
 
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7

Rep: Reputation: 0
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..

Thanks & Regards,
SHAAN.
 
Old 09-28-2006, 03:11 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Does the same happen when you use proper php delimeters (<?php ?>) instead of short tags?
 
Old 09-29-2006, 02:09 AM   #3
shakeel_125
LQ Newbie
 
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7

Original Poster
Rep: Reputation: 0
Thank u for the kind reply..

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

Thanks & Regards,
SHAAN.
 
Old 09-29-2006, 02:12 AM   #4
shakeel_125
LQ Newbie
 
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7

Original Poster
Rep: Reputation: 0
heey...

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
<?php
echo "No out put in browser";
/*
This is comment
*/
?>


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

Thanks & Regards,
SHAAN.

Last edited by shakeel_125; 09-29-2006 at 02:18 AM.
 
Old 09-29-2006, 04:42 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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.
 
  


Closed Thread

Tags
comment, fedora, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php comment problem // and /* on Fedora Core 5 and PHP 5.1.4 shakeel_125 Fedora 4 09-29-2006 02:14 AM
How to get php 4.4.2 and php 5.1.4 running on fedora core 5? markg85 Linux - Software 2 06-18-2006 09:23 AM
PHP / VideoLAN / Fedora Core Question - how can I get the PHP "exec" function to work gtrawoger Linux - Software 3 12-21-2005 06:51 AM
Fedora Core 2 - PHP Problem Sloppyunderfoot Fedora 2 12-25-2004 07:36 AM
PHP on Fedora Core 2 Dexter750 Linux - Software 3 10-14-2004 03:35 PM


All times are GMT -5. The time now is 04:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration