| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #26 (permalink) |
| NamePros Regular Join Date: May 2003
Posts: 269
![]() | Please excuse my lack of programming knowledge but I have 2 basic questions for all of you and that is I just don't get what use this can be to me? Could you please explain in easy to undertstand terms how I may apply and use this and the exact benefit of it. Sorry I do not grasp its usage at all. |
| |
| | #27 (permalink) | ||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
| ||||
| |
| | #28 (permalink) | ||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
| ||||
| |
| | #29 (permalink) | ||||||||
| Senior Member Join Date: Jul 2004 Location: I ♥ Business Law
Posts: 3,082
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/programming/53456-parse-a-url-php-return-domain.html I solved the problem, don't worry, my script takes care of it all | ||||||||
| |
| | #30 (permalink) | ||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
And just like you claimed the code that I posted was "your version 2.5" when in fact it was a modified example off php.net just like I said it was. And if you compare the results from the code I posted and the code you posted you'll see there's quite a difference. And just like you claimed that your version 2.5 results in "nameprosrules.tld" when the actual result of your code in that version is "subdomain.nameprosrules.tld"? But I should just take your word for everything even when you don't even know the results of your own code? And I should just take your word for everything you said although most everything you said was a bunch of inaccurate jargon shouldn't I? Actually I don't think so, you may have said something that was accurate, but I sure wouldn't take your word for it considering all the inaccurate jargon you've posted. And if you cared to notice I was not asking you the question that I posted. Maybe if you would have posted with an answer other than one basically telling my I should not post or ask questions just because you say so I would have let it go at that just like I initially did when you inaccurately claimed the code I posted was "your code," although your code didn't even do what you said it did, and the code I posted actually did do what you inaccurately claimed your code did. ????: NamePros.com http://www.namepros.com/showthread.php?t=53456 And I'm surely not worried about anything, especially not posting or asking questions just because you say I shouldn't. I'll post and ask questions as I feel necessary. | ||||
| |
| | #31 (permalink) |
| Senior Member Join Date: Jul 2004 Location: I ♥ Business Law
Posts: 3,082
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Whoa, are you feeling okay? ![]() All i got to say is: so far ezimedia, and RJ can vouch on my behalf that the code works 100% as described, and the reasons for variations are due to improvements and bug fixes, a natural process in all php scripts. If you have personal problems with me that are hard to solve, then I suggest you re-read the Namepros rules, that state respect & professionalism Thanks
Last edited by PolurNET; 10-31-2004 at 04:30 PM.
|
| |
| | #32 (permalink) | ||||||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=53456
And to answer your question since you didn't seem to get it from what I have already said. No I don't have a personal problem with you, and of course I could solve it if I did (The ignore feature works well) I have a problem with you basically telling everyone who wants to post their code here or ask questions that are not even directed towards you that there is no need to do so because your code is the best, and that their code is your code, and that everyone else is wasting their time and that no one else should even participate just because you say so. | ||||||||
| |
| | THREAD STARTER #33 (permalink) | ||||||||
| NamePros Admin ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,919
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I can't quite vouch for the latest version of Polur's scripts as I haven't tested it out yet. At the time I needed it, I was able to fill my need a function based off an earlier version and used it with an existing function I had to trim subdomains, which worked fine! ????: NamePros.com http://www.namepros.com/showthread.php?t=53456 When I get a chance, I'll try out the new stuff and see what performs best.
__________________ Reach me at rj at namepros dot com | ||||||||
| |
| | #34 (permalink) |
| Senior Member Join Date: Jul 2004 Location: I ♥ Business Law
Posts: 3,082
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Based on your requests RJ for a script that recognizes ccTLDs (such as ".co.uk" or ".cc1.cc2.com", etc.) the final versions of the scripts were designed. deadserious here alleges that my first versions of the script do not output exactly what was described. Although it was tested at time of release, a few bugs did appear, which were identified by ezimedia, when using subdomains. The reason for the three initial versions are simply due to differences in coding, however, the latest one I posted satisfies for RJ's purposes at least, the subdomain removal feature, ccTLDs, $_SERVER variables and everything else as described. If you still allege that the code I posted is just a copy of php.net, I suggest you get a pair of proper reading glasses with a focal point that actually helps your nearpoint... if I did find one on php.net, I would've obviously stated so clearly, I have no benefit of posting unoriginal code. Indeed I still can't find the place you refer to @ php.net that contains my code. Also, if you also allege I prevented anyone from posting their codes here, well I'll be ****** ! I simply met the coding needs of the original poster, and improved on my version. Your posts seem to be oblivious of this fact, and just repeat the same facts and not one piece of original code that actually was developed by you is posted. Not that it's wrong, it's simply the fact your whining isn't helping the original poster nor solving the script problem(s), if any. If you believe calling scripts final versions, yet some people who report some minor bug fixes would suddenly discredit the script and say it's "crap", that's the predicament IMO. Bugfixes & improvements are always happening on good products. I just wanted to help people, and did successfully, I really don't know your aim ![]() Okay, signing out.
Last edited by PolurNET; 11-01-2004 at 01:03 AM.
|
| |
| | #35 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | Cool, here's some more new stuff. It probably needs some adjustments and such, but I think it at least "almost" works. PHP Code: url: http://horribly.long.subdomains.file.net/index.php domain: file.net url: http://66.98.205.16/tester domain: url: http://WWW.somedomain.pros.com.au/dir/file.html domain: pros.com.au url: https://www.www2.hosting.org.uk/home/index.php?file=1 domain: hosting.org.uk url: http://sub.sub2.sub3.sub4.cars.com.au/index.php domain: cars.com.au url: http://66.227.205.43/files/index.pl domain: url: http://WWW.BIGDOMAIN.co.uk/long/file/dir/path/enter.htm domain: bigdomain.co.uk url: https://www.er.doctors.net.uk/ domain: doctors.net.uk url: http://number.2.3.4.711.com/ domain: 711.com url: http://66.98.205.16/tester/ip.a/files domain:
Last edited by deadserious; 11-01-2004 at 07:39 AM.
|
| |
| | #36 (permalink) |
| Man from Manila Join Date: Jul 2003 Location: The Net
Posts: 6,022
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What will be the result for http://domain.com.keyword.net/index.php ? Will it correctly return keyword.net ?
__________________ |
| |
| | #37 (permalink) | ||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
| ||||
| |
| | #38 (permalink) | ||||
| Senior Member Join Date: Jul 2004 Location: I ♥ Business Law
Posts: 3,082
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=53456 Anyway, Peace, Anand
Last edited by PolurNET; 11-01-2004 at 09:12 AM.
| ||||
| |
| | #39 (permalink) |
| Senior Member Join Date: Dec 2003 Location: IllawarraClassifieds.com.au
Posts: 2,329
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | HI Anand I can say your code worked fine for me and you replied to my post quickly with a fix and I got your code to do what I wanted it to and that is all I was worried about. And I am sure if some one else could not have gotten your code to work you would have been more then happy to help them out also. I don't really think knocking each other about whos code is better really matters.. Or does it... Well at least not to me ![]() Keep up the good work anyways, Thanks Tom Dahne |
| |
| | THREAD STARTER #40 (permalink) |
| NamePros Admin ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,919
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ds's getdomain funciton Code: getdomain results: url: http://WWW.NAMEPROS.COM/showthread.php?t=53456 domain: namepros.com url: https://www.direct.gov.uk/Homepage/fs/en domain: direct.gov.uk url: http://horribly.long.subdomains.file.net/index.php domain: file.net url: http://66.98.205.16/tester domain: url: http://WWW.somedomain.pros.com.au/dir/file.html domain: pros.com.au url: https://www.www2.hosting.org.uk/home/index.php?file=1 domain: hosting.org.uk url: http://sub.sub2.sub3.sub4.cars.com.au/index.php domain: cars.com.au url: http://66.227.205.43/files/index.pl domain: url: http://WWW.BIGDOMAIN.co.uk/long/file/dir/path/enter.htm domain: bigdomain.co.uk url: https://www.er.doctors.net.uk/ domain: doctors.net.uk url: http://number.2.3.4.711.com/ domain: 711.com url: http://66.98.205.16/tester/ip.a/files domain: ????: NamePros.com http://www.namepros.com/showthread.php?t=53456 Code: parse_url_domain results: url: http://WWW.NAMEPROS.COM/showthread.php?t=53456 domain: namepros.com url: https://www.direct.gov.uk/Homepage/fs/en domain: direct.gov.uk url: http://horribly.long.subdomains.file.net/index.php domain: horribly.long.subdomains.file.net url: http://66.98.205.16/tester domain: 66.98.205.16 url: http://WWW.somedomain.pros.com.au/dir/file.html domain: somedomain.pros.com.au url: https://www.www2.hosting.org.uk/home/index.php?file=1 domain: www2.hosting.org.uk url: http://sub.sub2.sub3.sub4.cars.com.au/index.php domain: sub.sub2.sub3.sub4.cars.com.au url: http://66.227.205.43/files/index.pl domain: 66.227.205.43 url: http://WWW.BIGDOMAIN.co.uk/long/file/dir/path/enter.htm domain: bigdomain.co.uk url: https://www.er.doctors.net.uk/ domain: er.doctors.net.uk url: http://number.2.3.4.711.com/ domain: number.2.3.4.711.com url: http://66.98.205.16/tester/ip.a/files domain: 66.98.205.16 Code: parse_url_domain results: url: http://WWW.NAMEPROS.COM/showthread.php?t=53456 domain: com url: https://www.direct.gov.uk/Homepage/fs/en domain: gov.uk url: http://horribly.long.subdomains.file.net/index.php domain: long.subdomains.file.net url: http://66.98.205.16/tester domain: 98.205.16 url: http://WWW.somedomain.pros.com.au/dir/file.html domain: pros.com.au url: https://www.www2.hosting.org.uk/home/index.php?file=1 domain: hosting.org.uk url: http://sub.sub2.sub3.sub4.cars.com.au/index.php domain: sub2.sub3.sub4.cars.com.au url: http://66.227.205.43/files/index.pl domain: 227.205.43 url: http://WWW.BIGDOMAIN.co.uk/long/file/dir/path/enter.htm domain: co.uk url: https://www.er.doctors.net.uk/ domain: doctors.net.uk url: http://number.2.3.4.711.com/ domain: 2.3.4.711.com url: http://66.98.205.16/tester/ip.a/files domain: 98.205.16
__________________ Reach me at rj at namepros dot com |
| |
| | #41 (permalink) |
| New Member Join Date: Nov 2004
Posts: 3
![]() | |
| |
| | #43 (permalink) |
| NamePros Regular Join Date: Sep 2003
Posts: 889
![]() ![]() | All you'd have to do is use the working function they have above. Once you do that you can use explode or split I perfer split for some reason. But just put this line in somewhere: list($domain, $extention) = split('[.]', $fulldomain); I believe you have to have the . in square brackets or do something special but I forget right now and I don't have time to test it out.
__________________ Online Time Tracking :) |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |