Re: [PHP] Re: Search like php.net's URL thingy

2008-06-21 Thread Ryan S
P.S will be deleting the urls that you created, hope you dont mind, coz just in case someone later keeps using the url you posted via the archives... Hang on, I want to post it on Digg first Hehe, no fear there... all my posts on dig never get me more than a few clicks

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-20 Thread Ryan S
[EMAIL PROTECTED] Cc: Stut [EMAIL PROTECTED]; Iv Ray [EMAIL PROTECTED]; Jon Drukman [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, June 19, 2008 4:40:59 PM Subject: Re: [PHP] Re: Search like php.net's URL thingy Ry, Make sure you also disable the ability to add in your own

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-20 Thread tedd
At 11:35 AM -0700 6/20/08, Ryan S wrote: Thats why I love this place... theres so many ways to skin a cat Yeah, but the cat ain't going to like any of them. (Foxworthy) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-20 Thread Ryan S
clip Thats why I love this place... theres so many ways to skin a cat Yeah, but the cat ain't going to like any of them. (Foxworthy) /clip Hehe good one! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 2:35 PM, Ryan S [EMAIL PROTECTED] wrote: Ah, the never ending loop... thanks for pointing that out. Thats why I love this place... theres so many ways to skin a cat and here they tell you the ways you have forgotten or overlooked. As long as you remember to give

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-20 Thread Robert Cummings
On Fri, 2008-06-20 at 14:42 -0400, tedd wrote: At 11:35 AM -0700 6/20/08, Ryan S wrote: Thats why I love this place... theres so many ways to skin a cat Yeah, but the cat ain't going to like any of them. (Foxworthy) I'd have to argue that the above claim is only true if the cat is still

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-19 Thread Ryan S
clip I really dont see what anybody could gain by spamming this form but anyway it does check to make sure the person submits something that starts with http via strstr (after bringing it down to lowercase, thats why i didnt use stristr, and because it checks just http, https too is

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-19 Thread Daniel Brown
Ry, Make sure you also disable the ability to add in your own site, and even similar competitors such as tinyurl.com. Otherwise, you'll get something like this: http://ezee.se/30 -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-18 Thread Iv Ray
Ryan S wrote: Thanks for replying m8, but if you check the rest of the thread you will see this has alraedy been solved and the result is http://ezee.se/ezeeurl.php?do=1 Cheers! Ryan How do you protect this thing from being spammed? I do not know why somebody would spam it, but I have had

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-18 Thread Philip Olson
Why is an ErrorDocument insufficient or not the elegant way? It accomplishes the goal in a clean way, no? It's *WRONG*. ErrorDocument still preserves the 404 error code, it just gives it a prettier face. If the page really is there, returning a 404 for it is not correct. Search engines

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-18 Thread Nate Tallman
On Tue, Jun 17, 2008 at 3:22 PM, Jon Drukman [EMAIL PROTECTED] wrote: Nate Tallman wrote: Why is an ErrorDocument insufficient or not the elegant way? It accomplishes the goal in a clean way, no? It's *WRONG*. ErrorDocument still preserves the 404 error code, it just gives it a prettier

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-18 Thread Jon Drukman
On Wed, Jun 18, 2008 at 9:19 AM, Nate Tallman [EMAIL PROTECTED] wrote: Not to beat a dead horse, but why would you *not* want to preserve the 404? If it's a bad url anyways, you probably *want* to return a 404 (albeit prettier) and you probably *don't* want search engines indexing it. the

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-18 Thread Ryan S
clip Thanks for replying m8, but if you check the rest of the thread you will see this has alraedy been solved and the result is http://ezee.se/ezeeurl.php?do=1 Cheers! Ryan How do you protect this thing from being spammed? I do not know why somebody would spam it, but I have had all

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-18 Thread Stut
On 18 Jun 2008, at 23:40, Ryan S wrote: clip Thanks for replying m8, but if you check the rest of the thread you will see this has alraedy been solved and the result is http://ezee.se/ezeeurl.php?do=1 Cheers! Ryan How do you protect this thing from being spammed? I do not know why

[PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Jon Drukman
Ryan S wrote: Hey! Thanks for replying. Digging a bit more i found IfModule mod_rewrite.c RewriteEngine On RewriteRule ^([a-z][0-9][A-Z][aA0-zZ0])$ jj.php?show=$1 /IfModule But it does not work :( do you see any fault with the above? this is an apache issue, not a php issue, so you'll

[PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Jon Drukman
Nate Tallman wrote: Why is an ErrorDocument insufficient or not the elegant way? It accomplishes the goal in a clean way, no? It's *WRONG*. ErrorDocument still preserves the 404 error code, it just gives it a prettier face. If the page really is there, returning a 404 for it is not

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Richard Heyes
It's *WRONG*. So are vegetables. Long live the waffle! BTW, anyone seen this: http://code.google.com/apis/chart/ ...? More to the point, is anyone using it commercially? -- Richard Heyes Employ me: http://www.phpguru.org/cv ++ | Access SSH

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Ryan S
Thanks for replying m8, but if you check the rest of the thread you will see this has alraedy been solved and the result is http://ezee.se/ezeeurl.php?do=1 Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Shawn McKenzie
Ryan S wrote: Hey, one of the things that make the php.net site so cool is how easy it is to find info for a function or a list of topics.. eg: http://php.net/arrays http://php.net/count I'm sure nearly all of you reading this have done it more times than you would care to count, i'm trying

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Nate Tallman
Why not just set: ErrorDocument 404 /path/to/some/script.php Then check $SERVER['REDIRECT_URL'] for the failed request. On Thu, Jun 5, 2008 at 2:41 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Ryan S wrote: Hey, one of the things that make the php.net site so cool is how easy it is to find

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Nate Tallman
ErrorDocument 404 /path/to/some/script.php * $_SERVER['REDIRECT_URL'] (somehow misplaced underscore) On Thu, Jun 5, 2008 at 2:50 PM, Nate Tallman [EMAIL PROTECTED] wrote: Why not just set: ErrorDocument 404 /path/to/some/script.php Then check $SERVER['REDIRECT_URL'] for the failed request.

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Shawn McKenzie
As far as I remember, errordocument still send the code, in this case 404 to the client. In the case of IE, this will display IEs built-in error doc if the server supplied one is 512 Bytes. Maybe other implications for spiders also. I might be wrong, but this is from some old memory.

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Nate Tallman
Not true, Apache does return a 404, but IE will use the custom 404 page if it is available. Nate On Thu, Jun 5, 2008 at 2:57 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: As far as I remember, errordocument still send the code, in this case 404 to the client. In the case of IE, this will

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Shawn McKenzie
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807 Also, why would you want Google let's say, to receive a 404 Not Found header for http://php.net/arrays??? -Shawn Nate Tallman wrote: Not true, Apache does return a 404, but IE will use the custom 404 page if it is available.

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Nate Tallman
Correction for my statement: As long as the content length is greater than 512 bytes, IE will display the content from the 404. Less than that and it will display it's own pretty message. http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Ryan S
clip As far as I remember, errordocument still send the code, in this case 404 to the client. In the case of IE, this will display IEs built-in error doc if the server supplied one is 512 Bytes. Maybe other implications for spiders also. I might be wrong, but this is from some old memory.

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-05 Thread Nate Tallman
Why is an ErrorDocument insufficient or not the elegant way? It accomplishes the goal in a clean way, no? Nate On Thu, Jun 5, 2008 at 3:25 PM, Yeti [EMAIL PROTECTED] wrote: still telling Ryan to produce errors is insufficient or at least not the elegant way On 6/5/08, Nate Tallman [EMAIL

Re: [PHP] Re: Search like php.net's URL thingy [0.T]

2008-06-05 Thread Ryan S
Hey again, First of all please note that i added a [0.T] (= off topic ) to the subject so if you dont want to continue with something OT, now's the time... Ok... for anyone thats curious as to why i wanted this.. just completed my version of tinyURL... except, its even more tiny!! Have

Re: [PHP] Re: Search like php.net's URL thingy [0.T]

2008-06-05 Thread Daniel Brown
On Thu, Jun 5, 2008 at 4:52 PM, Ryan S [EMAIL PROTECTED] wrote: Hey again, First of all please note that i added a [0.T] (= off topic ) to the subject so if you dont want to continue with something OT, now's the time... Ok... for anyone thats curious as to why i wanted this.. just

Re: [PHP] Re: Search like php.net's URL thingy [0.T]

2008-06-05 Thread Philip Olson
Hello, php.net uses a 404 error handler for this, and most mirrors store url data in an sqlite database. A simple $_SERVER dump in your 404 page will show you which variables are available. Regards, Philip