Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- use require_once instead of include

git-svn-id: http://svn.php.net/repository/pear/packages/RDF_N3/trunk@175812 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit d033e21b8448bf9a9e194e8ec307d31d653b4562 1 parent 49a628e
Lukas Smith authored

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 docs/examples/custom_test_n3.php
9 docs/examples/custom_test_n3.php
@@ -185,8 +185,9 @@ function echo_string_with_linenumbers ($input_string)
185 185 // Process RDF
186 186 // (if submitted and RDF smaller than 10000 chars)
187 187 // ///////////////////////////////////////////////////////////////
188   - include 'RDF.php';
189   - include 'RDF/N3/Parser.php';
  188 + require_once 'RDF.php';
  189 + require_once 'RDF/N3/Parser.php';
  190 + require_once 'RDF/Model/Memory.php';
190 191 // Prepare RDF
191 192 $rdfInput = $_POST['RDF'];
192 193 // Show the submitted RDF
@@ -240,7 +241,7 @@ function echo_string_with_linenumbers ($input_string)
240 241 }
241 242 // Reify the model if checked in submitted form
242 243 if (isset($_POST['reify']) and $_POST['reify'] == "1") {
243   - $model = &$model->reify();
  244 + $model =& $model->reify();
244 245 echo "<BR><BR><h3>Your original model has been refied.</h3><BR>";
245 246 } ;
246 247 // Output Triples as Table if checked in submitted form
@@ -266,7 +267,7 @@ function echo_string_with_linenumbers ($input_string)
266 267 $ser->configUseQnames(false);
267 268 $msg_string .= 'Without Qnames ';
268 269 } ;
269   - $rdf = &$ser->serialize($model);
  270 + $rdf =& $ser->serialize($model);
270 271 echo "<p><BR><h3>Serialization of input model";
271 272 if (isset($msg_string)) echo " (Options: " . $msg_string . ")";
272 273 echo ":</h3>";

0 comments on commit d033e21

Please sign in to comment.
Something went wrong with that request. Please try again.