Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.