Web-Host as LocalHost?
Posted: 06. November 2003 19:29
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.
Thanx
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.
Thanx