How do i Generate images to like a url? useing gd of course

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
HomerTheDragoon
Forum Newbie
Posts: 21
Joined: Sat Jul 08, 2006 2:10 am

How do i Generate images to like a url? useing gd of course

Post by HomerTheDragoon »

Instead of http://blahblah.com/blahblah.php?user=H ... oon&&/text

I want this http://blahblah.com/blahblah/HomerTheDragoon.gif

Ive seen it done, i just cant figure it out, Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

mod_rewrite..
Dr.Goodvibes
Forum Newbie
Posts: 19
Joined: Wed May 24, 2006 10:14 am
Location: New Zealand

Post by Dr.Goodvibes »

One way I found of doing this is to include the following in the .htaccess file.

Code: Select all

<Files blahblah>
ForceType application/x-httpd-php
</Files>
Then in a directory of your choice you place the image viewing file named blahblah without any file type extension.

This means you should have something like:

Code: Select all

<img src='http://blahblah.com/blahblah/anyTextYouLike.gif' alt='Dynamic image' />
This assumes you are using Apache and php.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Better idea...
Feyd wrote:mod_rewrite..
PS This does not utilize, and has no need for, GD. This is server related and as such has been moved to the Apache, IIS, Web Servers Forum.
Post Reply