check if file exists in php

前端 未结 6 1686
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 17:02
if (!(file_exists(http://mysite.com/images/thumbnail_1286954822.jpg))) {   
$filefound = \'0\';                         
}

why won\'t this work?

6条回答
  •  伪装坚强ぢ
    2020-12-03 17:09

    if (!file_exists('http://example.com/images/thumbnail_1286954822.jpg')) {   
    $filefound = '0';
    }
    

提交回复
热议问题