#47191 [Opn->Fbk]: Unable to find the socket transport "http" - did you forget to enable it when y
| From: | pajoye@php.net | Date: | Thu, 22 Jan 2009 15:47:35 +0000 |
| Subject: | #47191 [Opn->Fbk]: Unable to find the socket transport "http" - did you forget to enable it when y | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133161@lists.php.net to get a copy of this message | ||
ID: 47191
Updated by: pajoye@php.net
Reported By: krishna dot gara at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Compile Warning
Operating System: windows
PHP Version: 5.3.0alpha3
New Comment:
Compile warning?
Can you add your comment in the comment box please, not in the title.
Previous Comments:
------------------------------------------------------------------------
[2009-01-22 15:43:35] krishna dot gara at gmail dot com
Description:
------------
$url = "http://localhost";
$fp = fsockopen("$url", 80, $errno, $errstr, 30);
if (!$fp)
{
echo "<br>the Link (URL) could ot be validated<br>
<b>you entered: $url</b><p>
<a href=\"../maps/map-LatLng.php\">Please try again</a><p>";
exit();
}
else
{
echo "hi";
// then it was successful!
fclose($fp); // and carry on
} exit;
Reproduce code:
---------------
//echo $_SERVER['HTTP_USER_AGENT'];exit;
$url = "http://localhost";
$fp = fsockopen("$url", 80, $errno, $errstr, 30);
if (!$fp)
{
echo "<br>the Link (URL) could ot be validated<br>
<b>you entered: $url</b><p>
<a href=\"../maps/map-LatLng.php\">Please try again</a><p>";
exit();
}
else
{
echo "hi";
// then it was successful!
fclose($fp); // and carry on
} exit;
Expected result:
----------------
Need to create socket with connection
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47191&edit=1