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 Link to comment https://forums.phpfreaks.com/topic/198933-localhost-name/ 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 Link to comment https://forums.phpfreaks.com/topic/198933-localhost-name/#findComment-1044192 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. Link to comment https://forums.phpfreaks.com/topic/198933-localhost-name/#findComment-1044205 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 Link to comment https://forums.phpfreaks.com/topic/198933-localhost-name/#findComment-1044215 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 Link to comment https://forums.phpfreaks.com/topic/198933-localhost-name/#findComment-1044221 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.