Results 1 to 3 of 3

Thread: Includes isn't working

  1. #1
    Join Date
    Oct 2010
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Includes isn't working

    Hello,

    I have a very little problem.
    Although i don't know how to solve it.

    I want to use include although it isn't working!
    There is a video on youtube i have been following: http://www.youtube.com/watch?v=XmoF-6vshSI

    I did exact the same as he did either though it isn't working at me.
    Well lets get to the code i got.
    I got 2 files:
    - testerpage.php
    - welcome.php

    In the file testerpage.php i got the the following code:
    PHP Code:
    <html>
    <body>
    <?php include_once("welcome.php"); ?>

    <h1> Welcome People </h1>

    <p> Hey now all star </a>
    </body>
    </html>
    In the file welcome.php i got the the following code:
    PHP Code:
    <?php
    echo "easy hoss";
    ?>
    Everybody seems to be alright.
    I have both files in the same folder.
    Either i have tried to open it in a few browsers: Google Chrome, Internet Explorer and Opera at none they are working.

    I hope somebody is able to help me out
    Thanks for advance.
    Greetz,

    Jan24

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Hi Jan24, you probably know already, but you need to upload the files to a server that has php installed. It will not work with the files on a local computer, unless you use wamp, xamp or similar software.

  3. The Following User Says Thank You to azoomer For This Useful Post:

    jan24 (10-08-2010)

  4. #3
    Join Date
    Oct 2010
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Arg i feel dumb now XD
    Its solved i thought why isn't it working?? XD
    Oh well thanks for ur time and srry for this XD

Bookmarks

Posting Permissions

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