Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about fopen through firewall

Status
Not open for further replies.

zallen

Programmer
Aug 10, 2000
227
CN
Hi friends
I have installed PHP4 as Apache module on win2k named srv3(192.168.1.126).The srv3 can connect to internet through a firewall(when the LAN clients browse the php file below,the fopen always fails!
Hope somebody out there can help me. Thanks in advance!

<?
$open = @fopen(&quot; &quot;r&quot;);
if($open) {
$read = @fread($open, 150000);
@fclose($open);

$search = eregi(&quot;<!--Weather--begin-->(.*)<!--Weather--end-->&quot;, $read, $printing);

echo &quot;$printing[1]<br>&quot;;
echo &quot;$printing[2]<br>&quot;;
}
else
echo 'cannot open the file!';

?>

Regards! I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

zallen@cmmail.com
ICQ:101229409
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top