Tuesday, June 28, 2011

Easy PHP Websites with the Zend Framework Part 4

The author Jason Gilmore offered these suggestions to get the script "seed.php" working on my machine. First, add the following line to the file "cli.php" after the opening php tag:

// this file is in ~/Sites/gamenomad/public/cli.php
// The line below was added by Jason. You'll have to
// adjust the base path for application.
// (The "/Users/frank/Sites" part of the path.)
//
set_include_path( "/Users/frank/Sites/gamenomad/library:" . ini_get( "include_path" ) );

Second, alter the path in line 9 of the file "seed.php":

/** This file is ~/Sites/gamenomad/application/scripts/seed.php
* You need to change the include path to that shown on line 9
* for the cli.php file where I have it.
*
*/

include "../../public/cli.php";

Of course, you also need an Amazon.com associates ID as well as a public and private key. See previous post.

Good luck!

0 comments: