• # August 26, 2012 at 6:47 pm

    Add a root password and see if that changes anything.

    What error did it display?

    # August 26, 2012 at 8:11 pm

    This reply has been reported for inappropriate content.

    did you get a 500 error, or a PHP error message?

    # August 26, 2012 at 9:33 pm

    I added a root password but it didn’t change anything, here is the error message I’m getting:

    # August 26, 2012 at 9:40 pm

    @hrechkaness What happens when you go here? http://localhost:8888/phpinfo.php

    Are you also putting the files you’re working on inside htdocs?

    # August 26, 2012 at 9:43 pm

    I get this text

    Not Found

    The requested URL /phpinfo.php was not found on this server.

    # August 26, 2012 at 9:43 pm

    Is that file located in htdocs?

    # August 26, 2012 at 9:46 pm

    The only thing I have located in my htdocs so far is index.php, stylesheet.css, header.php

    # August 26, 2012 at 9:46 pm

    Move phpinfo.php inside htdocs and see if that solves it

    # August 26, 2012 at 9:50 pm

    Do I have to create a phpinfo.php file or is there an already existing one that came with MAMP?

    # August 26, 2012 at 10:01 pm

    @hrechkaness Follow this tutorial and reload Mamp. Then take a screenshot of the error.

    # August 26, 2012 at 10:08 pm

    Will do, I’ll post back once I’ve finished the tutorial

    # August 27, 2012 at 9:49 pm

    Alright, I finished the tutorial but it turns out, that wasn’t the answer to my problem. It was directly related to my header code. If I had listened to your advice in the beginning and changed it to the doc type to html5, I’m sure I wouldn’t be having this problem. Here is the code I had to delete to make my page run smoothly.

    < ?xml version="1.0" encoding="UTF-8"?>

    Thanks for all your help. I’ll post back if I’m having any other issues but it looks like it should be smooth sailing from here. Cheers!

    # August 28, 2012 at 12:21 am

    The tutorial would have allowed us to see where the problem was, not immediately solve it. Glad it’s now working.

    # April 13, 2013 at 5:23 am

    How can I include header & footer if my content page is inside sub folder. Could you plz tell me what script i’ve to use if my pages inside folder / sub folder. so far i know and see here:
    < ?php include 'header.php'; ?>
    if my pages without folder.

    # April 13, 2013 at 5:55 am

    You can go inside subfolders with `include ‘subfolder/header.php’` or inside parent folder with `include ‘../header.php’`

Viewing 15 posts - 16 through 30 (of 36 total)

You must be logged in to reply to this topic.