cvs: pear /RDF_N3/docs/examples custom_test_n3.php
| From: | Lukas Smith | Date: | Tue, 24 May 2005 11:27:45 +0000 |
| Subject: | cvs: pear /RDF_N3/docs/examples custom_test_n3.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32098@lists.php.net to get a copy of this message | ||
lsmith Tue May 24 07:27:45 2005 EDT
Modified files:
/pear/RDF_N3/docs/examples custom_test_n3.php
Log:
- lets be a good example and use SCRIPT_NAME when PHP_SELF is not needed
http://cvs.php.net/diff.php/pear/RDF_N3/docs/examples/custom_test_n3.php?r1=1.2&r2=1.3&ty=u
Index: pear/RDF_N3/docs/examples/custom_test_n3.php
diff -u pear/RDF_N3/docs/examples/custom_test_n3.php:1.2
pear/RDF_N3/docs/examples/custom_test_n3.php:1.3
--- pear/RDF_N3/docs/examples/custom_test_n3.php:1.2 Tue Dec 28 12:43:48 2004
+++ pear/RDF_N3/docs/examples/custom_test_n3.php Tue May 24 07:27:45 2005
@@ -45,7 +45,7 @@
if (!isset($_POST['submit']) OR (strlen($_POST['RDF']) > 100000000)) {
?>
-<form method="post" action="<?php echo
$HTTP_SERVER_VARS['PHP_SELF'];
+<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME'];
?>">
<p>This is an online demo of <a href="http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html">RAP
- RDF API for PHP V0.8</a> . You can paste n3 code into the text field below
@@ -199,7 +199,7 @@
// Load and parse document
$model = $n3pars->parse2model($rdfInput);
// Set the base URI of the model
- $model->setBaseURI("http://www3.wiwiss.fu-berlin.de" .
$HTTP_SERVER_VARS['PHP_SELF'] . "/DemoModel#");
+ $model->setBaseURI("http://www3.wiwiss.fu-berlin.de" .
$_SERVER['SCRIPT_NAME'] . "/DemoModel#");
// Execute query on model if submitted
if ($_POST['query_subject'] != '' OR $_POST['query_predicate'] !=
'' OR $_POST['query_object'] != '') {
$comment_string = "<BR><H3>The following query has been
executed:</H3><BR>";
@@ -279,7 +279,7 @@
echo_string_with_linenumbers($model->toStringIncludingTriples());
} ;
- ?> <center><a href="<?php echo $HTTP_SERVER_VARS['PHP_SELF']
?>"><h2>Go back to input form.</h2></a></center><?php
+ ?> <center><a href="<?php echo $_SERVER['SCRIPT_NAME']
?>"><h2>Go back to input form.</h2></a></center><?php
} // end of "form submitted"
?>