This commit is contained in:
Jack-Benny Persson 2014-07-28 01:40:55 -07:00
commit 58abf65147

14
1stPara.php Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/php
<?php
if (!isset($argv[1]))
{
print "Usage: $argv[0] URL\n";
exit(1);
}
$url = $argv[1];
$data = shell_exec("curl -s $url");
preg_match("/\<p\>(.*)\<\/p\>/", $data, $match);
print strip_tags($match[1]) . "\n";
?>