Dreamhosters testing and scripts


#1

I set up a dreamhosters sub domain for testing and installed a few PHP/MySQL scripts. Some of these scripts let me pull and embed items form them. I noticed that they all read http://dreamhosters.MYDOMAIN.com. Example, one of my scripts pulls a XML path so I can embed in a Flash document. It currently reads the path as:

http://dreamhosters.MYDOMAIN.com/PATHTOXML

Will this change once i switch the DNS over? Or will I have to reinstall all my scripts?

Thanks!


#2

[quote]I set up a dreamhosters sub domain for testing and installed a few PHP/MySQL scripts. Some of these scripts let me pull and embed items form them. I noticed that they all read http://dreamhosters.MYDOMAIN.com. Example, one of my scripts pulls a XML path so I can embed in a Flash document. It currently reads the path as:

http://dreamhosters.MYDOMAIN.com/PATHTOXML

Will this change once i switch the DNS over? Or will I have to reinstall all my scripts?[/quote]
That depends on the scripts.

The web server keeps track of the hostname used in the request. For example, when browsing to http://example.com/dir/script.php, the browser says it wants ‘Host: example.com’, and the web server sets the HTTP_HOST variable to ‘example.com’, and then executes script.php - but from there whether or not script.php uses HTTP_HOST is up to the script developers. You might want to check with any support channels for those scripts.

Customer since 2000 :cool: openvein.org


#3

Well-written scripts use relative paths so you should be okay. If something breaks when you switch over, check any config files that might contain hard-coded paths that were written during the installation process (if any).

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#4

Thanks for the replies.