I have a question, is there any way to check a url if contain a word and then show this value? For example I want to check if in the external site exist ver. 1.x.x.x, this value ver. 1.x.x.x never will be the same. I make something like this, but maybe is another solution.
<form enctype="multipart/form-data" action="" method="post">
<input name="url" type="text"/>
<input type="submit" name="submit" value="Check" class="btn btn-primary"/><br/>
</form>
<?php
if(isset($_POST['submit'])) {
$url = $_POST['url'];
}
$content = file_get_contents($url);
$first_step = explode( '<p class="copyright">' , $content );
$second_step = explode("</p>" , $first_step[1] );
echo $second_step[0];
?>
In the external url this is the html container
<p class="copyright">
Help Us -
<a href="http://www.externalsite.com/">
(ver. 1.x.x.x)
<br>