![]() |
Programming text into images based on its url? Is this possible?
I want to display custom txt in an image based on the url. Example. www.mywebsite.com/image.php?txt1=hello&txt2=john
I need this image to be able to be hotlinked from an external site. Any one know any scripts? |
I need to hotlink it from ebay, not sure if they will let me hotlink a .php image, if not is it possible to make it a .jpg extension?
|
setup a virtual host in a directory on your domain and set php to parse .jpg as .php
|
You can set up a .htaccess file which will rewrite image_hello_john.jpg to image.php?txt1=hello&txt2=john :
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^image_([^/]+)_([^/]+).jpg?$ /image.php?txt1=$1&txt2=$2 [QSA,L] </IfModule> Not tested, but should be working. To write a text overlaying an image you can use the gd-libary which is usually part of the php installation, see the manual at http://www.php.net/gd |
All times are GMT -7. The time now is 01:35 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123