fopen po http - obsluga bledow ?

This is a discussion on fopen po http - obsluga bledow ? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Witam wszystkich mam cos takiego $url = fopen ("http://192.168.10.4/xxx.php", "r"); while ($...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2004
Yukiko
 
Posts: n/a
Default fopen po http - obsluga bledow ?

Witam wszystkich
mam cos takiego

$url = fopen ("http://192.168.10.4/xxx.php", "r");
while ($buff = fread ($url, 1024))
$txt .= $buff;
fclose ($url);
eval ('?>'. $txt .'<?');

zasadniczo jest tak - ze jest dobrze ! - ale jesli cos nie tak jest z
http://192.168.10.4/xxx.php - np jest wylaczony
to serwer wypluje cos takiego

Warning: fopen(http://192.168.10.4/xxx.php, "r") - No error in
C:\FoxServ\www\bhmd_2004\test5.php on line 3
Warning: fread(): supplied argument is not a valid File-Handle resource in
C:\FoxServ\www\bhmd_2004\test5.php on line 8
Warning: fclose(): supplied argument is not a valid File-Handle resource in
C:\FoxServ\www\bhmd_2004\test5.php on line 10

a wolal bym zeby wyplul np komunikat typu - "nic z tego"

zakladamy ze nie mam wplywu na raportowanie bledow przez php po stronie
serwera :o(



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:57 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0