Bug #17486 [Com]: simplexml_load_file()
| From: | ajtrichards@gmail.com | Date: | Fri, 11 Jun 2010 22:44:13 +0000 |
| Subject: | Bug #17486 [Com]: simplexml_load_file() | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3923@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17486&edit=1
ID: 17486
Comment by: ajtrichards@gmail.com
Reported By: ajtrichards at gmail dot com
Summary: simplexml_load_file()
Status: Open
Type: Bug
Package: Services_Twitter
Operating System: Windows XP
Package Version: 0.6.1
PHP Version: 5.3.2
Roadmap Versions:
New Comment:
I have now got this to work only by editing the Twitter.php file.
FROM:
$xmlApi = simplexml_load_file($d . 'api.xml');
TO:
$xmlApi = simplexml_load_file('api.xml');
I've then inclucded the api.xml file in the same directory as my source
file
Previous Comments:
------------------------------------------------------------------------
[2010-06-11 22:25:41] alex__richards
Description:
------------
Copied your example in the documentation folder.
Recieved the following error:
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O
warning : failed to load external entity
"file:///C:/PHP/PEAR/Services/../data/api.xml" in
C:\PHP\PEAR\Services\Twitter.php on line 569
Test script:
---------------
<?php
require_once 'Services/Twitter.php';
$username = 'alex__richards';
$password = '**********';
try {
$twitter = new Services_Twitter($username, $password);
$msg = $twitter->statuses->update("A test update....");
print_r($msg);
}catch(Services_Twitter_Exception $e) {
echo $e->getMessage();
}
Expected result:
----------------
Status updated
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17486&edit=1