note 42707 deleted from function.file-exists by nlopess

From: Date: Thu, 27 May 2004 13:24:58 +0000
Subject: note 42707 deleted from function.file-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-70185@lists.php.net to get a copy of this message
Note Submitter: webmaster@gayamateurworld.nl ---- 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..

« previous php.notes (#70185) next »