![]() |
![]() |
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Scripts and Coding PHP, MySQL, scripts |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #11 (permalink) |
![]() |
Negative Grant. It fails. http://www.24i.co.uk/je.php Look how many it missed, and how many funky names it allowed thru.
__________________ Browse: |
| |
| | #12 (permalink) | |||
![]() | Quote:
Quote:
To return the domain name, no matter the subdomain level, try this. It's not 100% perfect, but will cover 99% of all domains: PHP Code: Quote:
__________________ UK Web Design & Development Airport Car Parking | Business Help & Advice | Critical Illness Insurance | Smoothie Recipes | Baby Name Books | |||
| |
| | #13 (permalink) | |
![]() |
My bad, I was concentrating on Quote:
that 1% is what pisses me off :P. I haven't tested this but looking at the regex (and i suck as regex), won't things like ?.uk.com, ?.gb.com and the funky names that likes still cause a fail (altho for the ?.gb/eu/uk/etc.com, an OR op like the co/org/etc could be added. (edited as I missed some of the regex ".[a-z]{2})" coz it went off screen, so that fixes the co.cctld). Are there any other common ?.ccTLD ? I can only think of gov/plc/ltd/org/co/me/net/ac/edu, but they would be easy to add in to your code anyway. (edited again) Anyway this is why I gave up and went slasher movie for my needs :P p.s. sorry for jacking your thread your purg.
__________________ Browse: Last edited by Skinner; 18-02-2009 at 11:06:36 AM. | |
| |
| | #14 (permalink) |
![]() |
Whizz... looks good for my needs. My site is almost complete for testing so will include your snippet before going live. Skinner.... No problem, from your posts ive seen more into the problem than first thought. If the snippet posted by Whizz could be expanded to cover your needs everyone's a winner. Its this kind of post this keep me coming back to the AD forum. The AD community highlight flaws but also follow up by creating the fix for everyone to use. (Also helps AD SEO which bring fresh meat into the mix)
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters |
| |
| | #15 (permalink) | |
![]() | Quote:
The above is merely just a starting point
__________________ UK Web Design & Development Airport Car Parking | Business Help & Advice | Critical Illness Insurance | Smoothie Recipes | Baby Name Books | |
| |
| | #16 (permalink) |
![]() |
I will have a go at the .uk.com SLD's another time. if anyone uses the above, and wants to make a donation - please do so to Admin
__________________ UK Web Design & Development Airport Car Parking | Business Help & Advice | Critical Illness Insurance | Smoothie Recipes | Baby Name Books |
| |
| | #17 (permalink) |
![]() Join Date: Jan 2007 Location: Barnsley, South Yorkshire
Posts: 515
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Domain Trader Rating: (100% / 22) |
Hi Guys, Keep in mind that eregi will be deprecated as of PHP 5.3.0 and completely removed as of PHP 6 A better solution would be PHP's parse_url function PHP Code: PHP Code: PHP Code: PHP Code: As for the OP's problem, you would then further process the output using something like Jeewhizz's solution above. Hope this helps! Craig Last edited by StudioVision; 02-03-2010 at 04:52:51 PM. |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Bounce.co.uk appeal decision | michaeltoth | Domain Name Disputes | 65 | 22-07-2006 04:14:14 AM |
