Jump to content

Recommended Posts

Posted

<?php include("http://www.sites4eyes.co.uk/Paypalwebstore/htdocs/mulberry/includes/header.php"); ?>

 

 

 


poppy red logoLuxurious Bath & Shower Productspoppy red logo


<?php

if (isset($_REQUEST['clear']))

{

$shopping_cart->EmptyCart();

 

}

set_shopping_cart($shopping_cart);

?>

 

 

<?= render_products_from_XML();?>

 




poppy red logo Polish, Moisturiser,

Creams & Balmspoppy red logo


 

<?= render_products_from_XML_SHORT();?>

 

 

 


<?php include("http://www.sites4eyes.co.uk/Paypalwebstore/htdocs/mulberry/includes/footer.php"); ?>

 

Posted

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:

 


Posted
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

Posted

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']".

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...