Quote:
quote:Originally posted by anshul
If PHP is not installed, Apache should've displayed PHP code as it is. I guess, PHP is installed; perhaps there's an error in Apache/PHP configuration. Or you may've errored in naming you PHP file.
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Students' finances
|
Many thanks for your interest in my request. I confirm that PHP is installed on my server. I can use the parser php.exe to execute the code in my message and I obtain the following output in the MSDOS shell:
<html>
<head>
<title=CSCR></title>
</head>
<body>
<p>This is going to be ignored.</p>
While this is going to be parsed. <p>This is also be ignored.</p>
</body>
</html>;
The above demonstrate that PHP works well! Probably the problem regards the configuration of Apache/PHP. I modified my httpd.conf file and I added the following lines:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php .php3 .php4 .phtml .inc
Action application/x-httpd-php c:/php/php.exe
Do you think the above is sufficient for a correct configuration? Do you have any suggestion?
Please note I have modified my php.ini file as follows:
extension_dir = "c:\php\ext"
extension=php_mysql.dll
but the above is only required for the use of PHP with MySQL.
I think I have done all the required steps to configure Apache/PHP, but it's strange that I have no output from PHP code and no errors. Do you have any suggestion in order to determine the reason of this? Is there a way to know the possible cause by using a debugger (which one?)?
Many thanks in advance for your reply.
Kind regards.
Piergiorgio