Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:14:18+00:00 2026-06-17T22:14:18+00:00

I am developing a whois app for my self to maintain expiry dates of

  • 0

I am developing a whois app for my self to maintain expiry dates of my country level domains (PK). Our PKNIC provider doesn’t allow any API or XML to get any such data so i googled found this code that could work now i need a little more code to retrieve only expiry date into a text box.

<?php
$postdata = http_build_query(
array(
    'name' => 'google.com.pk',
)
);

$opts = array('http' =>
array(
    'method'  => 'POST',
    'header'  => 'Content-type: application/x-www-form-urlencoded',
    'content' => $postdata
)
);

$context  = stream_context_create($opts);

$result = file_get_contents('http://pk5.pknic.net.pk/pk5/lookup.PK', false, $context);
//print_r($result);
echo $result;
?>

Using the above code i get the results something like this..

  <tr>
      <td>&nbsp;</td>
    <td background="img/bg_diagnol.gif"><div align="right" class="style2">Create Date:</div></td>
    <td>&nbsp;</td>
    <td background="img/square.gif"><span xclass="TD_small">2003-03-05</span></td>
  </tr>
    <tr>
      <td>&nbsp;</td>
    <td background="img/bg_diagnol.gif"><div align="right" class="style2">Expire Date: </div></td>
    <td>&nbsp;</td>
    <td background="img/square.gif">2013-03-05</td>
  </tr>
    <tr>
      <td>&nbsp;</td>
    <td background="img/bg_diagnol.gif">&nbsp;</td>
    <td>&nbsp;</td>
    <td background="img/square.gif">&nbsp;</td>
  </tr>
    <tr>
      <td>&nbsp;</td>
    <td background="img/bg_diagnol.gif"><div align="right" class="style2">Agent Organization:</div></td>
    <td>&nbsp;</td>
          <td background="img/square.gif">MarkMonitor       <!--
     &nbsp; &nbsp; <span class="footer"></span> 
     -->
        </td>

Now i just want to retrieve the Domain Expiry Date, is it possible ?
Something maybe like

$(‘td’).find(‘Expire Date:’).after().html

Or is there any regx i can search for date format and copy into text box ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:14:20+00:00Added an answer on June 17, 2026 at 10:14 pm

    This seems like weirdly formatted xml to return (looks like it’s more for display than consumption), but you can still do it. .after is for DOM manipulation.

    $(":contains(Expire Date)").parent().next().next().html();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Developing a project of mine I realize I have a need for some level
Im developing an app for iPhone, in wich one of the functionalities is an
I've been developing my first web based app for about two months now (I'm
We have graphic/interface designer who is developing html/css for our websites. How can I
I am developing a web app which needs to check the internet if got
Developing an app for iOS, I need to know how to have instanced and
I'm developing a J2ME app which securely connects to a server to login. I'm
Developing a Sencha Touch MVC app that pulls data from json store (thats set
Developing an app that people pay a monthly subscription to use. They can pay
I'm developing a simple app in c#, that can check if a domain name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.