Fedora This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-28-2006, 07:35 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7
Rep:
|
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.
|
|
|
09-28-2006, 08:39 AM
|
#2
|
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191
Rep:
|
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.
|
|
|
09-28-2006, 08:47 AM
|
#3
|
LQ Newbie
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
09-28-2006, 12:22 PM
|
#4
|
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191
Rep:
|
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.
|
|
|
09-29-2006, 02:14 AM
|
#5
|
LQ Newbie
Registered: Apr 2004
Location: india
Distribution: redhat-7.3
Posts: 7
Original Poster
Rep:
|
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:17 AM.
|
|
|
All times are GMT -5. The time now is 03:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|