The latest version of Wordpress 2.7 requires curl_exec() function. However, for security reasons, many hosts do not allow to use this function and due to this your wordpress blog will not function properly. There is an alternative available to use Wordpress 2.7 without enabling curl_exec() function.
First download this plugin and install it:
http://trac.wordpress.org/attachment/ticket/8086/list_transports.php?format=raw
After you activate it, you’ll see a list of what transports WordPress detected as working at the bottom of the admin screens (in the footer). Once you know these, you can deactivate and delete the plugin.
If you are not able to activate the plugin you can ignore the above step.
Now, open functions.php which is in your theme directory and add the following code:
function block_transport() { return false; }
add_filter('use_http_extension_transport', 'block_transport');
add_filter('use_curl_transport', 'block_transport');
add_filter('use_streams_transport', 'block_transport');
add_filter('use_fopen_transport', 'block_transport');
add_filter('use_fsockopen_transport', 'block_transport');
That will block all five possible transports from working. Now just remove the add_filter line on the transport that you want WordPress to actually use.
Added: You will need to add above code in php block and put at the end of function.php
Zie ook:
http://blog.webhostingdiscussion.ne...bled-for-security-reasons-in-wordpress-27.htm
Curl is op de diverse servers uitgeschakeld omdat dat het een extern programma is. Zo'n extern programma dat vanuit PHP aangeroepen wordt, kan helaas misbruikt worden om bestanden te lezen/overschrijven in directories waar PHP normaal gesproken geen rechten heeft.
Als alternatief kun je misschien gebruik maken van het feit dat je met file of fopen ook de inhoud van externe URL's kunt inlezen:
Code: Selecteer alles
<?
$inhoud = file("http://www.example.com");
print $inhoud;
?>