OK I have this situation,
Assuming there are two mirror sites, for example:
masterwebsite.com
slavewebsite.com
masterwebsite.com is where the administrators edit content for a certain plugin.
slavewebsite.com is where users will be using the plugin but they cannot edit any of the content or plugin functionality.
Is it possible to export a certain XML variable as a string (as an output of an export function) then to be read by a calling function in a slave website without ever creating a XML physical file?
UPDATE: The XML file variable is outputted by:
$myxmlvariable = $xml->array2xml($doc_data, 'documentation_export');
This is found in the export function let say:
doc_export()
It will be located in the masterwebsite.com
And the function to import will be:
doc_import($xml)
This will be found in the slavewebsite.com.
Take note that these are WordPress plugin implementations.
If yes, what are the concepts and necessary steps? I’m not exactly looking for code, just the principles of operation. If someone can shed some light on this, I would highly appreciate. Thanks.
no physical xml file ? i think you want to work with this xml on the flay or as background process . i think a simple REST service can help you to do so . and you may consume this rest service using simple AJAX call where the output is expected .
if you choose REST then this link may help you