From owner-freebsd-questions Sun Apr 23 20: 6:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mrs-1.smartworld.net (mrs-1-fix.smartworld.net [216.70.64.24]) by hub.freebsd.org (Postfix) with ESMTP id E7B7437B9F7 for ; Sun, 23 Apr 2000 20:06:51 -0700 (PDT) (envelope-from dnormandin@freewwweb.com) Received: from webserver (cust153.tnt1.dial.cal1.uunet.ca [209.167.219.153]) by mrs-1.smartworld.net (8.9.1a/8.9.1) with SMTP id XAA49915; Sun, 23 Apr 2000 23:06:30 -0400 (EDT) Message-ID: <000a01bfad9a$61af23e0$99dba7d1@webserver> From: "Duke Normandin" To: "Marc Wandschneider" , Subject: Re: Am I just being dumb (apache/php) Date: Sun, 23 Apr 2000 21:06:17 -0600 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 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, April 23, 2000 Mitch Vincent wrote: >Try > > >phpinfo(); > >?> > >in a file named .php3 > >See what that gets you. > >After that, check out www.php.net and read up :-) > >----- Original Message ----- >From: Marc Wandschneider >To: >Sent: Sunday, April 23, 2000 7:13 PM >Subject: Am I just being dumb (apache/php) > > >> >> >> whasssuuuppp? >> >> so, I have apache 1.3.9 running on my FreeBSD 3.3 server. I also compiled >> in PHP 3.0.12 support, and added in mysql support as well. >> >> next, I added the following to httpd.conf >> >> AddType application/x-httpd-php3 .php3 >> AddType application/x-httpd-php3-source .phps >> >> and did the demanded copy of php3.ini-dist to /usr/local/lib/php3.ini. >> stopped & started apache, and it prints out the following: >> >> [Sun Apr 23 15:10:28 2000] [notice] Apache/1.3.9 (Unix) PHP/3.0.12 >> configured -- resuming normal operations >> >> Now, the problem is, I can't get any script to actually DO anything. I'm >> assuming that this stuff is basically just server side script that can be >> embedded in HTML, and the server executes right before downloading the >HTML. >> that being the case, I can't get any code to run at all, like or any of the other tags >> suggested ... >> >> Am I just way off on my understanding of what I'm supposed to be doing >> here?? >> >> Any suggestions would be appreciated. Do what Mitch suggested.....then cut-n-paste the following into a file called test.php3 Called it up with the following: http://localhost/test.php3 If you want to mix PHP code with HTML, you can do: My First PHP Page

Marc's HomePage

\n"; ?>
Save this bugger as test.phtml (You'll have to add AddType application/x-httpd-php3 .phtml to your Apache config. When PHP will be doing its thing AND the HTML, I use the .php3 extension. When I break in and out of PHP within an HTML file, I use the .phtml extension. Let me know off-list how you make out! -duke To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message