[HPADM] RE: apache 2 & php
From: Pedro Daniel Guedes Figueira (Pedro.Figueira_at_SEF.pt)
Date: 12/30/04
- Previous message: BAKHSHESH Kazem: "[HPADM] apache 2 & php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Dec 2004 10:24:25 -0000 To: "BAKHSHESH Kazem" <BAKHSHEK@ESSILOR.fr>, <hpux-admin@dutchworks.nl>
Hi there
You basicly need to parse all the *.html file trouh the php module of the apache.
To do this you should modify this line to your httpd.conf file:
original: AddType application/x-httpd-php .php
modified: AddType application/x-httpd-php .php .html
I've found this link with more detaild information : http://www.spiderpro.com/bu/buphph001.html
Regards
Pedro Figueira
-----Mensagem original-----
De: hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]Em nome de BAKHSHESH Kazem
Enviada: quinta-feira, 30 de Dezembro de 2004 10:09
Para: 'hpux-admin@dutchworks.nl'
Assunto: [HPADM] apache 2 & php
Hi admins,
Does anyone know how can I execute a php instructions in a file with html extension.
Php works only if the file have .php extension.
Server: HP B.11.00
Server version: Apache/2.0.49 HP-UX_Apache-based_Web_Server
Server built: Apr 6 2004 21:20:33
Here my index.html file
<HTML> <HEAD>
<P> Test for cgi </p>
<FORM action=" <http://fret0063/cgi-bin/test-cgi> http://fret0063/cgi-bin/test-cgi" method=POST>
<INPUT type="submit" value="Lancer le programme"> </FORM>
<? echo "======================="; echo "Hello world"; ?> ==> Does not work
<?php echo "======================="; echo "Hello world"; ?> ==> Does not work
<P>test PHP </p>
<FORM action=" <http://fret0063/index.php> http://fret0063/index.php" method=POST>
<INPUT type="submit" value="Lancer le programme">
</FORM> </BODY> </HTML>
Cordialement(Best regards)
Kazem Bakhshesh(Administrateur Système : HP-UX)
E-Mail : bakhshek@essilor.fr
Tel : 01.72.94.73.09
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl
Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
- Previous message: BAKHSHESH Kazem: "[HPADM] apache 2 & php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|