LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 09-28-2006, 08:35 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, 09:39 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
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.
 
Old 09-28-2006, 09:47 AM   #3
shakeel_125
LQ Newbie
 
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7

Original Poster
Rep: Reputation: 0
Thansk for the quick reply..

as more details i can give you my php configuration

./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-dbtcp=/opt/dbtcp --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-regex=system --with-xml --with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-mbstring --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=/usr --enable-memory-limit --enable-bcmath --enable-shmop --with-versioning --enable-calendar --enable-dbx --enable-dio --with-apxs2=/usr/sbin/apxs --enable-shared --with-oci8=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server --with-xpm --with-ftp

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

Thanks & Regards,
SHAAN.
 
Old 09-28-2006, 01:22 PM   #4
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
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.
 
Old 09-29-2006, 03:14 AM   #5
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 03:17 AM.
 
  


Reply

Tags
comment, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get php 4.4.2 and php 5.1.4 running on fedora core 5? markg85 Linux - Software 2 06-18-2006 10:23 AM
Fedora Core 2 and PHP 5...Possible? southmost Fedora 1 05-19-2006 10:18 AM
PHP / VideoLAN / Fedora Core Question - how can I get the PHP "exec" function to work gtrawoger Linux - Software 3 12-21-2005 07:51 AM
Fedora Core 2 - PHP Problem Sloppyunderfoot Fedora 2 12-25-2004 08:36 AM
PHP on Fedora Core 2 Dexter750 Linux - Software 3 10-14-2004 04:35 PM


All times are GMT -5. The time now is 06:20 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