Jump to content


Photo

problem with image when page is included


  • Please log in to reply
2 replies to this topic

#1 bramdejonghe

bramdejonghe
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 May 2006 - 11:44 AM

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]

#2 slipperyfish

slipperyfish
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 17 May 2006 - 11:55 AM

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)

1.jpg
to:
/images/1.jpg

#3 bramdejonghe

bramdejonghe
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 May 2006 - 12:00 PM

i see
it works now
thanks a lot




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users