Browse files

Preventing fatal errors from libraries getting included more than onc…

…e. Please remember to use require_once !
  • Loading branch information...
1 parent 1ecea97 commit 3ccbb6eb9d0e82bab70d37a9e25de7df533dbffe mjollnir_ committed Jan 13, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lams/testws.php
View
4 mod/lams/testws.php
@@ -1,8 +1,8 @@
Testing web service...
<BR>
<?php
- require("../../config.php");
- require($CFG->dirroot.'/lib/nusoap/nusoap.php');
+ require_once("../../config.php");
+ require_once($CFG->dirroot.'/lib/nusoap/nusoap.php');
$wsdl = "http://137.111.229.11:8080/lams/services/UserManagementService?wsdl";
$s = new soapclient($wsdl,true,false,false,false,false,2,3);

0 comments on commit 3ccbb6e

Please sign in to comment.