Jump to content

Recommended Posts

i"m working on a website in php and i have a problem with images.
when i include a page it does not show the images i put on the php page.
but when i look up the php page itself (not included on another page) it shows the images.
if you could help me it would be nice, thanks.

here are the pages :
[a href=\"http://www.chirokarreveld.be/test/index.php?page=afdelingen\" target=\"_blank\"]page included not working..[/a]

[a href=\"http://www.chirokarreveld.be/test/pages/afdelingen/afdeling.php\" target=\"_blank\"]working page[/a]
Link to comment
https://forums.phpfreaks.com/topic/9845-problem-with-image-when-page-is-included/
Share on other sites

Well when you include a page using PHP, even if in another directory as in your case, it becomes part of the page. Meaning if in the include file, you have an image src that should work, it won't when you include it because it has moved a directory.. if tht makes any sense?? :S

..basically just change the source of the images from..

(for example)

[b]1.jpg[/b]
to:
[b]/images/1.jpg[/b]
This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.