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