July 2017
Intermediate to advanced
434 pages
12h 59m
English
Edit /etc/nginx/sites-enabled/default and uncomment the lines needed to activate PHP and php5-fpm, and then "service nginx restart" from the command line.
Create the file /var/www/html/xml_handler.php with the following content:
<?php function not_found() { Header("Content-type: text/xml"); $xmlw = new XMLWriter(); $xmlw -> openMemory(); $xmlw -> setIndent(true); $xmlw -> setIndentString(''); $xmlw -> startDocument('1.0', 'UTF-8', 'no'); $xmlw -> startElement('document'); $xmlw -> writeAttribute('type', 'freeswitch/xml'); $xmlw -> startElement('section'); $xmlw -> writeAttribute('name', 'result'); $xmlw -> startElement('result'); $xmlw -> writeAttribute('status', 'not found'); $xmlw -> endElement(); //end result ...Read now
Unlock full access