First, thanks for the tutorial.
It is almost done, but...
What I would like, is to run Apache, mySql through php on a CD-Rom.
For test purposes, everything is on a zip media : php in e:\php, Apache in e:\apache, mysql in e:\database.
My test.php is the following :
<head>
</head>
<body>
page test.php
<?php
$computername = getenv("SERVER_NAME");
$DB_Username = "root";
$DB_Password = "";
$database_name = "GrandRibeau";
$table = "amphore" ;
$link = @mysql_connect($computername, $GLOBALS["DB_Username"],$GLOBALS["DB_Password"])
or die("connexion impossible");
echo "Connexion <b>MySql</b> sur la machine <b>$computername</b><br>" ;
?>
</body>
When I open this file on Netscape, I get the line page test.php. Which means that the php code is not exectuted, but that Apache is running fine.
When is run test.php in a dos windows, I get fine the connexion to the mysql server, which means that php and mysql are well installed.
It looks like the problem comes from php and Apache.
In my httpd.conf file I have :
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
ScriptAlias /php/ "e:/php/"
Action application/x-httpd-php "/php/php.exe"
I have run browsup.dat even if I don't understand what is it for.
Thanks for any suggestion
Nicholas wrote:
I'm a beginner in PHP,
but I just found out that when I change anything in php.ini, it doesn't affect anything when I test it with <? phpinfo() ?>, until i recently try to move it to c:\php instead in c:\windows, unlike the documentation said,...
any clue ?