Login | ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/vgwhois/trunk/main/subprograms/pa
(Generate patch)

Comparing trunk/main/subprograms/pa (file contents):
Revision 44 by daniel-marschall, Tue May 28 14:35:23 2019 UTC vs.
Revision 45 by daniel-marschall, Sat Mar 28 23:50:01 2020 UTC

# Line 18 | Line 18 | $url = "http://nic.pa/es/whois/dominio/$
18   $res  = "% Parsing via regex from '$url'\n\n";
19   $cont = file_get_contents($url);
20  
21 file_put_contents('tmpx', $cont);
22
21   if (preg_match('@<h2>Nombre del Dominio:\s*(.+)\s*</h2>(.+)</div>@ismU', $cont, $m)) {
22          $cont = "Domain ".$m[1].":\n".$m[2];
23   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines