note 43624 added to function.is-readable

From: Date: Mon, 28 Jun 2004 13:42:56 +0000
Subject: note 43624 added to function.is-readable
Groups: php.notes 
Request: Send a blank email to php-notes+get-72005@lists.php.net to get a copy of this message
I have written a function which is easy to check whether a file is readable on remote server. function url_readable($url) { $fd = @fopen($url, "r") or die(); return true; } // Let's test the function as below $link = "http://www.php.net/index.php"; if ( url_readable($link) ) { echo "Okay, this is readable!"; } ---- Manual Page -- http://www.php.net/manual/en/function.is-readable.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43624 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43624&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43624&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72005) next »