summaryrefslogtreecommitdiff
path: root/other/php.php
diff options
context:
space:
mode:
Diffstat (limited to 'other/php.php')
-rwxr-xr-xother/php.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/other/php.php b/other/php.php
new file mode 100755
index 0000000..e35665b
--- /dev/null
+++ b/other/php.php
@@ -0,0 +1,13 @@
+#!/usr/bin/php
+<?php
+
+// $options = 0;
+// $options = LIBXML_NONET;
+$options = LIBXML_NOENT;
+
+$xml = simplexml_load_file($argv[1], "SimpleXMLElement", $options);
+$data = (string)$xml;
+echo strlen($data);
+echo $data;
+?>
+