You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Justin French <ju...@indent.com.au> on 2002/10/05 15:49:52 UTC
[users@httpd] forcing a specific HTML file to be parsed by PHP
Hi all, I know how to make ALL .html files be parsed by PHP, but not a
specific one, eg ONLY foo.html.
I want to achieve this via a .htaccess file
Thanks,
Justin
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] forcing a specific HTML file to be parsed by PHP
Posted by Max Dittrich <Ma...@t-online.de>.
Hi,
Justin French wrote:
> Hi all, I know how to make ALL .html files be parsed by PHP, but not a
> specific one, eg ONLY foo.html.
>
> I want to achieve this via a .htaccess file
Hmmm, _forcing_ ... !? Looks good for using ForceType ;)
Try this:
<Files special.html>
ForceType application/x-httpd-php
</Files>
.max
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] forcing a specific HTML file to be parsed by PHP
Posted by Mitch Vincent <mi...@cfact.com>.
Can you send is the error?
This is more a question for the PHP users list, BTW.
> I have in stalled Apache 2.0.43 (win32) on my XP machine, together with
> PHP 4.2.3
> I have configured the server to recognise PHP, local directories etc.
>
> Apache starts - no errors, and will accept PHP documents from my
> browser. E.g. asking for phpinfo() returns the page I would expect.
>
> I can run my PHP pages, as I do from my ISP site. Except I encounter
> an
> error when posting data to my PHP script.
>
> The error messages indicate that the data posted from the HTML form is
> not arriving, and the PHP script is warning of an Array error (the
> place
> my data ends up). This script works fine on my ISP website so I
> suspect
> a configuration problem either in Apache or PHP or both. Any thoughts
> -
> anyone ?
>
>
> Nigel Thompson
-Mitch
Don't take life too serious. You'll never escape it alive anyway.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org