- ini_set: documentation ( source)
- error_reporting: documentation ( source)
- extension_loaded: documentation ( source)
- dl: documentation ( source)
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
/**
Be sure you've both PEAR installed on your web server
and that all the required PEAR modules have been installed
*/
if(!extension_loaded("soap")){
dl("php_soap.dll");
}
ini_set("consultar.wsdl_cache_enabled","0");
$server = new SoapServer("consultar.wsdl");
function consultar(){
//aqui vamos a llamar a mysql
/*
$servername = "localhost";
$username = "dragonfly";
$password = "jorangamo_15";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";*/
return "hola";
}
$server->AddFunction("consultar");
$server->handle();
echo "si";
?>