I have a very simple PHP script on a remote Apache web server. On my PC, it functions perfectly fine with php web server running but nothing appears to be executing in the web server and there appears to be no errors. I have a good suspicion that this is a configuration issue. Please advise!
httpd.conf contains the following lines
LoadModule php5_module modules/libphp5.so AddHandler php5-script .php AddType application/x-httpd-php .php
Apache is (I believe) properly installed. Running
apachectl -V shows me info, as expected:
Server version: Apache/2.2.15 (Unix) Server built: XXX X XXXX XX:XX:XX ...
And PHP appears to also be properly installed. Running
php -v shows me version info, as expected:
PHP 5.3.3 (cli) (build: XXX X XXXX XX:XX:XX) ...
Thanks in advance!
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $xml = file_get_contents("php://input"); $xmlDoc = simplexml_load_string($xml); $xmlDoc -> asXml("someData.xml"); ?>