Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

David Powers cs5 with php...Zend

New Here ,
Mar 10, 2011 Mar 10, 2011

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.

TOPICS
Server side applications
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 10, 2011 Mar 10, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 11, 2011 Mar 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

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 11, 2011 Mar 11, 2011

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 11, 2011 Mar 11, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 11, 2011 Mar 11, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 13, 2011 Mar 13, 2011
LATEST

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines