I ran across a very cool little program today that I think I can reproduce for something I need on my site using PHP.
http://www.danasoft.com/customsig.php
How do they give the URL a .jpg extension and still be able to have it run a PHP script and send a JPG back to the browser?
They could have used mod_rewrite or mod_alias to rewrite certain URLs, or maybe they just have configured the server to pass requests with URLs ending in .jpg along to PHP for processing in exactly the same way as they have configured the server to pass requests with URLs ending in .php along to PHP for processing. In short, it's a server configuration thing.
Got it, but how could it tell if the url was supposed tobe a realy jpg or the script?
You can tell apache to treat 'image.jpg' as a PHP script instead of a jpg. Everytime Apache recieves a request for 'image.jpg' it'll say, oh, this is a PHP script, execute the script and return the output.
OK, I guess I could make up some atbitrary name to use, thanks for the info. Know of any mod_rewrite utilities that will make it easier to setup?
No; they'd be more complicated than doing it by hand. It would be like having a utility to make a Swiss Army knife easier to use.