How do I create a .jpg file on my website that has a source code where I can edit html, javscript, php etc E.g. this website doesn't have a source code, because it's only a jpg: http://arnab.ca/site/wp-content/sexy-linux.jpg This website, however, does have a source code, and it's still .jpg: www.filesonic.com/file/52944183/mr_cool.jpg
The second one is probably just a rewritten query string. (site.com/file.php?name=something.jpg becomes site.com/file/something.jpg with mod_rewrite)
He wants to use the .jpg file extension for HTML files.... I think. Come to think of it, you could also just assign the .jpg extension to PHP files with this in .htaccess: AddHandler php5-cgi .php .jpg Code (markup):
I don't think so @subdivisions What he is "asking" for is about the download script like filesonic. In that case it's done with mod_rewrite or lets say the script is appending the file you want to download to the URL. I would search for image hosting scripts or something like that.
OP, try out this suggestion and let us know if that worked. If you were looking for hosting scripts you should have said that.