$url = $this->site . "/media/$action";
// $content = file_get_contents($url, false, $context);
// curl replacement for file_get_contents
$postarguments = http_build_query($params);
$session = curl_init($url);
curl_setopt ($session, CURLOPT_POST, true);
curl_setopt ($session, CURLOPT_POSTFIELDS, $postarguments);
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
$content = curl_exec($session);
curl_close($session);
// end of curl replacement
> > For more options, visit this group athttp://groups.google.com/group/pkcontextcms?hl=en.
What host refuses URLs in fopen()?
> For more options, visit this group at http://groups.google.com/group/pkcontextcms?hl=en.