Hi,
A couple of weeks ago I installed XAMPP according to a DreamWeaver book I had, and it was all really simple. Download the thing and run it. However, now that I'm understanding PHP and Apache more I want to move past Dreamweaver and see how it actually works.
So I downloaded Crimson Editor and made a simple Database program:
<html>
<head>
<title>Test Page</title>
</head>
<body>
<?php
$dbhost = 'localhost';
$dbuser = 'Denis';
$dbpass = 'denis';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'petstore';
mysql_select_db($dbname);
?>
</body>
</html>
However, whenever I try and preview it in my browser (FireFox3) from Crimson Editor (by clicking Alt- it doesn't work, i get the following non-sense directory path:
file:///D:/xampp/htdocs/LEARNI~1/LEARNI~1.PHP
I thought this might have been an error on my part with the database, so I went through the declaring a database steps in Dreamweaver and it worked fine, however in Crimson Editor like it said it doesn't work. I went looking through some websites and they all have massively varying ways of installing XAMPP, could you guys help me to get Crimson Editor to work and explain how it works?
If you think this issue is something other than my XAMPP/myPhpAdmin installation (i hope it is!) then can you also help me out
Thanks
EDIT: Forgot to say what happens when I launch page through Dreamweaver. It works fine with the correct directory path: