#4 phlickr installation problem on windows xampp platform

v1.0 (example)
pending
5
2015-02-08
2014-04-12
No

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.

Discussion

  • andrew morton

    andrew morton - 2014-04-13

    It looks like the 0.2.8 package was generated incorrectly. I've put up a new file so please give that a try and see if it works for you.

     
  • andrew morton

    andrew morton - 2014-04-13
    • status: open --> pending
     
  • scolaric

    scolaric - 2014-12-03

    I have a similar problem. I have also bought your book "Building Flickr Applications with PHP". I installed xampp. I have a problem when i want to run phlickr_test.php. I get the error code:

    Fatal error: Uncaught exception 'Phlickr_ConnectionException' [22]: Request failed. The requested URL returned error: 403 Forbidden URL: http://flickr.com/services/rest/?api_key=58ac590250ef4eeb81e6d853ee942034&message=It+worked%21&method=flickr.test.echo&api_sig=2f9c658158205950d1cf39f6be2af868 Stack trace: #0 C:\xampp\php\pear\Phlickr\Request.php(322): Phlickr_Request::submitHttpPost('http://flickr.c...') #1 C:\xampp\php\pear\Phlickr\Api.php(578): Phlickr_Request->execute(true) #2 C:\xampp\htdocs\Flickr\phlickr_test.php(9): Phlickr_Api->executeMethod('flickr.test.ech...', Array) #3 {main} thrown in C:\xampp\php\pear\Phlickr\Request.php on line 166

    I replaced at the Api.php file const REST_ENDPOINT_URL = 'http://flickr.com/services/rest/';

    with

    https://api.flickr.com/services/rest/

    but the resault is the same.

    Do you know maybe where is the problem. I would really need some help.

     

Log in to post a comment.