Problems with the Windows version of XAMPP, questions, comments, and anything related.
Is there a way I could 'include' my webhost as a localhost?
All my scripts are using (Host) fp.enter.net, when I try to pull up the page I get:
Warning: mysql_connect(): Unknown MySQL Server Host 'fp.enter.net' (11004)
I'd like to have 'fp.enter.net' = 'localhost', so I could pull up mySQL without this type of error.
I don't want to go into each script and change it for local and then change it back before I upload it to the webserver.
I got the dbTable working in PHPmyADMIN, but can't get it access thru my scripts.
Please reply with your ideas to make this work, WITHOUT re-coding all my scripts TWICE.
Last edited by MAGnUm
on 09. November 2003 19:55, edited 1 time in total.
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
- Posts: 151
- Joined: 16. October 2003 18:08
- Location: USA
- Code: Select all
IF ($HTTP_HOST == "127.0.0.1")
$db_host = "localhost";
$db_host = "fp.enter.net";
I also put db_user and db_pw in there, then COPY / PASTE thru-out the pages.
It looks like it will keep me happy for a long time.
$db_host = $HTTP_HOST;
- Posts: 72
- Joined: 18. March 2003 22:05
- Location: Argentina
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 82 guests