Se llama Ptwix. es un nuevo componente PHP/AJAX para mostrar los tweets (ó mensajes de tu cuenta twitter) en tu página web.
Código PHP:
<?php
include("core/PtwiX.php");
$PtwiX=new PtwiX('second','usuario1','clave','http://www.twitter.com/usuario1/','/ptwix/cache/',PtwiX::$FRIENDS_TIMELINE,'silver-red');
$PtwiX->setDimension(400,300);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="ptwix/themes/silver-blue/PtwiX.css">
<title>Twitter PHP Ajax</title>
</head>
<body>
<?php
$PtwiX->printBox();
?>
</body>
</html>
Cuando lo ejecuto me da el siguiente error.
Código:
Warning: fopen(/ptwix/cache/secondcache.xml) [function.fopen]: failed to open stream: No such file or directory in D:\AppServ\www\ptwix\core\PtwiX.php on line 260 Warning: fwrite(): supplied argument is not a valid stream resource in D:\AppServ\www\ptwix\core\PtwiX.php on line 261 Warning: fclose(): supplied argument is not a valid stream resource in D:\AppServ\www\ptwix\core\PtwiX.php on line 262 Warning: fopen(/ptwix/cache/seconddate.dat) [function.fopen]: failed to open stream: No such file or directory in D:\AppServ\www\ptwix\core\PtwiX.php on line 264 Warning: fwrite(): supplied argument is not a valid stream resource in D:\AppServ\www\ptwix\core\PtwiX.php on line 265 Warning: fclose(): supplied argument is not a valid stream resource in D:\AppServ\www\ptwix\core\PtwiX.php on line 266 Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "/ptwix/cache/secondcache.xml" in D:\AppServ\www\ptwix\core\PtwiX.php on line 247 Warning: Invalid argument supplied for foreach() in D:\AppServ\www\ptwix\core\PtwiX.php on line 136