Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Help starting off with php urgh!

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32924
    StarSant
    Member

    Hello All,

    I’m super first time new with MAMP. I saved a file in the htdocs folder, in .php format. All it says is “hello world”, with no php tags, like how the guy in the video does to begin with.

    When I go to http://localhost:8888/ (like he does in the video) it takes me to a placeholder page, rather than displaying the words “hello world”. What am I doing wrong? I have saved it in the right folder. The other files in the folder are an index.php file and a .gif image. Please need help!!! Thank you.

    #74896
    Roxon
    Member

    I know at first in XAMPP there was a placeholder folder in htdocs called “xampp”. For you, it might be a similarly named folder. Delete (or back up) everything in htdocs except your index file, and you should be set.

    #74879
    StarSant
    Member

    Hi Roxon, thanks for posting. I checked out the htdocs folder, and there is no xampp folder of any sort to be seen. There is a xcache folder, but this belongs to another directory (the bin folder), and not in the htdocs folder.

    I must be missing something in the “compiling” process, so to speak (referring back to my C++ background). Am I supposed to be going to http://localhost:8888/ to verify the output? Is there something in MySql that I have to establish first? I just want to get started urgh thank you!

    #74875
    mixxmac
    Member

    You are probably browsing to the index.php file in the htdocs folder. Try editing or removing the index.php file to test if that is the file that is showing up at http://localhost:8888/. Or, try browsing to http://localhost:8888/yourfile.php.

    #74835
    StarSant
    Member

    yup the last suggestion, adding the filename.php extension, does the trick. thank you so much for helping a neophyte such as myself :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.