bramdejonghe Posted May 17, 2006 Share Posted May 17, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/9845-problem-with-image-when-page-is-included/ Share on other sites More sharing options...
slipperyfish Posted May 17, 2006 Share Posted May 17, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/9845-problem-with-image-when-page-is-included/#findComment-36568 Share on other sites More sharing options...
bramdejonghe Posted May 17, 2006 Author Share Posted May 17, 2006 i seeit works nowthanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/9845-problem-with-image-when-page-is-included/#findComment-36569 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.