ID:               38889
 Updated by:       [EMAIL PROTECTED]
 Reported By:      carolinearojas at yahoo dot com dot au
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: Win XP
 PHP Version:      5.1.6
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See libxml_set_streams_context


Previous Comments:
------------------------------------------------------------------------

[2006-09-20 01:06:22] carolinearojas at yahoo dot com dot au

Description:
------------
Is it possible to add HTTP proxy support to DOM function? I couldn't
see any references to this on the php site. We are currently having
difficulties with a loadHTMLFile script when accessing remote servers
external to our network.

Reproduce code:
---------------
$dom = new DomDocument ();
$dom= DOMDocument::loadHTMLFile('http://www.php.net');
$title = $dom->getElementsByTagName("title");
print $title->item(0)->textContent;

Expected result:
----------------
PHP: Hypertext Preprocessor

Actual result:
--------------
Warning: DOMDocument::loadHTMLFile(http://www.php.net)
[function.DOMDocument-loadHTMLFile]: failed to open stream: Connection
timed out in /web/test1.php on line 3

Warning: DOMDocument::loadHTMLFile()
[function.DOMDocument-loadHTMLFile]: I/O warning : failed to load
external entity "http://www.php.net"; in /web/test1.php on line 3


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38889&edit=1

Reply via email to