file - php file_exists doesnt work when working with AWS PHP SDK -


i'm using aws php sdk object s3 bucket.

when in file system files exist function file_exist return false.

if run script again find file.

$result = $client->getobject(array(             'bucket' => "uploads/$id",             'key' => $file,             'saveas' => "somepath/$id/$file"         )); echo json_encode(file_exists("somepath/$id/$file")); 

this return false if run script again , manually inserting url return true.

can while script still running can't file? (maybe timing issue?)

thx

the method looking file_exists, not file_exist

echo json_encode(file_exists("somepath/$id/$file")); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -