wp_remote_fopen [ WordPress Function ]
wp_remote_fopen ( $uri )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_remote_get, wp_remote_post, wp_remote_head, wp_remote_request, wp_delete_comment
HTTP request for URI to retrieve content.
Source
<?php
function wp_remote_fopen( $uri ) {
$parsed_url = @parse_url( $uri );
if ( !$parsed_url || !is_array( $parsed_url ) )
return false;
$options = array();
$options['timeout'] = 10;
$response = wp_remote_get( $uri, $options );
if ( is_wp_error( $response ) )
return false;
return wp_remote_retrieve_body( $response );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp remote fopen « WordPress Codex
Function Reference/wp remote fopen. Description. Returns the contents of a remote URI. Tries to retrieve the HTTP content with fopen first and then using cURL, ...
codex.wordpress.org - Forget cURL, use wp_remote_fopen!
Oct 15, 2009 ... Learn how to use WordPress' built-in function wp_remote_fopen to load external data from other websites.
cleverwp.com - Devious WordPress Hack Using wp_remote_fopen » Ask Shane.org
Feb 26, 2009 ... Devious WordPress Hack Using wp_remote_fopen. Features – 14 ... wp_remote_fopen; cache_vars; update_option; hide_text; $blarr. The links ...
www.askshane.org - wp_remote_fopen WordPress Attack Makes Site SLOW ...
Jun 18, 2009 ... Thanks to SomewwhereVille for helping me diagnose... Here's what I removed from header.php (in all the installed themes, not just the active.
andrewapeterson.com