php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47191 Unable to find the socket transport "http" - did you forget to enable it when y
Submitted: 2009-01-22 15:43 UTC Modified: 2009-02-19 01:00 UTC
Votes:15
Avg. Score:4.4 ± 1.1
Reproduced:12 of 12 (100.0%)
Same Version:6 (50.0%)
Same OS:7 (58.3%)
From: krishna dot gara at gmail dot com Assigned:
Status: No Feedback Package: Compile Warning
PHP Version: 5.3.0alpha3 OS: windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: krishna dot gara at gmail dot com
New email:
PHP Version: OS:

 

 [2009-01-22 15:43 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-22 15:47 UTC] pajoye@php.net
Compile warning?

Can you add your comment in the comment box please, not in the title.
 [2009-01-22 15:51 UTC] krishna dot gara at gmail dot com
$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
}

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

i uncommented allow_url_fopen = On ,too

but getting like this ,please help me 

Unable to find the socket transport "http" - did you forget to enable it when y
 [2009-01-23 07:13 UTC] krishna dot gara at gmail dot com
any body know this , help me please ..
 [2009-01-30 01:01 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-02-11 21:20 UTC] felipe@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-02-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 12:01:28 2025 UTC