PHP script NOT working in Apache/Firefox

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
UnivKen
Forum Newbie
Posts: 4
Joined: Wed Sep 05, 2007 10:35 am

PHP script NOT working in Apache/Firefox

Post by UnivKen »

Hi

OS : Linux ( Xandros -> Debian )
Webserver : Apache/1.3.33 (Debian GNU/Linux)
Web-browser : Firefox 1.5.0.5

A simple PHP script doesn't work !!

When invoked in firefox browser: http://localhost/php1.php
its didn't execute but just provides two options ( radio buttons): "Open with " and "Save To Disk"

Following is the php1.php script

<?php
echo "This is PHP script in Apache/Firefox !";
?>


I had modified the script as follows
-----------------------------------------

<html>
<head>
<title>A simple PHP script </title>
</head>
<body>

<b>

<?php
echo "This is PHP script in Apache/Firefox !";
?>

</b>
</body>
</html>


Again it didn't execute but provides those 2 options "Open with " and "Save To Disk" !!!!


univken
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

Sounds like php isn't installed, or configured correctly.
Locked