Re: [PHP] Extension problem

2004-04-05 Thread Duncan Hill
On Monday 05 April 2004 10:37, Enrico Comini wrote:
 I use php without problem, but my file is processed by php only if the
 extension is .php , why ?
 If I have for example a index.html with ?php at the beginning , this
 file is not parsed by php and I have to rename in index.php
 Thanks, Enrico

Apache (and other webservers) have a config option that maps file extensions 
to parsers (ie, .php to mod_php).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Extension problem

2004-04-05 Thread Kim Steinhaug
In other words you could say that if youd like the HTML files to be parsed
as PHP files you would need to change the mapping on the server,

eg.

AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

the second line would tell apache to run html files as php files.

You could also, to do some sneaky things do this :

AddType application/x-httpd-php .png

or

AddType application/x-httpd-php .myDocumentType
Url . http://www.mydomain.com/index.myDopcumentType

This can usually also be done in the .htaccess file, you need some
googling for this as I dont recall the syntax.

The PHP and HTML extension are nothing more than a way of
cataloging / seperating the files.

-- 
-- 
Kim Steinhaug
--
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
--
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
--


Duncan Hill [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Monday 05 April 2004 10:37, Enrico Comini wrote:
  I use php without problem, but my file is processed by php only if the
  extension is .php , why ?
  If I have for example a index.html with ?php at the beginning , this
  file is not parsed by php and I have to rename in index.php
  Thanks, Enrico

 Apache (and other webservers) have a config option that maps file
extensions
 to parsers (ie, .php to mod_php).

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] extension problem

2002-07-04 Thread joakim . andersson

You probably shoul start here: http://www.php.net/manual/en/zend.php

/Joakim

 -Original Message-
 From: adelpfephp [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 04, 2002 4:34 PM
 To: php-france; [EMAIL PROTECTED]
 Subject: [PHP] extension problem
 
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php