Karthick
Karthick

Reputation: 121

How to get the files from amazon s3 cloud storage

I am using scandir() function to scan the directory from the cloud. This function working in the local system but not worked in the sever. I have run this function using php code in the server i het the following error

Warning: scandir(https:// xxxx/yyyy/folder/): failed to open dir: No such file or directory

Warning: scandir(): (errno 2): No such file or directory 

Warning: Invalid argument supplied for foreach()

How to solve this error..

Upvotes: 1

Views: 772

Answers (1)

gowri
gowri

Reputation: 681

You have to access the S3 Bucket for getting files from cloud server..

Refer this

Upvotes: 1

Related Questions