Jump to content

A php include problem


Recommended Posts

Another website wants to include a page from my website using "php include", but whatever we try, we cannot get the included page to format correctly. Is there any way to protect the format of the included page from the formatting instructions in the code of the host page? If we put the included page right at the bottom of the host page, surely there has to be some way of stopping it from being reformatted by the host page?

Link to comment
Share on other sites

  • 3 weeks later...

You could try using an iframe of some sort (although most web designers would rather shoot themselves than use iframes). Otherwise, I can't think of a way to avoid the problem you're talking about. Because with include() it's practically the equivalent of copy + pasting the code into the document (at least that's my understanding of it).

Link to comment
Share on other sites

  • 1 month later...

is your host blocking th use of includes?

if so set up a smarty interpreter script. would just re-formatt the page just after the host formats it.

just a pointer, iframes would work too but.....personally i think there a web page nightmare.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy