Jump to content

Dynamic images


regdude

Recommended Posts

Ok, i will try to explain bit more.

I use an dynamic image, but it goes like sig.php?id=1!

When i use this link(full link ofcourse) in a forum i get only a link of the image, thats because they have disabled dynamic images.

I want to make an image that will be dynamic but could go in forum, i have seen them somethinh like this: sig_1.jpg

I guess there is a script in this dynamic image and a .htaccess script wich makes these 'sig_x.jpg'

Link to comment
https://forums.phpfreaks.com/topic/101243-dynamic-images/#findComment-517912
Share on other sites

ok, so stick your php file in its own folder

then create a text file name .htaccess in that same directory and add something like:

 

RewriteEngine on
RewriteRule ^(.*)\.jpg$ $1.php [nc]

 

then when you tell the forum that your image is at yourdomain.com/sig/sig.jpg  they'll think their loading a JPG but your server will know that its really displaying a PHP file

Link to comment
https://forums.phpfreaks.com/topic/101243-dynamic-images/#findComment-517928
Share on other sites

I forgot to say that im using Linux and Lighttpd.

 

Anyway...

this is my sig file: /sig/tag.php

i use this for someones data: /sig/tag.php?id=1

i use this in /sig/ folder ar .htaccess:

RewriteEngine on
RewriteRule ^(.*)/.jpg$ $tag.php [nc]

 

also i used an example from popular these kind of things "psychotag" and i made this in root:

RewriteEngine on
RewriteRule ^samp/tag_([0-9].*).png /samp/tag.php?id=$1 [L,PT]

wich also doesn't work.

Link to comment
https://forums.phpfreaks.com/topic/101243-dynamic-images/#findComment-517965
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.