From: Reini U. <ru...@x-...> - 2002-09-02 15:02:24
|
Lawrence Akka schrieb: > Added Files: > RPC2.php > // Intercept GET requests from confused users. Only POST is allowed here! > // There is some indication that $HTTP_SERVER_VARS is deprecated in php > 4.1.0 > // in favour of $_Server, but as far as I know, it still works. > if ($HTTP_SERVER_VARS['REQUEST_METHOD'] != "POST") > { > die('This is the address of the XML-RPC interface. You must use XML-RPC calls to access information here'); > } FYI: php > 4.1.0 will support $HTTP_SERVER_VARS and friends. The superglobals $_SERVER and friends are just handy references to those, because they are always global. Because this code is global, it is okay. In a function you would have to declare it global. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |