Skip to main content
Participant
Mar 11, 2011 5:19 AM UTC
Question

David Powers cs5 with php...Zend

This one is aimed for David Powers. We are using your book for my advanved programming class. I continually have problems because they had us buy a domain instead of the one the book does it. At this point I'm on page 222ish, installing Zend. Obviously I'm using dreamweaver and my domain is with godaddy.com. I'm doing the section where you are are installing the library. I've got the library.php with no errors, I'm connected to my domain, and I have the zend file inside my local site folder. I've tried in the C drive but I cotinually get the same error:

Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/79/7340479/html/library.php on line 4

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library') in /home/content/79/7340479/html/library.php on line 4

I've tried putting the zend folder in c, desktop, in side local site folder and same thing everytime. Any help would be appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Known Participant
Mar 11, 2011 6:57 AM UTC

Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.

First, are you trying to install zend at godaddy?

Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in /home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines?

Translate
bmruiz12Author
Participant
Mar 12, 2011 1:11 AM UTC

Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.

First, are you trying to install zend at godaddy?

Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines

I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...

the code I'm using is:

<?php

$library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';

set_include_path(get_include_path() . PATH_SEPARATOR . $library);

require_once('Zend/Loader/Autoloader.php');

$loader = Zend_Loader_Autoloader::getInstance();

if ($loader) {

echo 'OK';

} else {

echo 'We have a problem';

}

I'm followed the book step by step but...

when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

Translate
Known Participant
Mar 12, 2011 1:55 AM UTC

Ok.. first you should run a local copy of your server. That means installing PHP and Apache (or use IIS). The web server (godaddy) can't see Zend on your local machine. It can see Zend installed on it's machine (or network).

Installing PHP and a server (and database) are easy peasy now. Take a look at http://www.microsoft.com/web/platform/phponwindows.aspx. (I'm assuming you are on windows).

Translate