Results 1 to 4 of 4
  1. #1


    Member Since
    Mar 02, 2012
    Posts
    2
    Localhost help...
    I'm learning how to play with MySQL and PHP. I noticed when I was writing $hostname, $username, $password that my hostname using MAMP was too long in the browser. I'd like it to just be Localhost. not http://localhost:8888/MAMP/?language=English

    Does anybody know I can change it?

  2. #2

    dekan's Avatar
    Member Since
    Mar 16, 2007
    Posts
    756
    Where are you "writing" $hostname? And what is it too long for? Not sure if I understand this right.

    The first thing I can see in your URL is that you could change your port from 8888 to the standard port 80. That way it doesn't have to be typed into the URL anymore.

    Hope that helps!

  3. #3


    Member Since
    Mar 02, 2012
    Posts
    2
    MAMP defaults to that name that describes port location and my language. A friend of mine went into Terminal once an renamed it. I would just like not to type the whole address because I am lazy. So lazy, in fact, that I'm willing to spend hours finding out how to do this.

  4. #4

    dekan's Avatar
    Member Since
    Mar 16, 2007
    Posts
    756
    Hum.. I'm using XAMPP (apache friends - xampp) which just defaults to port 80 so it's just "http://localhost" when going to my local site.

    What happens if you change the port and go to localhost in your browser? I wouldn't think you always have to add the language...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. nightmare with localhost
    By mitya in forum Web Design and Hosting
    Replies: 7
    Last Post: 03-20-2011, 05:20 AM
  2. localhost?
    By ChronixPsyc in forum Web Design and Hosting
    Replies: 3
    Last Post: 01-13-2011, 04:59 AM
  3. localhost forbidden, localhost/~username allowed
    By Jarvis in forum Web Design and Hosting
    Replies: 0
    Last Post: 05-18-2010, 09:04 PM
  4. Localhost
    By Andy_M in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 11-15-2006, 04:17 PM
  5. ISS Localhost... Please Help
    By kamil2905 in forum Web Design and Hosting
    Replies: 0
    Last Post: 06-13-2006, 11:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •