b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.10) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Procedural File: _url.funcs.php

Source Location: /blogs/inc/_misc/_url.funcs.php

Page Details

This file is part of the b2evolution/evocms project - http://b2evolution.net/.

See also http://sourceforge.net/projects/evocms/.

Author:  blueyed: Daniel HAHLER
Author:  Danny Ferguson
Version:  $Id: _url.funcs.php,v 1.6.2.3 2007/04/25 22:18:06 fplanque Exp $
Copyright:  (c)2003-2007 by Francois PLANQUE - http://fplanque.net/. Parts of this file are copyright (c)2006 by Daniel HAHLER - http://daniel.hahler.de/.
Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Functions
fetch_remote_page  [line 41]

string|false fetch_remote_page( string $url, array &$info  )

Fetch remote page

Attempt to retrieve a remote page, first with cURL, then fopen, then fsockopen.

Parameters:
string   $url:  URL
array   &$info:  Info (by reference) 'error': holds error message, if any 'status': HTTP status (e.g. 200 or 404)

API Tags:
Return:  The remote page as a string; false in case of error

Information Tags:
Todo:  fp> order should be cURL, then fsockopen, then fopen.

[ Top ]
url_same_protocol  [line 170]

string url_same_protocol( string $url, [string $other_url = NULL]  )

Get $url with the same protocol (http/https) as $other_url.

Parameters:
string   $url:  URL
string   $other_url:  other URL (defaults to $ReqHost)


[ Top ]


Documentation generated on Tue, 20 May 2008 01:46:26 +0200 by phpDocumentor 1.4.2