This commit is contained in:
commit
58abf65147
14
1stPara.php
Normal file
14
1stPara.php
Normal 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";
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user