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...
<--click misato
Klinky's Random Avatar
- klinky
- Joined: Mon Jul 23, 2001 12:23 am
- Location: Cookie College...
- Contact:
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 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
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 :
So it basically redirects you to one of the random images I have the locations listed for in a text file.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.
~~~
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
- stormybaka
- Joined: Sun Sep 15, 2002 3:26 am
- Location: Eye of the storm...
- Chef
- Joined: Mon May 06, 2002 4:41 pm
- Location: Ever seen "Pecker"?
- Contact:
- OmniStrata
- Joined: Wed Aug 01, 2001 4:03 pm
- Status: Wealthy
- Location: Chicago
- Contact:
oh wait...
WHAT IF CHMOD ISN'T SUPPORTED?!
[tried the png trick...]
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
"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
- stormybaka
- Joined: Sun Sep 15, 2002 3:26 am
- Location: Eye of the storm...