Log in

View Full Version : chdir


sabret00the
11-26-2003, 09:00 PM
if i use chdir in the header, it will make my script run in another directory thinking it's elsewhere right?

sorry forgot the rest of the question, how do i get the images up

well to make them think they're in the right directory when being called via the vB header and footer templates, links work fine just not images?

p.s. this should be in help me finish sorry.

Xenon
11-27-2003, 12:17 AM
chdir works just for the php script, it won't affect the generated html code, and therefoe no link/image will change.

it's just an internal script thing, but you cannot avoid red x's that way :) (that's why we had so much problems with images on /chat/ or something like :)

sabret00the
11-27-2003, 05:48 AM
i put $bburl in front of everything and it all turned out ok :)

Xenon
11-27-2003, 03:57 PM
i put $bburl in front of everything and it all turned out ok :)
that's the way to prevent that, right :)