Jump to content

alingham

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Everything posted by alingham

  1. 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,
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.