freelance84 Posted April 18, 2010 Share Posted April 18, 2010 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 Quote Link to comment Share on other sites More sharing options...
litebearer Posted April 18, 2010 Share Posted April 18, 2010 in most cases, yes, localhost is the actual word to use Quote Link to comment Share on other sites More sharing options...
ddubs Posted April 18, 2010 Share Posted April 18, 2010 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. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted April 18, 2010 Author Share Posted April 18, 2010 ah brilliant thanks. I'll wait till 2mo then and give them a call Quote Link to comment Share on other sites More sharing options...
freelance84 Posted April 18, 2010 Author Share Posted April 18, 2010 Also i've just found a site which explains very simply the permisions for PHP: http://www.htmlite.com/php042.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.