Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHP Image Functions

Name: Anonymous 2005-04-13 13:51

I recently tried to make images do the same like this site

http://danasoft.com

But, I donnow why he could use .jpg as the file extension.
I'm only stuck with .php
Is there like a way to mask the file type?

Name: Anonymous 2005-04-13 15:49

.htaccess

Name: Anonymous 2005-04-14 3:05

OTL....
I can't believe it could be just that easy......

Thx a lot T_T

Name: Anonymous 2005-04-14 3:45

hmm....
There seems to be a little problem
because i have 2 .php files i wish to mask
but when i do this in the .htaccess

AddHandler logo .png
AddHandler sign .png

Action logo /new_logo/logo.php
Action sign /sign/sign.php

logo.php gets overwrited into sign.php
Is there a way to fix this? Thanks

Name: Anonymous 2005-04-20 16:33

Actually, you could make your php-file send out the http headers content-type and content-disposition. I think in PHP you can do it like this:

header('Content-Disposition: inline; filename=image.jpg');
header('Content-Type: image/jpeg');

Name: Anonymous 2005-04-24 22:12

>>5
Well, i tried that but it didn't work as i wanted it

I actually want
http://theURL.com/<file name>.php
to be shown as
http://theURL.com/<file name>.png

while the content of <file name>.png will be the same as .php

Name: Anonymous 2005-04-28 13:38

mod_rewrite. (Google it)

RewriteRule png$ yourphpfile.php?file=%{REQUEST_URI} [NC]

Name: Anonymous 2008-01-15 13:45

>>7
Oh, really?

Name: Anonymous 2008-01-15 18:09

>>1
Are you using mod_php, or PHP as CGI?

Name: Anonymous 2009-03-18 3:26

Don't call me gay, but I need some mary jay!

Marijuana MUST be legalized.

Name: Anonymous 2009-03-18 3:26

I feel the need, the need for weed!

Marijuana MUST be legalized.

Name: Anonymous 2010-12-23 4:54

Name: Anonymous 2011-03-02 21:32

I AM THE MOST FUCKING NGGER MATURE

Name: Anonymous 2013-07-29 9:14

check em

Don't change these.
Name: Email:
Entire Thread Thread List