Is there an alternative to the php include function?
-
Hi
I was using the php include function to get some content from some outside sites with such a script in a page:
<?php include "https://www.blablabla.com/abc/single.php"; ?>
I was more less forced to change the web host and eventually discovered this and a number of php functions are blocked on the current server, supposedly for security reasons. Possibly because this host always gets good reviews in Germany and so think everything they are doing is right, it has not been possible to convince them to allow these functions, including “include”, actually allowed on all servers I have had or manage sites. Their only option is expensive VPS, which does not pay for this small site.
It’s been possible to use JavaScript to get this specific content from the source, but it has some limitations.
So my question: is there any alternative php function that can do exactly that, to insert content in a page?
I’m not a coder and would, if there’s a solution want one easy to ue like the above piece of code.Thank you …
- The topic ‘Is there an alternative to the php include function?’ is closed to new replies.