Klinky's Random Avatar

This forum is for actual topics of discussion that do not fit the above categories.
Locked
User avatar
stormybaka
Joined: Sun Sep 15, 2002 3:26 am
Location: Eye of the storm...
Org Profile

Post by stormybaka » Tue Nov 12, 2002 11:41 am

hmm! well I gave up on the avatar there for a while, but know it is just something I know I couldn't do...And I can't stand leaving it at that...
Hey klinky could you look at the source on this page and see if you can work it out...It seems as soon as I change it to .png it doesn't work...
Image<--click misato
Image

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Tue Nov 12, 2002 2:15 pm

Are you speaking of the signature generator?


The reason it doesn't work is because normall CGI scripts are processed via the server first.

What my random image generator does is, when your computer tries to connect to get the image, the generator returns a "Location:" response, which is defined in the HTTP/1.1 spec to :
The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource.
So it basically redirects you to one of the random images I have the locations listed for in a text file.

~~~

The reason this all works is because I've told my server to EXECUTE .png files. I have no problem with it doing this since I never host .png files on my home server, if I did, then I'd be up shit creek.

So, the reason it most likely does not work for you when you change the extension to .png, is because your server does not allow EXECUTION of .png and only allows execution of .cgi or .pl files.

That's why I suggested you use CHMOD if it's linux server, since I belive linux does not rely on extensions to determine if a file is executable, it relies on flags to do so. Those flags can be changed via CHMOD. You'd would want to rename your file to a .png, then do a chmod 755(I believe) on it.


~klinky

User avatar
stormybaka
Joined: Sun Sep 15, 2002 3:26 am
Location: Eye of the storm...
Org Profile

Post by stormybaka » Tue Nov 12, 2002 3:55 pm

Well I am waiting to hear from my host, but chmod doesn't work...
and I didn't how to do that with cuteftp so I got wsftp...geez my name suggests idiot, but I'm not really...I seriously think those damn intar web gods are plotting against me...
Image

User avatar
Sub0
Joined: Fri Nov 16, 2001 4:32 pm
Location: a small cabin on the edge of sanity
Org Profile

Post by Sub0 » Tue Nov 12, 2002 5:01 pm

Nappy wrote:doesn't look like my site supports it >_<
I love your av nappy! but you should end your replys with -desu... that would rock ;-p nah ;-p doent matter actully.

User avatar
Chef
Joined: Mon May 06, 2002 4:41 pm
Location: Ever seen "Pecker"?
Contact:
Org Profile

Post by Chef » Thu Dec 05, 2002 11:20 pm

i just wanna say that the bread avatar rocks the suburbs

User avatar
OmniStrata
Joined: Wed Aug 01, 2001 4:03 pm
Status: Wealthy
Location: Chicago
Contact:
Org Profile

Post by OmniStrata » Sat Dec 07, 2002 1:01 pm

oh wait...
WHAT IF CHMOD ISN'T SUPPORTED?!

[tried the png trick...]
"Strength lies in action. Let the weak react to me..." - Kamahl, Pit Fighter from Magic: the Gathering
"That is a mistake many of my enemies make. They think before they act. I act before I think!" - Vortigern from Merlin ('98)
"I AM REBORN!" - Dark Schneider Bastard!! OAV

User avatar
stormybaka
Joined: Sun Sep 15, 2002 3:26 am
Location: Eye of the storm...
Org Profile

Post by stormybaka » Wed Dec 18, 2002 3:05 pm

CHMOD wasn't working for me because they idiots hadn't changed me to a linux server at the time...
Image

Locked

Return to “General Off Topic”