Location: PHPKode > projects > phpMySOAP > phpMySOAP/index.php
<?php

/**
 * @author Korbinian Ober
 * @copyright 2010 tuxphr34k media software solutions
 * @version 0.1a
 */

// no errors in output (because output is gzipped)
error_reporting(~E_ALL & ~E_STRICT);
// include configuration
include_once('config.php');
// connect to database
$db = mysql_connect($config['db_host'], $config['db_user'], $config['db_pass']);
mysql_select_db($config['db_name'], $db);
global $config;
global $db;
// enable authentification if needed
if (isset($config['auth_fixed']) || isset($config['auth_sql']))
    include_once('authentification.php');
// setup special function loader
include_once('loader.php');
$class_code= fCreateClass();
eval($class_code);
// setup nusoap server
include_once('nusoap.php');
$server = new nusoap_server();
$server->configureWSDL($config['servicename'], $config['namespace']);
$server->wsdl->schemaTargetNamespace = $config['namespace'];
// gathering functions
fRegisterFunctionsForDirectory($server, $config['functions.d']);
// fetching post data
$HTTP_RAW_POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
// startup service
$server->service($HTTP_RAW_POST_DATA);
exit();
Return current item: phpMySOAP