ID:               39594
 Updated by:       [EMAIL PROTECTED]
 Reported By:      realtime158 at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Linux 2.6.9-42.0.3
 PHP Version:      4.4.4
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




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

[2006-11-22 19:00:39] realtime158 at hotmail dot com

Description:
------------
fsockopen will not work to any local page located within that domain. 
And will not render the page.  If i copy the url into the browser it
works no problems.  Also it will work on any other domain other then
ours. The admin from the hosting company that we purchased a box off
told us this. 

Since your server is behind a firewall, you will not be able to include
files from other sites on your server by using the domain name. The
domain names all resolve to the external IP address, but that IP
address cannot be accessed from behind your firewall.


Reproduce code:
---------------
<?php
$fp = fsockopen ("http://www.fetchads.com/login/index.php";, 80, $errno,
$errstr, 30);
if(!$fp) {
   echo $errstr;
} else {
   fwrite($fp, "GET / HTTP/1.1\r\nHost: www.fetchads.com\r\nConnection:
Keep-Alive\r\n\r\n");
   $data = '';
   while(!feof($fp)) {
       $data .= fread($fp, 4096);
            $content .= $data;
       if(substr($data, -9)=="\r\n\r\n0\r\n\r\n") {
           exit;
       }
   }
}
$content = preg_replace('/^(.+?)(\r\n|\n|\015\012){2}/s','',$content);
echo $content;
?> 


Expected result:
----------------
I would like the php code to produce the same screen or close to it as
if I were to type it in the browser like this

http://www.fetchads.com/login/index.php

Also i am open to any alternatives except installing php5.  Or any new
snapshots



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


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

Reply via email to