Skip to main content
Participant
March 11, 2011
Question

David Powers cs5 with php...Zend

  • March 11, 2011
  • 1 reply
  • 1358 views

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 has been closed for replies.

1 reply

Known Participant
March 11, 2011

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?

bmruiz12Author
Participant
March 12, 2011

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.

Known Participant
March 12, 2011

So is that the only one. My teacher says that I didn't need to install it on my machine if I used this domain, unfortunately he's 2 hours away and can't help.


I know it looks confusing but its not really. Godaddy can not see what is on your machine at home. Zend has to be on the godaddy server. What most people do is create a development envirnment locally - then install a web server, database, php and a framework (in your case Zend). Do all the work locally and then copy files to the remote (godaddy). The trick is to minic the remote envionment locally.

http://framework.zend.com/wiki/display/ZFDEV/Installing+Zend+Framework+on+Windows a link to install zend locally.

But do yourslef a favor and take a look at http://www.zend.com/en/products/server-ce/index - the Zend Community Server. It includes copies of Apache, mysql, PHP and Zend (and PEAR and many mods). You install and have everything running.

Remember Zend has to be running remotely so the page you create with zend locally runs on godaddy's server. So call godaddy and ask them.