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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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
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!
I have added this, it will work in future releases
thanks...