SiteMinder / Webhosting
The Computer Merchant, Ltd
US-MA-North Quincy

Justtechjobs.com Post A Job | Post A Resume

Comments for: benedetti20021219.php3

Message # 1015362:
Date: 02/04/03 07:51
By: Gaddo Benedetti
Subject: RE: Port 80 & little mistake

Good point, I was only trying out servers that should have had nothing running on port 80. In this case, I notice, the server being probed ignores the request to act as a proxy and simply serves up it’s own index document.

One means to get round this limitation of in the function (other than to avoid port 80 :) ) is to look for a unique ‘flag’ in your reference ($URL) site. Thus, with the present example, you might replace:

<?php
$HTTP_Response = fgets($fp, 128);
if(strlen(stristr($HTTP_Response, "200")) > 0){
$bOpenProxy = true;
while(!feof($fp))echo fgets($fp, 128);
}
?>

With:

<?php
while(!feof($fp)) {
if (strstr(fgets($fp, 128), "mPerium - WIRELESS AT WORK")) $bOpenProxy = true;
}
?>

Previous Message | Next Message


Comments:
RE: Limitations and SuggestionsThomas10/10/03 00:59
RE: dynamically assigned IPsGaddo02/19/03 10:53
dynamically assigned IPsnoel darlow02/10/03 22:02
RE: Port 80 & little mistakeGaddo Benedetti02/04/03 07:51
Port 80 & little mistakegosciu01/17/03 16:02
Limitations and SuggestionsLee 12/29/02 02:48
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.