[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php et php3



Le 18/04/2003 19:40 hendrickx guy a écrit :
Le ven 18/04/2003 à 18:12, Philippe Gaudron a écrit :

hendrickx guy wrote:
raté, c'est pas httpd.conf qu'il faut modifier. c'est mime.types
il faut juste lui dire que les fichiers avec l'extension php3 ne sont
pas des fichiers php3 mais des fichiers php

Raté ;)
Il est recommandé (voir doc Apache) de *ne pas* modifier mime.types, mais plutôt d'ajouter des directives AddType dans httpd.conf

Mais ta solution fonctionne quand même


desolé pas cher moi voici un extrait de mon httpd.conf
#
    #
    AddType allows you to tweak mime.types without actually editing
    # it, or to make certain files to be certain types.
    #
    # For example, the PHP 3.x module (not part of the Apache
    # distribution - see http://www.php.net) will typically use:
    #
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    #
    # And for PHP 4.x, use:
    #
    AddType application/x-httpd-php .php
    #AddType application/x-httpd-php-source .phps

    AddType application/x-tar .tgz
    AddType image/bmp .bmp

    # hdml
    AddType text/x-hdml .hdml

puis /etc/init.d/apache reload
:etc/init.d/apache restart
et toujours rien il y aurrait il autre chose ue j'ai oublié ?

Oui, tu déclares 2 fois php :p En fait, la ligne correcte (ça fonctionne chez moi depuis un bon moment) est :

 # And for PHP 4.x, use:
 #
 AddType application/x-httpd-php .php .php3 .php4
 AddType application/x-httpd-php-source .phps

Claude



Reply to: