Un Saludo
Código PHP:
<?php
function __autoload($className)
{
//Change to the root path
set_include_path('../');
$className = str_replace('\\', '/', $className);
//Core
$className = str_replace('Kiwwito/TuentiAPI', 'Core', $className);
//Kiwwito libs
$className = str_replace('Kiwwito', 'Core/Lib', $className);
//Class load
$className = $className . '.class.php';
include_once $className;
}
try
{
$tapi = new KiwwitoTuentiAPIBundle ('correo', 'contraseña');
$tapi->setStatus('Utilizando API);
$tapi->getFriends()->current()->sendMessage('contenido');
}
catch (Exception $e)
{
echo 'A ocurrido un error: . $e->getMessage();
}
?>
ESTE ES EL ERROR AL EJECUTARLO:
Código:
PHP Error Message Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/a6132516/public_html/indexphp.php on line 6 Parse error: syntax error, unexpected T_STRING in /home/a6132516/public_html/indexphp.php on line 6