I have bought your book "Building Flickr Applications with PHP". I believe that PEAR is already installed on my Windows xampp setup as I see a folder full of files called "pear" as a subfolder in my xampp folder (C:\xampp\php\pear). I also see C:\xampp\php\pear\PEAR.
The description of the installation in your book mentions I need to download a file called phlickr.tgz. I only see a file called "RELEASE_0_2_8.tar.gz" on sourceforge.net which I downloaded and tried to work with as described in your book, but I am getting the error messages mentioned below.
When I run "pear install C:\Users\MyName\Downloads\RELEASE_0_2_8.tar.gz" I get the following error message:
ERROR: file C:\Users\MyName\AppData\Local\Temp\pear\tmp5D55.tmp\Phlickr-0.2.7\Framework\IList.php does not exist
When I then run phlickr_test.php in C:\xampp\htdocs\development with the file phlickr_test.php in the C:\xampp\htdocs\development folder I get the following error message:
Warning: require_once(Phlickr/Api.php): failed to open stream: No such file or directory in C:\xampp\htdocs\development\phlickr_test.php on line 2 Fatal error: require_once(): Failed opening required 'Phlickr/Api.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\development\phlickr_test.php on line 2
I tried (to no avail) two different "include_path" statements in php.ini as follows:
include_path=".;C:\xampp\php\pear" and include_path=".;C:\xampp\php\pear\PEAR"
Any help to get Phlickr to work is much appreciated.
Log in to post a comment.