PHP parser fails

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
rupertburks
Forum Newbie
Posts: 3
Joined: Mon Nov 01, 2004 1:43 pm

PHP parser fails

Post by rupertburks »

I get the source code displayed when I execute a php script. For example I created a php page: <? phpinfo(); ?> and save it as phpinfo.php. The results is I see the source code <? phpinfo(); ?>

Does anyone have a clue as to why the parser is not working?

Many thanks in advance
Rupert Burks
Burks801@Mindspring.Com
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

did it ever work before?
It sounds like an apache configuration issue, if you're using apache.
rupertburks
Forum Newbie
Posts: 3
Joined: Mon Nov 01, 2004 1:43 pm

Post by rupertburks »

Yes I am using Apache. This is the initial setup of PHP, Mysql , and Apache.
I can load tables in MySql and Apache appears to work too.
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

Did you follow all of the installation instructions petaining your version of Apache and PHP and your OS in php.net?
What OS are you using?
rupertburks
Forum Newbie
Posts: 3
Joined: Mon Nov 01, 2004 1:43 pm

Post by rupertburks »

Windows XP Service Pack 2

Yes I followed all of the instructions. Only PHP appears to not be working.

Thanks,
Rupert Burks
Burks801@Mindspring.Com
Ashabbir
Forum Newbie
Posts: 6
Joined: Mon Nov 01, 2004 2:47 pm
Location: UK

Post by Ashabbir »

Hye I was wondering you know how to connect to Oracle 9i using PHP script?
Any help will be appreciated
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

This is the second thread you've hijacked. :evil:
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

try this


<?php phpinfo(); ?>


if it works, you have short tags set to off in your php.ini

(cant use <?, must use <?php )
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Post by AnarKy »

IF that didnt work then,
its almost certainly php not set up properly with apache.
:cry:
Post Reply