Menu

Newbie::::: the blank page issue

Help
Snx_
2005-04-27
2013-04-15
  • Snx_

    Snx_ - 2005-04-27

    i am getting the blank page when i try to access a script within an html doc... however everything seems fine when i access .php documents...  i installed webserv latest with apache 2 and php 5

    the phpinfo.php works fine... i am slowly going through the php.ini  and manual/install to understand why this is happening.. one way or another i will post my findings...

    regards
    j.

     
    • Snx_

      Snx_ - 2005-04-27

      in reference to that last post:

      --
      http://192.168.1.101/hello.php
      --
      <?
      echo "hello";
      ?>
      --
      gives me: the obvious:
      hello

      ===

      --
      http://192.168.1.101/hello.html
      --
      <html>
      <head>
      <title>blank</title>
      </head>
      <body>
      <?
      echo "hello";
      ?>
      </body>
      </html>
      --
      browser returns nothing in the veiwport
      ==

      i am receiving no errors in the log

      phpinfo(); works fine... i can post info from there if someone were to let me know what they need... in the meantime... i will keep tinkering...

      thx

       
    • Snx_

      Snx_ - 2005-04-27

      okay so i uninstalled and did a manual install, although i dont think it was necasary it gave me what i needed to configure this properly... the other thing i should mention, the manual install on XP is so very simple buti know I felt intimidated just 24 hours ago...

      Tell Apache to parse .html files for PHP code:
      (Apache, by default, won't do this.)

      Search in your apache httpd.conf for:

      AddHandler application/x-httpd-php .php
      or
      AddType application/x-httpd-php .php

      These are the lines that tell Apache to parse your .php files for PHP code. Add the following "new line" to turn on parsing for .html files

      AddHandler application/x-httpd-php .php
      AddHandler application/x-httpd-php .html #new line

      or if you're using AddType:

      AddType application/x-httpd-php .php
      AddType application/x-httpd-php .html #newline

      good luck!

       
    • Mike Dessaint

      Mike Dessaint - 2005-05-16

      I have added this, it will work in future releases
      thanks...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.