php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11533 Error during fopen of remote-file-result
Submitted: 2001-06-18 06:22 UTC Modified: 2001-06-18 06:58 UTC
From: j dot parree at net-communications dot de Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: WINNT 4.0 - Service Pack 6a, IIS
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j dot parree at net-communications dot de
New email:
PHP Version: OS:

 

 [2001-06-18 06:22 UTC] j dot parree at net-communications dot de
Script:

	$query = str_replace("+", " ", $query);
	$query = str_replace("#", " ", $query);
	$query = str_replace("&", " ", $query);
	$query = str_replace(";", " ", $query);
	
	$query = str_replace(" ", "+", $query);


$file1 = fopen("http://www.google.com/search?q=$query", "r");
$rf1 = fread($file1, 40000);
fclose($file1);
$grab1 = ereg("<p>(.*)<div class=nav>", $rf1, $printing1);
$printing1[1] = str_replace("<A HREF=/", "<A HREF=http://www.google.com/", $printing1[1]);
$printing1[1] = str_replace("<a href=/", "<A HREF=http://www.google.com/", $printing1[1]);
     if ($printing1[1] == "") {
    	echo "&nbsp;&nbsp;&nbsp;<b><font size=\"2\" color=\"#FF0000\">Keine Resultate</font></b>";
     } else {
	echo $printing1[1];
     }
-----------------------------------------------------------
The System:
- php 4.0.4pl1 (bin 32, WINNT4.0, optionpack installed)
- mysql (not important for this issue)
- IIS4
(- IBM Netfinity 3500 M10)
-----------------------------------------------------------
This script works fine on Linux, but not on this NT mashine.

Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC