![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |