GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Programming text into images based on its url? Is this possible? (https://gfy.com/showthread.php?t=900249)

mkx 04-17-2009 12:21 AM

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?

mkx 04-17-2009 12:27 AM

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?

ztik 04-17-2009 12:34 AM

setup a virtual host in a directory on your domain and set php to parse .jpg as .php

StariaDaniel 04-17-2009 01:03 AM

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