RTFM? (Sorry, very newbie question)
Jason Wong <[EMAIL PROTECTED]> 30/09/2003 12:26 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [PHP] file_exists on different server... On Tuesday 30 September 2003 19:00, [EMAIL PROTECTED] wrote: > I'm referencing an image on a different server, and it keeps changing > URL's > Very odd, but t get round that, I tried... > > if (file_exists("http://www.othersite.com/image_1.gif")) { > $image_show="http://www.othersite.com/image_1.gif"; > } else { > $image_show="http://www.mysite.com/image_1.gif"; > } > > but it always seems to do the else command, even though I know the file > DOES exist... RTFM Try fopen() or similar instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* If you are over 80 years old and accompanied by your parents, we will cash your check. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ********************************************************************* The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ***********************************************************************