Function ze\curl::fetch()

In PHP:
ze\curl::fetch(
$URL, $post = false, $options = [], $saveToFile = false
)

Description

Fetches the contents of a URL by CURL. A wrapper function to the curl_exec() PHP function.

Parameters

$URL

The URL to fetch

$post

You may use POST by setting this variable. You can enter an array of $_POST variables you wish to set, or if you do not wish to actually set any post variables, just enter a value of true.

$options

An array of options => values to pass to CURL.

$saveToFile

If you enter the path to a file into this parameter, the result will be saved to a file.

Return Value

The results of a call to curl_exec().