Hello Everyone,
I am pretty new to the PHP world. Please help me out. I installed PHP4.04 on Win98(Apache is the web server). But when I was testing:
<?php phpinfo(); ?>
I got the exactly same <?php phpinfo(); ?>
on the browser.
When I was testing the following:
<head>
<title>the first rule</title>
</head>
<body>
<?php print ("hello, curel world"); ?>
</body>
I got a blank page.
I think i didn't do the configuration right. I followed some instructions and added the following lines at the end of httpd.conf in my apache folder:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
I have a couple of questions regarding this:
1. I also have another file httpd.default in my conf folder. Do I need to add the above lines in that file too(I did)?
2. in the httpd file, there are all the "#" stuff. Are those comments symbol? When I add the above lines, I did this way at the very end of the file:
#
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
#
is this right? Do I need to the "#" when I adding the lines? Please tell me some idears. Thanks a lot.