Professional Documents
Culture Documents
file_put_contents() : file_put_contents(filename, data, mode, context)
The file_put_contents() writes data to a file
outfilename
The file which the digital signature will be written to.
signcert
The X.509 certificate used to digitally sign infilename. See
Key/Certificate parameters for a list of valid values.
privkey
privkey is the private key corresponding to signcert. See
Public/Private Key parameters for a list of valid values.
headers
headers is an array of headers that will be prepended to the data after
it has been signed (see openssl_pkcs7_encrypt() for more information
about the format of this parameter).
flags
flags can be used to alter the output - see PKCS7 constants.
extracerts
extracerts specifies the name of a file containing a bunch of extra
certificates to include in the signature which can for example be used
to help the recipient to verify the certificate that you used.
Return Values
Returns true on success or false on failure.
Possible values:
Greater than 0 - Returns an array with a maximum
of limit element(s)
Less than 0 - Returns an array except for the last -limit elements()
0 - Returns an array with one element
cURL :
Requirements ¶
Initializes a new session and return a cURL handle for use with
the curl_setopt(), curl_exec(), and curl_close() functions.
This can be useful for testing your own web forms, connecting to APIs that require
POST data and so on.
I would also add a timeout so that it doesn't hang indefinitely if the server is not
responding:
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
Description ¶
json_encode ( mixed $value , int $flags = 0 , int $depth =
512 ) : string|false