grucker Posted January 30, 2010 Report Share Posted January 30, 2010 <?php include("http://www.sites4eyes.co.uk/Paypalwebstore/htdocs/mulberry/includes/header.php"); ?> Luxurious Bath & Shower Products <?php if (isset($_REQUEST['clear'])) { $shopping_cart->EmptyCart(); } set_shopping_cart($shopping_cart); ?> <?= render_products_from_XML();?> Polish, Moisturiser, Creams & Balms <?= render_products_from_XML_SHORT();?> <?php include("http://www.sites4eyes.co.uk/Paypalwebstore/htdocs/mulberry/includes/footer.php"); ?> Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 30, 2010 Report Share Posted January 30, 2010 I've run into this issue before too -- it depends on how your server is set up. KillerSites has the same settings. To fix it, you need to use a relative path when you use includes, rather than an absolute path. Or, you can do something like this: Quote Link to comment Share on other sites More sharing options...
grucker Posted January 30, 2010 Author Report Share Posted January 30, 2010 relative path Thanks , I did the relative path and one link led to another until the page loaded correctly. I did not quite understand the alternative. Would this have saved time and could you put the code in context for me. Thank you once again, Regards David Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 30, 2010 Report Share Posted January 30, 2010 Using "$_SERVER['DOCUMENT_ROOT']" might be easier if you have a complicated folder structure or need to reference a specific file without messing with a relative URL. If you got a relative URL working, then you don't really need to worry about using "$_SERVER['DOCUMENT_ROOT']". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.