> If a file available from an URL, I need to store a
> value to a variable.
>
> Suppose, I want to check for an image mymg.jpg from
> http://www.samplesite.com/images/mymg.jpg.
>
> So, how I can check, whether it available or not?
Try the file_exists() function.
Whether that is workable across another domain or not,
I don't know. You may be able to use a function like
is_readable() or something as well.
Look at php.net/file_exists for a full description of
this function and how to use it in the exact scenario
you mention.
Michael Roush
[EMAIL PROTECTED]
"The power of the Web is in its universality. Access by everyone regardless of
disability is an essential aspect."
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping