note 42707 added to function.file-exists
| From: | webmaster at gayamateurworld dot nl | Date: | Wed, 26 May 2004 19:34:15 +0000 |
| Subject: | note 42707 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70141@lists.php.net to get a copy of this message | ||
The above does work well for files on a normal serevr but i tried to use it to see if an image exist
on a pc at home from someone (webcam broadcasters). The problem are the ports.. People stream their
images from i.e. port 9092 or port 9091 and so on.. If I use teh above file and i use
$url = "http://80.56.168.29:9092/bedroomcam.jpg";
than an fsock error occures. If i change $fp = fsockopen ($host, 80, $errno, $errstr, 20); to $fp
= fsockopen ($host, 9092, $errno, $errstr, 20); then the image still can not be found when I use
$url = "http://80.56.168.29:9092/bedroomcam.jpg";
Even not when i use
$url = "http://80.56.168.29/bedroomcam.jpg";
All I need is a small script that detects if thise image exist.. if does it print the image if not
it does not print the image.. Im busy with it for weeks, still nothing.. Any help is very welcome..
----
Manual Page -- http://www.php.net/manual/en/function.file-exists.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42707
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42707&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42707&report=yes
Search -- http://master.php.net/manage/user-notes.php