From owner-freebsd-questions Tue Oct 16 13:18: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dv-db.com (dv-db.com [207.159.141.95]) by hub.freebsd.org (Postfix) with ESMTP id 542EA37B401 for ; Tue, 16 Oct 2001 13:18:06 -0700 (PDT) Received: from mark2 (usr957-bh2.blueyonder.co.uk [62.30.235.205]) by dv-db.com (8.9.3/8.9.3) with SMTP id VAA29250; Tue, 16 Oct 2001 21:18:00 +0100 (GMT/BST) Message-ID: <00bd01c1567f$81f24c60$cdeb1e3e@mark2> From: "Mark Hughes" To: "Mark Hughes" , "Gerald T. Freymann" , References: <00de01c1567d$2c2f1b70$0f01a8c0@phantom> <00b701c1567e$8d8b4ff0$cdeb1e3e@mark2> Subject: Re: quick php/apache question re the tags Date: Tue, 16 Oct 2001 21:16:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I have a FreeBSD 4.3-Release box with: > > > > Apache/1.3.20 > > PHP/4.0.6 > > mod_perl/1.25 > > > > If I call up this sample html file with a web browser, I get a blank page > > and a correct title: > > > > > > > > Example > > > > > > > > > echo "Hi, I'm a PHP script!"; > > ?> > > > > > > > > > > But if I put the exact same code into a file called "text.php" the > results > > are what you'd expect. > > > > What am I missing in order to have php command in an html file and have > > then processed? > > Couple of possibilities - the file must have the extension .php to be > recognised by apache as php-parseable, and you must have the correct lines > in your httpd.conf file for apache for recognising php files and passing > them to php itself (althogouh I can't check for you right now exactly what > they should be - if you installed from ports they should be there already, > if you installed manually then you may need to add them - I'd imagine > www.php.net will have info on what it is you need to add). Sorry, didn't read the question right there :+) Let me try again... What web browser are you using? It is possible that the browser is interpreting the