jarret gabel wrote:
> i tried all sorts of include_paths in both the bootstrap and in my php.ini
> file in my WAMP setup... including a direct link to c:\wamp\www\index.php
> and c:\wamp\frameworks\Amf\Server.php
>
>
> My file structure is
>
> c:\wamp\www and Zend is in c:\wamp\frameworks
>
> c:\wamp\www\index.php
>
> my index.php file looks like this:
>
> <?php
>
> error_reporting(E_ALL|E_STRICT);
>
> ini_set("display_errors", "on");
>
> ini_set("include_path", ";../frameworks");
>
>
> require_once 'Zend/Amf/Server.php';
>
>
> require_once 'Tutorials.php';
>
> $server = new Zend_Amf_Server();
>
> $server->setClass("Tutorials");
>
> echo($server->handle());
>
> ?>
>
> i've tried ini_set("include_path", "file:///c:/wamp/frameworks") and a bunch
> of different incarnations
>
> the error looks like this:
>
> Warning: Unknown: failed to open stream: Permission denied in Unknown on
> line 0
>
> Fatal error: Unknown: Failed opening required 'C:/wamp/www/index.php'
> (include_path='.;C:\php5\pear') in Unknown on line 0
>
> thanks for your help!
really what phpscriptor said
adjusted to your file hierarchy should work ...
set_include_path(
dirname(__FILE__) . '../framewoks' <- here you should also add library or
Zend/library don't know how you unzip the framework
. PATH_SEPARATOR
. dirname(__FILE__) . '/app/models'
. PATH_SEPARATOR
. dirname(__FILE__) . '/app/forms'
. PATH_SEPARATOR
. get_include_path()
);
But normally your index.php should reside on the public(or html) directory of
your zfapp.
--
Bruno Friedmann