problems with php.ini

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Redding

    problems with php.ini

    I am using Apache 1.3, MySql 3.23.28-gamma and php 4.0 with Internet
    Explorer 6 (sp2) on Windows XP.

    I am using the manual MySql/PHP Database Applications to teach myself php
    and mysql. I have installed everything per the book and everything is
    working except php. There appears to be a problem with the php.ini file as
    Apache doesn't execute a simple php command I placed in test.html:
    <? echo "hello" ?>

    What am I missing? Do I have to make some kind of declaration in the header
    of the html file?

    Could someone with a similar setup email me their php.ini file so I can
    compare it with mine?


  • Alvaro G Vicario

    #2
    Re: problems with php.ini

    *** Bob Redding wrote/escribió (Wed, 29 Oct 2003 05:55:37 -0500):[color=blue]
    > I am using Apache 1.3, MySql 3.23.28-gamma and php 4.0 with Internet
    > Explorer 6 (sp2) on Windows XP.
    >
    > I am using the manual MySql/PHP Database Applications to teach myself php
    > and mysql. I have installed everything per the book and everything is
    > working except php. There appears to be a problem with the php.ini file as
    > Apache doesn't execute a simple php command I placed in test.html:
    > <? echo "hello" ?>[/color]

    You can probably discard MySQL, Internet Explorer, Windows and php.ini as
    problem source. Apache needs to know what documents it should pass to PHP
    interpreter. Default installs normally use *.php extension. If you want to
    parse files with *.html extension you have to perform some additional
    config within Apache. Anyway, I'm pretty sure you actually want to parse
    PHP in *.php files only so just rename your test file to "test.php".


    --
    --
    -- Álvaro G. Vicario - Burgos, Spain
    --

    Comment

    • gf

      #3
      Re: problems with php.ini

      "Bob Redding" <bobreddi@bells outh.net> wrote in message
      news:W%Mnb.6266 8$h47.8650@bign ews4.bellsouth. net...[color=blue]
      > I am using Apache 1.3, MySql 3.23.28-gamma and php 4.0 with Internet
      > Explorer 6 (sp2) on Windows XP.
      >
      > I am using the manual MySql/PHP Database Applications to teach myself php
      > and mysql. I have installed everything per the book and everything is
      > working except php. There appears to be a problem with the php.ini file[/color]
      as[color=blue]
      > Apache doesn't execute a simple php command I placed in test.html:
      > <? echo "hello" ?>
      >
      > What am I missing? Do I have to make some kind of declaration in the[/color]
      header[color=blue]
      > of the html file?
      >
      > Could someone with a similar setup email me their php.ini file so I can
      > compare it with mine?
      >
      >[/color]

      In your apache httpd.conf file, make sure you have this line (or similar) to
      parse your php code in your .htm* documents. That will resolve your issue.

      AddType application/x-httpd-php .phtml .php .php3 .htm .html


      --
      Gaylen
      Raven Web Hosting http://ravenwebhosting.com
      PHP KISGB PHP Guest Book for Standard and phpNuke sites

      PHP KISSQ PHP Stock Quote for Standard and phpNuke sites



      Comment

      Working...