Haha, I *haxored* t3h PHP and site :P
Moderator: General Forums Moderators
- White Rabbit
- Tycoon
- Posts: 1734
- Joined: 22 Jun 2005 19:15
It explodes and kills everyone on this earth.White Rabbit wrote:So what happens if the number gets too large for the image size?
...
I think it will just show a bit of the number.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
- orudge
- Administrator
- Posts: 25138
- Joined: 26 Jan 2001 20:18
- Skype: orudge
- Location: Banchory, UK
- Contact:
mod_rewrite, anyone? For instance, I have, on owenrudge.net:DaaNtje wrote:And when I open those, then they will be parsed by the php parser, resulting in A LOT of errors So I hate to use an extension that I don't use on my servers AND an extension that is a valid image file
RewriteRule ^various/playing_b.png various/currentplay.php
RewriteRule ^various/playing_g.png various/currentplay.php?col=g
Much nicer than telling PHP to parse image files!
Besides, you could call the file .smellypoo if you wanted. As long as the MIME type is correct, it should* work fine.
* Certain browsers, such as MSIE, don't always listen to the MIME type, instead prefering to go by the extension, which is wrong.
MS always wants to do things a little bit different, that's why linux apps don't work on windows and vica versa. And this is also why whe have 100 "standards" for every simple thing.orudge wrote: * Certain browsers, such as MSIE, don't always listen to the MIME type, instead prefering to go by the extension, which is wrong.
EDIT: this isn't meant as some kind of troll.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
- Daan Timmer
- Tycoon
- Posts: 2406
- Joined: 12 Apr 2004 11:21
- Location: +31299......
mod_rewrite? eehh??orudge wrote:mod_rewrite, anyone? For instance, I have, on owenrudge.net:DaaNtje wrote:And when I open those, then they will be parsed by the php parser, resulting in A LOT of errors So I hate to use an extension that I don't use on my servers AND an extension that is a valid image file
RewriteRule ^various/playing_b.png various/currentplay.php
RewriteRule ^various/playing_g.png various/currentplay.php?col=g
Much nicer than telling PHP to parse image files!
Besides, you could call the file .smellypoo if you wanted. As long as the MIME type is correct, it should* work fine.
* Certain browsers, such as MSIE, don't always listen to the MIME type, instead prefering to go by the extension, which is wrong.
As for the browser thingy, I used FF to *link* it...
- Daan Timmer
- Tycoon
- Posts: 2406
- Joined: 12 Apr 2004 11:21
- Location: +31299......
Besides, about the resets, I did not reset anything
However, what does is possible is that it *opens* the file
stores the information, then closes the file + saving with new amount and then output it, however, within the time of opening, saving and closing the file it is possible if another session opens the file it does will increase but ti won't show it to the first person, resulting in a not-up-to-date image
Atleast I think that was what happend. As I was with my girl all night, and did not touch my computer for a while so I did not reset anything
However, what does is possible is that it *opens* the file
stores the information, then closes the file + saving with new amount and then output it, however, within the time of opening, saving and closing the file it is possible if another session opens the file it does will increase but ti won't show it to the first person, resulting in a not-up-to-date image
Atleast I think that was what happend. As I was with my girl all night, and did not touch my computer for a while so I did not reset anything
-
- Tycoon
- Posts: 3849
- Joined: 20 Jan 2003 14:51
- Location: Broadstone, Dorset
- Contact:
20k!
while true; do curl http://daantimmer.mine.nu/pictures/avatar/avatar.jpeg > /dev/null 2>/dev/null; done
while true; do curl http://daantimmer.mine.nu/pictures/avatar/avatar.jpeg > /dev/null 2>/dev/null; done
I really have no idea what's special about this topic or avatar
But okay.
But okay.
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
- orudge
- Administrator
- Posts: 25138
- Joined: 26 Jan 2001 20:18
- Skype: orudge
- Location: Banchory, UK
- Contact:
mod_rewrite.DaaNtje wrote:mod_rewrite? eehh??
Just stick the code I gave above into a .htaccess file (tweak it appropriately, of course). Oh, and stick RewriteEngine On above it, too. This assumes that your Apache has mod_rewrite support compiled in, which most do these days.
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
double time!Prof. Frink wrote:20k!
while true; do curl http://daantimmer.mine.nu/pictures/avatar/avatar.jpeg > /dev/null 2>/dev/null; done
yes, no point in this thread but it's kind of funny.
- Daan Timmer
- Tycoon
- Posts: 2406
- Joined: 12 Apr 2004 11:21
- Location: +31299......
Ahh thanks! I bene looking for that for an awful lot of time!!!orudge wrote:mod_rewrite.DaaNtje wrote:mod_rewrite? eehh??
Just stick the code I gave above into a .htaccess file (tweak it appropriately, of course). Oh, and stick RewriteEngine On above it, too. This assumes that your Apache has mod_rewrite support compiled in, which most do these days.
I do believe the right term would be
I never got the hang of mod_rewrite though. When I look at the .htaccess wordpress generated, it confuses me beyond belief
I never got the hang of mod_rewrite though. When I look at the .htaccess wordpress generated, it confuses me beyond belief
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
- Daan Timmer
- Tycoon
- Posts: 2406
- Joined: 12 Apr 2004 11:21
- Location: +31299......
Haha, well I saw someone on my school toying with that mod_rewrite like 2 months back. However I forgot what it was named back then.GoneWacko wrote:I do believe the right term would be
I never got the hang of mod_rewrite though. When I look at the .htaccess wordpress generated, it confuses me beyond belief
Never saw that dude ever after (forgot who it was ). So I was not able to *find* him...
It was quite handy as to what he made tough
when you entered an url like http://www.*.com/home/foto it would open the page as http://www.*.com/index.php?dir=home&mod=foto
as an example
Yes, the same counts for wikipedia (as well as a few billion other sites out there): http://en.wikipedia.org/wiki/Transport_Tycoon actually rewrites to http://en.wikipedia.org/w/index.php?tit ... ort_Tycoon
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
- Daan Timmer
- Tycoon
- Posts: 2406
- Joined: 12 Apr 2004 11:21
- Location: +31299......
thanks owen.
I just fell in love with mod_rewrite
http://daantimmer.mine.nu/pictures/avatar/avatar.png
same: http://ordo-malleus.selfip.com as http://daantimmer.mine.nu/phpbb2/
I just fell in love with mod_rewrite
http://daantimmer.mine.nu/pictures/avatar/avatar.png
same: http://ordo-malleus.selfip.com as http://daantimmer.mine.nu/phpbb2/
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
-
- Tycoon
- Posts: 3849
- Joined: 20 Jan 2003 14:51
- Location: Broadstone, Dorset
- Contact:
Who is online
Users browsing this forum: No registered users and 6 guests