You are not logged in.

#1 2008-10-01 16:20:19

ironman
Member
Registered: 2008-10-01
Posts: 6

php showing code [SOLVED]

I've installed apache + php via pacman
but when I go to localhost/index.php i see my index page, but the php portions of it still show like <? print layout7(); ?>, instead of changing to the code in layout7.

i'm not sure where I went wrong...

Last edited by ironman (2008-10-02 02:23:35)

Offline

#2 2008-10-01 17:11:12

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: php showing code [SOLVED]

You probably have short tags turned off.  Try <?php ... ?>.  If that still doesnt work, make sure you have the proper modules loaded in apache.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2008-10-01 17:32:28

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: php showing code [SOLVED]

Did you configure Apache to use PHP?
You must add the php module for it to work.

R.

Offline

#4 2008-10-01 18:05:21

ironman
Member
Registered: 2008-10-01
Posts: 6

Re: php showing code [SOLVED]

thanks, that was short tags turned off in php.ini

i should have remembered that, but slipped my mind on this new install.

Offline

#5 2008-10-01 19:54:47

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: php showing code [SOLVED]

Cool, glad to see you got it working.  Please mark the post as [solved].  Thanks.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

Board footer

Powered by FluxBB