need help understanding moving up using relative path...
- by Joel
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!