need help understanding moving up using relative path...

Posted by Joel on Stack Overflow See other posts from Stack Overflow or by Joel
Published on 2010-05-18T03:51:19Z Indexed on 2010/05/18 4:00 UTC
Read the original article Hit count: 246

Filed under:
|
|

I'm not sure why this isn't working, so I must not be understanding things correctly.

I'm putting a working live site onto my localhost for dev work.

so my site can be seen at the url:

example.com

or at:

localhost/example.com

OK. I Have a page at

example.com/video/pageone.php

On that page, I'm linking to a header by navigating to:

<?php include '/home/myserver/public_html/includes/website/website-header.php'; ?>

For some reason, This will not work (on the live site):

<?php include 'http://www.example.com/includes/website/website-header.php'; ?>

Can anyone tell me why 1) The above http address will not work, and 2) how can I make this work in localhost?

Thanks!

© Stack Overflow or respective owner

Related posts about localhost

Related posts about relative-path