[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-admin
Subject:    [HPADM] RE: apache 2 & php
From:       "Pedro Daniel Guedes Figueira" <Pedro.Figueira () SEF ! pt>
Date:       2004-12-30 10:24:25
Message-ID: FCAE74F23411A74FA4D2C157534323AB5F671A () EXCHANGE9 ! sefsede ! pt
[Download RAW message or body]

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

 


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = 
"urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff size=2>Hi 
there</FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial><FONT color=#0000ff 
size=2>You basicly need to parse all the *.html file trouh the php&nbsp;module 
of the apache.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial><FONT size=2><FONT 
color=#0000ff>To do this you should&nbsp;modify this line to 
your&nbsp;httpd.conf file:</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2>original: </FONT></SPAN><SPAN class=882411610-30122004><FONT><FONT 
face=Arial color=#0000ff size=2>AddType application/x-httpd-php .php 
</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2>modified: </FONT></SPAN><SPAN class=882411610-30122004><FONT face=Arial 
color=#0000ff size=2>AddType application/x-httpd-php .php .html 
</FONT></SPAN></DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff size=2>I've 
found this link with more detaild information : <A 
href="http://www.spiderpro.com/bu/buphph001.html">http://www.spiderpro.com/bu/buphph001.html</A></FONT></SPAN></DIV>
 <DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff 
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=882411610-30122004><FONT face=Arial color=#0000ff size=2>Pedro 
Figueira</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Mensagem original-----<BR><B>De:</B> 
  hpux-admin-owner@DutchWorks.nl [mailto:hpux-admin-owner@DutchWorks.nl]<B>Em 
  nome de </B>BAKHSHESH Kazem<BR><B>Enviada:</B> quinta-feira, 30 de Dezembro de 
  2004 10:09<BR><B>Para:</B> 'hpux-admin@dutchworks.nl'<BR><B>Assunto:</B> 
  [HPADM] apache 2 &amp; php<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=686235709-30122004>Hi 
  admins,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=686235709-30122004></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=686235709-30122004>Does anyone 
  know&nbsp; how can I&nbsp;execute a php instructions in a file with html 
  extension.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=686235709-30122004>Php works only if 
  the file have .php extension.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=686235709-30122004></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=686235709-30122004></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=686235709-30122004>Server: HP 
  B.11.00</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2>Server version: Apache/2.0.49&nbsp; 
  HP-UX_Apache-based_Web_Server<BR>Server built:&nbsp;&nbsp; Apr&nbsp; 6 2004 
  21:20:33</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=686235709-30122004><FONT face=Arial size=2>Here my index.html 
  file </FONT></SPAN></DIV>
  <DIV><FONT face=Arial size=2>&lt;HTML&gt; &lt;HEAD&gt;<BR>&lt;P&gt; Test 
  for&nbsp; cgi &lt;/p&gt;<BR>&lt;FORM action="</FONT><A 
  href="http://fret0063/cgi-bin/test-cgi"><FONT face=Arial 
  size=2>http://fret0063/cgi-bin/test-cgi</FONT></A><FONT face=Arial size=2>" 
  method=POST&gt;<BR>&lt;INPUT type="submit" value="Lancer le programme"&gt; 
  &lt;/FORM&gt;<BR>&lt;? echo "======================="; echo "Hello world"; 
  ?&gt;<SPAN 
  class=686235709-30122004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  ==&gt; Does not work</SPAN><BR>&lt;?php echo "======================="; echo 
  "Hello world"; ?&gt;<SPAN class=686235709-30122004>&nbsp;&nbsp;&nbsp;&nbsp; 
  ==&gt; Does not work<BR></SPAN><BR>&lt;P&gt;test PHP &lt;/p&gt;<BR>&lt;FORM 
  action="</FONT><A href="http://fret0063/index.php"><FONT face=Arial 
  size=2>http://fret0063/index.php</FONT></A><FONT face=Arial size=2>" 
  method=POST&gt;<BR>&lt;INPUT type="submit" value="Lancer le 
  programme"&gt;<BR>&lt;/FORM&gt; &lt;/BODY&gt; &lt;/HTML&gt;</FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal align=left><SPAN class=GramE><B 
  style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN 
  style="FONT-SIZE: 8pt; COLOR: blue">Cordialement(</SPAN></I></B></SPAN><B 
  style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN 
  style="FONT-SIZE: 8pt; COLOR: blue">Best 
regards)<o:p></o:p></SPAN></I></B></P>
  <P class=MsoNormal><SPAN class=SpellE><B 
  style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN 
  style="FONT-SIZE: 8pt; COLOR: blue">Kazem</SPAN></I></B></SPAN><B 
  style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 8pt; COLOR: blue"> 
  <SPAN class=SpellE><SPAN class=GramE>Bakhshesh</SPAN></SPAN><SPAN 
  class=GramE>(</SPAN>Administrateur Système&nbsp;: 
  HP-UX)<o:p></o:p></SPAN></I></B></P>
  <P class=MsoNormal><SPAN class=SpellE><B 
  style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN 
  style="FONT-SIZE: 8pt; COLOR: blue">E-Mail</SPAN></I></B></SPAN><B 
  style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN 
  style="FONT-SIZE: 8pt; COLOR: blue">&nbsp;: <A 
  href="mailto:bakhshek@essilor.fr">bakhshek@essilor.fr</A><o:p></o:p></SPAN></I></B></P>
  <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><I 
  style="mso-bidi-font-style: normal"><SPAN 
  style="FONT-SIZE: 8pt; COLOR: blue">Tel&nbsp;: 
  01.72.94.73.09<o:p></o:p></SPAN></I></B></P></DIV>
  <DIV><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial 
  color=#0000ff size=2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>


--
             ---> 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic