London
SEO
Hi,
I was using the phpwhois class from http://sourceforge.net/projects/phpwhois/ and I think is excelent, but I only need one field from the whole whois information...I only need the CREATED: date xxx any idea how can get that value ONLY, I would like to do some make some operations with that date so maybe the output should be an INT? let me know if you have any idea how can I do that?sample: Results for perkiset.org : regrinfo->Array domain->Array name->perkiset.org created->2007-02-14 ********** changed->2007-11-28 expires->2011-02-14 sponsor->GoDaddy.com, Inc. (R91-LROR) status->CLIENT UPDATE PROHIBITED nserver->Array ns43.domaincontrol.com->208.109.78.180 ns44.domaincontrol.com->208.109.255.22 owner->Array handle->GODA-034784379 name->Registration Private address->Array address->Array 0->omainsByProxy.com 1->15111 N. Hayden Rd., Ste 160, PMB 353 city->Scottsdale state->Arizona pcode->85260 country->US phone->+1.4806242599 fax->+1.4806242599 email->PERKISET.ORG@domainsbyproxy.com admin->Array handle->GODA-234784379 name->Registration Private address->Array address->Array 0->omainsByProxy.com 2->15111 N. Hayden Rd., Ste 160, PMB 353 city->Scottsdale pcode->85260 country->US phone->+1.4806242599 fax->+1.4806242599 email->PERKISET.ORG@domainsbyproxy.com Thank you nutballs
preg_match('#created->(d{4}-d{2}-d{2})#is',$thewhoisstring,$thematcharray);
echo $thematcharray[1]; //this prints just the captured date. not even tested, but should work. If you blow up the universe though, its not my fault. perkiset
I think the universe is safe. Looks good and that's exactly how I'd do it as well.
Although the subject of the query creeps me out a bit... vsloathe
On the Syndk8, I posted how to use the object that this class returns.
|
Thread Categories
Best of The Cache Home | ||
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads