Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2003
    Location
    USA
    Posts
    99
    Thanks
    24
    Thanked 0 Times in 0 Posts

    Image Creation (simple)

    Hey all,

    I know how to create an image in PHP and throw SQL data on it, but I'm always getting it as an extension as ".php" to correctly display data.

    I'm coding a topsite and I want to be able to have users with images for their site displaying their rank number. Easy enough! BUT I don't want it to be linked as "banner.php?id=388" I want it something like "banner388.gif"

    http://www.blogtopsites.com/v_9988.gif

    This site has managed to do this (change the number 9988 to something else to see a different result).

    Can someone PLEASE tell me how this is done? Thanks

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    The technique used here is called URL rewriting and is a function of the Apache web server. Google "apache rewrite" for examples and tutorials. This one here floats to the top, looks very thorough:

    http://www.addedbytes.com/apache/url...for-beginners/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •