From owner-freebsd-questions Tue Oct 16 13:25: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from q.closedsrc.org (ip233.gte15.rb1.bel.nwlink.com [209.20.244.233]) by hub.freebsd.org (Postfix) with ESMTP id 49AED37B405 for ; Tue, 16 Oct 2001 13:25:00 -0700 (PDT) Received: by q.closedsrc.org (Postfix, from userid 1002) id 6EEAD13607; Tue, 16 Oct 2001 13:24:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by q.closedsrc.org (Postfix) with ESMTP id 63CD6BA18; Tue, 16 Oct 2001 13:24:33 -0700 (PDT) Date: Tue, 16 Oct 2001 13:24:33 -0700 (PDT) From: Linh Pham To: "Gerald T. Freymann" Cc: Subject: Re: quick php/apache question re the tags In-Reply-To: <00de01c1567d$2c2f1b70$0f01a8c0@phantom> Message-ID: <20011016131318.M33262-100000@q.closedsrc.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On 2001-10-16, Gerald T. Freymann scribbled: # If I call up this sample html file with a web browser, I get a blank page # and a correct title: # # # # Example # # # # # # # # # 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? That's the why it's supposed to work. Apache handles .htm/.html files by just reading them in and spitting the entire file, unchanged back to the browser. When it enoucnters a .php file, it reads it in and sends to the PHP parser and Apache gets back the processed file and sends it to the browser. Why change it? -- Linh Pham [lplist@closedsrc.org] # Every solution breeds new problems To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message