Bugfixing Include Content Plugin
Budget: €8 – €30 EUR
Hi,
i don’t know why, but unfortunately the plugin stopped working.
Attached is a URL, where this happens.
What can i do about this?
The Code of the shown file is:
<?php
#$url = 'osteoporose/was-ist-osteoporose/';
$url = 'https://www.osteoporose-deutschland.de/'.$include_me_url;
$content = file_get_contents($url);
$pattern = '=Start Content(.*)Finish Content=isU';
$result = preg_match($pattern, $content, $subpattern);
$content = substr($subpattern[1],86,strlen($subpattern[1])-84-86);
if (strpos($content,'twoclick_social') !== false) {
$content = substr($content,0,strlen($content)-2087);
}
#$content = str_replace('https://','http://',$content);
$content = str_replace('<a ','<a target="_blank" ',$content);
echo $content;
Here is a Link:
https://www.osteoporose-nrw.de/osteoporose/
And maybe - but just maybe - it has something in common with this article here:
https://stackoverflow.com/questions/4545790/file-get-contents-returns-403-forbidden
i don’t know why, but unfortunately the plugin stopped working.
Attached is a URL, where this happens.
What can i do about this?
The Code of the shown file is:
<?php
#$url = 'osteoporose/was-ist-osteoporose/';
$url = 'https://www.osteoporose-deutschland.de/'.$include_me_url;
$content = file_get_contents($url);
$pattern = '=Start Content(.*)Finish Content=isU';
$result = preg_match($pattern, $content, $subpattern);
$content = substr($subpattern[1],86,strlen($subpattern[1])-84-86);
if (strpos($content,'twoclick_social') !== false) {
$content = substr($content,0,strlen($content)-2087);
}
#$content = str_replace('https://','http://',$content);
$content = str_replace('<a ','<a target="_blank" ',$content);
echo $content;
Here is a Link:
https://www.osteoporose-nrw.de/osteoporose/
And maybe - but just maybe - it has something in common with this article here:
https://stackoverflow.com/questions/4545790/file-get-contents-returns-403-forbidden