Problems with the Windows version of XAMPP, questions, comments, and anything related.


Postby Drago85 » 25. February 2010 15:37


I have just loaded xxamp onto my system, now I have inserted some php code into dreamweaver to test but when i type the URL in http://localhost/C:/User.... etc for the saved php script to connect to my phpmyAdmin database the broswer states its forbbin, whats the best way to start out with the script, remembering i am just learning the basics.

Thnaks Martin
Posts: 2
Joined: 25. February 2010 15:12


Postby Stepke-DSL » 25. February 2010 15:50

Drago85 wrote:URL in http://localhost/C:/User.... etc

Thats not the right URL.
You have to save your files in the htdocs-Folder of your xampp (or in a subfolder).
Then you can test your script by typing http://localhost/filename.php in your browser.
If you use subfolders then you have to type http://localhost/subfolder/file.php

Greetings Stepke
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux


Postby Drago85 » 04. March 2010 13:00

I have tried to insert the new URl but it simply states the object can't be displayed, does the username and password effect the code?

mysql_connect("$host", "$username", "$password")or die("cannot connect to server");
mysql_select_db("$db_MBDesign")or die("cannot select db");


Posts: 2
Joined: 25. February 2010 15:12


Postby Altrea » 04. March 2010 13:25

Code: Select all
mysql_connect("$host", "$username", "$password") //...
mysql_select_db("$db_MBDesign") //...

Try without the quotation-marks
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 8243
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests