Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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';
}
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.
Copy link to clipboard
Copied
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).
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I was trying to accomplish this without having to load apache or anything on my pc...it can be accomplished as shown here http://webhole.net/2009/06/11/how-to-install-zend-on-your-shared-hosting-plan/,,,maybe next edition can of book can also include how to do it through share hosting aspect as well...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more