Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-17-2009, 12:21 AM   #1
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2009, 12:27 AM   #2
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
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?
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2009, 12:34 AM   #3
ztik
Confirmed User
 
ztik's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Nomad
Posts: 5,196
setup a virtual host in a directory on your domain and set php to parse .jpg as .php
__________________
.
ztik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2009, 01:03 AM   #4
StariaDaniel
Confirmed User
 
Join Date: Oct 2007
Location: Netherlands
Posts: 415
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
StariaDaniel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.