nadeemshafi9 Posted March 4, 2009 Share Posted March 4, 2009 my bootsrapping zend server is not workign because of /\ issues, any help ? i have tried making them all same and geting rid of the /../ here is the code: define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/')); set_include_path(APPLICATION_PATH . '/../library' . PATH_SEPARATOR . get_include_path()); require_once "Zend/Loader.php"; Zend_Loader::registerAutoload(); error Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\public\index.php on line 16 Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='C:\xampp\htdocs\application/../library;.;C:\xampp\php\pear\') in C:\xampp\htdocs\public\index.php on line 16 thanks Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/ Share on other sites More sharing options...
corbin Posted March 4, 2009 Share Posted March 4, 2009 I doubt .. is valid in the PATH setting. Try something like: set_include_path(realpath(APPLICATION_PATH . '/../library/') . PATH_SEPARATOR . get_include_path()); (You might just need the trailing / on library.) Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776727 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 still error Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='C:\xampp\htdocs\application/../library/;.;C:\xampp\php\pear\') in C:\xampp\htdocs\public\index.php on line 16 Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776731 Share on other sites More sharing options...
corbin Posted March 4, 2009 Share Posted March 4, 2009 Did you try the code involving realpath() on the thing? Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776734 Share on other sites More sharing options...
wildteen88 Posted March 4, 2009 Share Posted March 4, 2009 Change this define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/')); set_include_path(APPLICATION_PATH . '/../library' . PATH_SEPARATOR . get_include_path());[ to define('BASE' , realpath(dirname(__FILE__).'/../')); define('APPLICATION_PATH', BASE . '/application')); set_include_path(BASE. '/library' . PATH_SEPARATOR . get_include_path()); Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776735 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 Change this define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/')); set_include_path(APPLICATION_PATH . '/../library' . PATH_SEPARATOR . get_include_path());[ to define('BASE' , realpath(dirname(__FILE__).'/../')); define('APPLICATION_PATH', BASE . '/application')); set_include_path(BASE. '/library' . PATH_SEPARATOR . get_include_path()); this is teh error for yours Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='C:\xampp\htdocs/library;.;C:\xampp\php\pear\') in C:\xampp\htdocs\public\index.php on line 17 Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776747 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 I doubt .. is valid in the PATH setting. Try something like: set_include_path(realpath(APPLICATION_PATH . '/../library/') . PATH_SEPARATOR . get_include_path()); (You might just need the trailing / on library.) this time i used exactly ypour line looks better but still error Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='C:\xampp\htdocs\library;.;C:\xampp\php\pear\') in C:\xampp\htdocs\public\index.php on line 16 Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776752 Share on other sites More sharing options...
wildteen88 Posted March 4, 2009 Share Posted March 4, 2009 Okay. Post the full path to where you have zend framework and the layout of your zend framework folder. Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776759 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 zend framework is in C:/xampp/htdocs/library/ in library there is a folder called Zend i am in htdocs/public/index.php public is not the apache root htdocs is Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776763 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 i can get pear perfectly fine with require_once('Mail.php'); Strict Standards: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Mail.php on line 154 Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\public\index.php on line 17 Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='C:\xampp\htdocs\library;.;C:\xampp\php\pear\') in C:\xampp\htdocs\public\index.php on line 17 Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776772 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 ohhhhhhhhhhhhhhhhh pooooooooooooooopsticles, my loader.php isnt even there lol, smack me please Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776778 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 i thoghth the damn demo came with the framework, what is this tom foolery, sorry guys, and thanks Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776782 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 it worked exactly as they demoed it // APPLICATION_PATH is a constant pointing to our application/ subdirectory. // We use this to add our "library" directory to the include_path, so that // PHP can find our Zend Framework classes. define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/')); set_include_path(APPLICATION_PATH . '/../library' . PATH_SEPARATOR . get_include_path()); // AUTOLOADER - Set up autoloading. // This is a nifty trick that allows ZF to load classes automatically so // that you don't have to litter your code with 'include' or 'require' // statements. require_once "Zend/Loader.php"; Zend_Loader::registerAutoload(); Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776783 Share on other sites More sharing options...
nadeemshafi9 Posted March 4, 2009 Author Share Posted March 4, 2009 now for ext js, thats a helleva js library just let u know Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776786 Share on other sites More sharing options...
corbin Posted March 4, 2009 Share Posted March 4, 2009 >.< Link to comment https://forums.phpfreaks.com/topic/147992-solved-zend-framework-bootstrap-on-windows-dodgy/#findComment-776790 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.