phpbar.de logo

Mailinglisten-Archive

[php] alternative zu fopen()

[php] alternative zu fopen()

Christian Schaefer caefer_(at)_yahoo.com
Sun, 14 Jan 2001 10:21:19 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C07E13.BC7163C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

hallo!

folgendes problem:
ich will per php �berpr�fen, ob auf einer anderen url ein jpeg existiert.
dieses ist aber zu gro� (ca. 1mb) um mit fopen gepr�ft zu werden. ich
bekomme dann folgende message:

            Warning: fopen("http://www.servername.de/irgendwas.jpg","r") -
No error in E:\private\storage\contfoot.php3 on line 51
            Fatal error: Maximum execution time of 30 seconds exceeded in
E:\private\storage\contfoot.php3 on line 51

gibt es eine m�glichkeit, nur die existenz dieses files zu pr�fen ohne es
gleich zu �ffnen?
so eine art file_exists() f�r urls?

gru�
christian

------=_NextPart_000_0000_01C07E13.BC7163C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001>hallo!</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D370011709-14012001>folgendes=20
problem:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D370011709-14012001>ich =
will per php=20
=FCberpr=FCfen, ob auf einer anderen url ein jpeg =
existiert.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D370011709-14012001>dieses =
ist aber zu=20
gro=DF (ca. 1mb) um mit fopen gepr=FCft zu werden. =
ich</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D370011709-14012001>bekomme dann=20
folgende message:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
Warning: fopen("http://www.servername.de/irgendwas.jpg","r") - No error =
in=20
E:\private\storage\contfoot.php3 on line 51</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
Fatal error: Maximum execution time of 30 seconds exceeded in=20
E:\private\storage\contfoot.php3 on line 51</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D370011709-14012001>gibt =
es eine=20
m=F6glichkeit, nur die existenz dieses files zu pr=FCfen ohne es gleich =
zu=20
=F6ffnen?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D370011709-14012001>so =
eine art=20
file_exists() f=FCr urls?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001>gru=DF</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D370011709-14012001>christian</SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_0000_01C07E13.BC7163C0--


_________________________________________________________
Do You Yahoo!?
Get your free _(at)_yahoo.com address at http://mail.yahoo.com



php::bar PHP Wiki   -   Listenarchive