need alternative to C-U-R-L for including posts
-
hi – i use the following code on https://www.naturopathy-uk.com/events/events-opendays-uk/
to include categories/posts from WordPress (WP installed on same server in naturopathy-uk.com/blog – used for 7 sites hosted on same server(commented out herefor safety reasons):
<?php
//$ch = curl_init();
//curl_setopt($ch, CURLOPT_URL, “https://www.naturopathy-//uk.com/blog/?cat=22”);
//curl_setopt($ch, CURLOPT_HEADER, 0);
//curl_exec($ch);
//curl_close($ch);
?>My host said fine, now they say it’s a security issue and want me to remove it. I think it’s a PHP issue fixed here on https://www.php.net/
PHP 4.4.4 and PHP 5.1.5 Released
[17-Aug-2006] The PHP development team would like to announce the immediate availability of PHP 5.1.5 and 4.4.4. These two releases address a series of security problems that were discovered since the release of PHP 5.1.4 and 4.4.3. The new releases include the following changes:Fixed possible open_basedir/safe_mode bypass in cURL
extension and on PHP 5.1.5 with realpath cache.I’m stuck. Can’t use fOPEN. Any ideas for alternatives?
Best,
-Rob
- The topic ‘need alternative to C-U-R-L for including posts’ is closed to new replies.