I made a little script a while ago and it worked but now my hosting provider changed some PHP settings on the server, they enabled safe mode and now i have to switch to CURL.
When I first entered "http://beurs.youfind.nl/behr/slotkoersen.php?fd=eureko.tytper" in my adressbar, the script retrieved content from "http://www.behr.nl/Beurs/Slotkoersen/slotkoersen.php?fd=eureko.tytper"
using the following code:
Expand|Select|Wrap|Line Numbers
- <?
- if($fd==""){include("/");}
- else{
- include("http://www.behr.nl/Beurs/Slotkoersen/slotkoersen.php?fd=$fd");}
- ?>
So far i have
Expand|Select|Wrap|Line Numbers
- $ch = curl_init();
- curl_setopt ($ch, CURLOPT_URL, "http://www.behr.nl/Beurs/Slotkoersen/slotkoersen.php?fd=$fd");
- curl_setopt ($ch, CURLOPT_HEADER, 0);
- curl_exec ($ch);
- curl_close ($ch);
I don't know much about PHP (yet)
the URL has to be dynamic
Thnx in advance