tags:

views:

44

answers:

1

Say I use php copy(), to get a file from a site.

And then a user who is using a proxy filtering service that has that site blocked, will the site still be able to copy that file for the user?

If not, would a cron job be able to?

And is the same for file_get_contents?

Cheers

+4  A: 

PHP runs on the server, so it is the webserver, not the user, which requests that remote file.

So yes, you can copy a file from a server which a user themselves might not be able to reach directly.

Paul Dixon