Built-In Functions
|
<?php
xd_file_read([FILE]);
?>
<?php
xd_file_write([FILE], [DATA], {OPTION});
?>
<?php
xd_file_prepend([FILE], [DATA], {OPTION});
?>
<?php
xd_curl_read([URL]);
?>
|
[FILE]
File Path Location. This field should contain a relative path to either an existing file, or one to be written.
[URL]
A URL Address available over the host network.
[DATA]
Data in string format that you wish to store in the file.
{OPTION}
"SS_OVERRIDE"
Optional: By default, if XDD detects the current host uses 'SafeQuotes' it will attempt a stripslashes function on the data before writing. This can repair data modified by PHP. Otherwise, at times you may get backslashes added to the data. If you are having issues with stripslashes (Removal of wanted slashes) its recommended to disable it only when needed. But you can disable it globally within the control panel and plugin file.
cURL User-Agent
Within the XDD control panel and plugin file, you can modify the cURL user-agent used when making HTTP requests, although modification is not needed.
File Creation
Both the xd_file_write() and xd_file_prepend() functions will attempt to create a non-existant file on write.
|