Forum Moderators: coopster

Message Too Old, No Replies

PHP Displaying Codes

PHP Installation error

         

tabish

6:31 am on Jan 20, 2006 (gmt 0)

10+ Year Member



Hello All,

I installed PHP manually on windows XP (just trying to do things manually) with Apache 2 and Mysql 5. Everything seems working fine.

Now i saw very strange problem here, When i write any php code i use <?php ?> and if i dont put PHP after <? then my php code doesnt work.. it displayed code as it is in browser. Even previously i was able to run php without writing PHP after "<?"..

can anyone tel me where i am wrong?

Regards

ogletree

6:36 am on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you talking about the ext .php? If you want to run .html pages as php you need to add a line to the htaccess file.

tabish

8:27 am on Jan 20, 2006 (gmt 0)

10+ Year Member



sorry.. i solved it.. thank you anyway.

Twisted Mind

9:35 am on Jan 20, 2006 (gmt 0)

10+ Year Member



Anyway he meant <?> dind work but <?Php?> did work i had this onece before only in one file kinda strange but anyways just for letting u know

jatar_k

4:18 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it is a setting in php.ini

[php.net...]