Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 13, 2006, 6:07 pm
rate this thread
Before I want to check if the file exist
I tried (file_exist("http://www.xx.yy/path/file.jpg"))
but that is not allowed
Also tried linkinfo("http://www.xx.yy/path/file.jpg")
but, however some files do not exist all the results are True (-1)
Thate could be correct because the path exists, the file doesn't.
Anyone knows how to check this
Lets say i want file http://www.google.lt/images/hp0.gif
Im allways downloading it to my server couse later it could be not
available anymore from google. So its like a protection.
bool copy ("http://www.google.lt/images/hp0.gif", "downloads/hp0.gif"
Returns TRUE on success or FALSE on failure.