Forums
This topic is locked
php newb need help
Posted 29 Jul 2006 02:17:31
1
has voted
29 Jul 2006 02:17:31 heather Kendall posted:
ok, so I am not sure why this is happening but in dreamweaver, I move one of my php files to another folder and dreaweaver asks if I want to update the links and I click "ok" but when I go to the page, one of my php link"thingies" does not seem to want to work. I am trying to include a header on all my pages and the ones that are in the same folder as the header text file work fine. I move the file and update the address, but the images on my header are all broken images.does anyone knoe what I talking about.
oh! BTW the other php include links that have no images work fine.
Replies
Replied 31 Jul 2006 13:30:57
31 Jul 2006 13:30:57 Roddy Dairion replied:
1. Check that you have uploaded the image in the correct folder.
2. Check the link to this image
3. When you do an include page, then your path to this image will be the one in main page. i explain you have an image that u've inserted in a page call include.php, then you call include.php in a page call mainpage.php. Now lets assume that your include.php page is in a folder called includes and that mainpage.php is not in any folder and you image is in a folder called images. To call the image from the include.php file the path would be ../images/image.jpg but from the mainpage.php the path would be images/image.jpg.
Hope this will hel sorting things out for you.
2. Check the link to this image
3. When you do an include page, then your path to this image will be the one in main page. i explain you have an image that u've inserted in a page call include.php, then you call include.php in a page call mainpage.php. Now lets assume that your include.php page is in a folder called includes and that mainpage.php is not in any folder and you image is in a folder called images. To call the image from the include.php file the path would be ../images/image.jpg but from the mainpage.php the path would be images/image.jpg.
Hope this will hel sorting things out for you.