I have spent over 2 hours trying to get this to work I want to extract the
values between ":"
and ","eng_data&
the txt is here http://fdguirhgeruih.x10.mx/html.txt
The output should be a list of over 300 IDs but I only get one
http://fdguirhgeruih.x10.mx/extract.php
when I run the script
<? php
//First, open the file. Change your filename
$file = "http://fdguirhgeruih.x10.mx/html.txt";
$word1='":"';
$word2='","eng_data&';
$contents = file_get_contents($file);
$between=substr($contents, strpos($contents, $word1), strpos($contents, $word2) - strpos($contents, $word1));
echo $between;
?>