Displaying posts tagged with

“remote server”

Fetch files from remote server automatically in PHP

PHP provides multiple ways to download and upload files to remote servers, such as fopen, fsockopen, cURL library, and other methods. fopen is the simplest but not the best. A while ago I wrote a function to fetch remote file by using fsockopen. However, I found a lot of problems when I use it. Then [...]

  • Share/Bookmark

A gneric PHP function for fetching remote files

This is a generic PHP function for fetch data remotely. It takes one the remote URL as the only input variable. It returns the saved file name. All data files fetched from remote servers will save to “www-content” folder under web root directory. You can change this name to a folder name you want. The [...]

  • Share/Bookmark