cvs: pear /RDF_RDQL/docs/examples custom_rdql_test.php

From: Date: Tue, 24 May 2005 11:28:03 +0000
Subject: cvs: pear /RDF_RDQL/docs/examples custom_rdql_test.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32100@lists.php.net to get a copy of this message
lsmith Tue May 24 07:28:03 2005 EDT Modified files: /pear/RDF_RDQL/docs/examples custom_rdql_test.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_RDQL/docs/examples/custom_rdql_test.php?r1=1.2&r2=1.3&ty=u Index: pear/RDF_RDQL/docs/examples/custom_rdql_test.php diff -u pear/RDF_RDQL/docs/examples/custom_rdql_test.php:1.2 pear/RDF_RDQL/docs/examples/custom_rdql_test.php:1.3 --- pear/RDF_RDQL/docs/examples/custom_rdql_test.php:1.2 Tue Dec 28 12:45:55 2004 +++ pear/RDF_RDQL/docs/examples/custom_rdql_test.php Tue May 24 07:28:02 2005 @@ -42,12 +42,12 @@ if (!isset($_POST['submit']) OR (strlen($_POST['query_string']) > 1000)) { // Show error message if the rdf is too long if ((isset($_POST['submit']) AND (strlen($_POST['query_string']) > 1000))) { - echo "<center><a href='" . $HTTP_SERVER_VARS['PHP_SELF'] . "'><h2>Go back to input form.</h2></a></center>"; + echo "<center><a href='" . $_SERVER['SCRIPT_NAME'] . "'><h2>Go back to input form.</h2></a></center>"; echo "<center><p class='rdql_comment'>We're sorry, but your RDQL query is bigger than the allowed size of 1000 characters</p></center>"; } ; ?> -<form method="post" action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; +<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>"> Paste an <a href="http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/rdql_grammar.htm">RDQL</a> query string into the text field below. In the FROM clause you can indicate an URL or a path for local RDF document to be queried. @@ -94,7 +94,7 @@ require_once 'RDF/Model/Memory.php'; require_once 'RDF/RDQL.php'; - echo "<center><a href='" . $HTTP_SERVER_VARS['PHP_SELF'] . "'> + echo "<center><a href='" . $_SERVER['SCRIPT_NAME'] . "'> <h2>Go back to input form.</h2></a></center>"; if (isset($_POST['query_string'])) {

« previous php.pear.cvs (#32100) next »