Hi there...
I am wanting to have an easy conditional statement that will allow scripts to perform slightly differently if its on a localhost testing server?
Currently, the online server I have won't allow me to connect to the MySQL database using 'localhost' as the host. Instead it has to be hard wired in with their server name.
This causes problems on the localhost server in not being able to connect to that server from outside.
So I need a conditional statement that will recognise when its on localhost and when its not, so that the MySQL host can change appropriately without me having to re-type it out when I upload the files.
Cheers in advance,