Here is the code im working with as of now
<?php
$url = 'http://www.PULLDATADOMAIN.Com/Here';
$Stuff = 'Wow im not a complete idiot';
$After = 'This is not what im doing';
$contents = file_get_contents($url);
echo $contents;
?>
Okay as of right now this is quite raw. All it is doing is pulling the html source code from the $url and displaying it on the page.
But what I am looking to have it do is pull that html and then search for where it finds the variable $After
And then output / echo the first half of the $contents then output $mystuff then out put the second half of $contents.
Try this one
$url = ‘https://www.google.com/roboat.txt’;
$Stuff = ‘Life is good when we get help on time’;
$After = ‘/The service you requested is not available at this time/’;
$contents = file_get_contents($url);
$result = preg_split($After,$contents);
print_r($result);