Page 1 of 1

Re: dynamic image via PHP problem

Posted: Sat May 21, 2005 2:23 pm
by host78
Hello all... google recommends you for PHP so who am I to argue :wink:

I'm trying to get DYNAMIC IMAGES TO DISPLAY ON FORUM PAGES via PHP.

The images will display on .HTML pages, but will not work in the sigs or posts on forums. How do I change my coding to accomplish this or is it not possible?

Code: Select all

header(&quote;Content-type: image/png&quote;);
imagepng($image);
imagedestroy($image);
My site is http://www.pagerank11.com and I'm trying to get the page rank images to display in sigs.

You can try calling the dynamic image via this link:
http://pagerank11.com/pr.php?url=http:/ ... etwork.net

Thanks.

Posted: Sat May 21, 2005 3:15 pm
by John Cartwright
Moved to PHP-Code.

Posted: Sat May 21, 2005 3:18 pm
by John Cartwright
I believe most forum softwares require off-site linking to have an image type extension.

Posted: Sat May 21, 2005 4:33 pm
by Skara
Try at the end of the image adding ?ext=.jpg or whatever.
e.g.
[img ]...image.php?ext=.jpg[ /img]

Posted: Sun May 22, 2005 3:07 am
by host78
Image

^^^ Tried the .jpg ending, but no go... I'm starting to think that it's not possible?!?

Posted: Sun May 22, 2005 3:19 am
by hongco
it is possible if you met these three conditions:

1) the owner of the website allows user post image in signature
2) the link you use must use for image tag with file having image extension. (not the one you had tried: ext=.jpg...etc)
3) back in your site, you need to allow php to be executed with extension jpg ..gif.... you can do this with htaccess.

if you fail 1 of the above, you won't be able to display your dynamic image.

Posted: Sun May 22, 2005 11:45 am
by Skara
2) the link you use must use for image tag with file having image extension. (not the one you had tried: ext=.jpg...etc)
actually, that's what I do on a few sites I go to and it works like a charm. :/

Posted: Sun May 22, 2005 7:35 pm
by hongco
that must be because the forums script see it as an image:

*.jpg

it thinks your whole link ....ext= is the name of the file :) nothing more

yah makes sense...