Jump to content

localhost name


freelance84

Recommended Posts

Hi again,

I've learnt PHP and MySQL from a pretty good book which uses EasyPHP 3.0.

 

Throughout the book it tells you to use the host name as 'localhost' when connecting to a database. Is this just specific for EasyPHP or is this also the name when uploading on the real internet?

 

Also does anybody know any good sites regarding what permissions to set php files to? There seems to be a huge array of different sites non of which i have found seem to be all that clear.

 

Once again any help here would be very much appreciated.

 

John

Link to comment
Share on other sites

It may also depend on your hosting provider. If the database is on the same host as your webserver then you would use "localhost". If they have a remote server for DB connectivity, they will generally provide a hostname for you to use when connecting.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.