[HPADM] RE: apache 2 & php

From: Pedro Daniel Guedes Figueira (Pedro.Figueira_at_SEF.pt)
Date: 12/30/04

  • Next message: BAKHSHESH Kazem: "[HPADM] RE : apache 2 & php"
    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)
    

  • Next message: BAKHSHESH Kazem: "[HPADM] RE : apache 2 & php"

    Relevant Pages

    • Re: PHP5 IIS Setup
      ... If there were any html tags, ... Incidentally I'm using Apache 2, ... You haven't added a type association so Apache knows to use PHP to process ... it not processing PHP files. ...
      (alt.php)
    • Re: Content negotiation in Apache
      ... >Someone already mentioned the rewriting rules which will work for you. ... Sorry I hadn't posted anything in awhile, but Apache and I move ... The other is that I'm learning PHP and did not originally have the ... and got 600 visitors this December, and the page ends in ".html" and now ...
      (RedHat)
    • Re: PHP-Yes, HTML-No --- Why?
      ... Surely a dynamic web server should appear exactly the same as a static one - all files that contain HTML when viewed should be called ... If you know how, say, the PHP apache module works, you'll see that the hit is ... Apache was designed to do just this. ...
      (comp.lang.php)
    • Re: How do we get there from here?
      ... > then sub the whole of that generated markup into the template? ... layed out on the fly, a simple IMG tag, or even an entire HTML document. ... PHP scripting provides 10 times the features of both of these ... idea as tokens can eliminate a huge amount of maintance, ...
      (comp.databases.pick)
    • Re: query string passing woes........ help... please....
      ... |> | offer any help other than saying that my validation could be FAR more ... I'm a total newbie at php. ... The easiest way for you would be to make the html form called form.php ... $_SESSION array using the same names. ...
      (alt.php)