Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2007, 12:27 AM
Junior Member
 
Join Date: Aug 2007
Posts: 4
Default I'm missing something

I have php 5 set up on my OS X system, and can perform basic PHP functions.

PHP lives in /usr/local/php5. The php.ini file include_path declaration is:

include_path=".:/lib/php:/Users/dramsey/ZendFramework-1.0.1/library/Zend"

...since I have the Zend library in my user directory.

The include path shows up correctly when I execute phpinfo.

However, I'm unable to run any of the Zend tests or samples. All result in a blank page (no HTML) with no indication of what the problem is.

For example, how would I run the amazon-search test? It includes the statement:

require_once 'Zend/Service/Amazon/Query.php';

Hm. Well, my search path is set to the Zend directory, so maybe if I edit it to:

require_once 'Service/Amazon/Query.php';

Nope. Still get a blank page. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-03-2007, 12:53 AM
Junior Member
 
Join Date: Aug 2007
Posts: 4
Default

Further info: I downloaded the Zend Studio IDE and stepped through the Amazon search example in the debugger. All the HTML was generated and nothing seemed wrong. I could copy the HTML from the debug output window, paste it into an HTML file, and view it in a browser.

But evaluating the page from within a browser results in the same blank page...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-03-2007, 01:23 AM
Junior Member
 
Join Date: Aug 2007
Posts: 4
Default

OK, I turned on errors so I can see the problems. It's:

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Service/Amazon/Query.php' (include_path='.:/usr/local/php5:~/ZendFramework-1.0.1/library/Zend') in /Users/dramsey/Sites/amazon-search.php on line 6

The thing is, Zend/Service/Amazon/Query.php does exist. Removing the initial "Zend/" from the require_once statement has no effect.

My include path looks correct as best I can tell, but obviously something's wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-08-2007, 07:52 AM
Member
 
Join Date: Aug 2007
Location: Tarnow/Krakow, Poland, EU
Posts: 30
Default

The problem is in your include_path:
Code:
.:/usr/local/php5:~/ZendFramework-1.0.1/library/Zend
~ is a standard unix users home directory. For you it's /Users/dramsey, but for your web server (e.g. Apache) it would be different. Try include with absolute path or check in your php.ini if include_path is given with ~ or with /Users/dramsey.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-08-2007, 05:34 PM
Junior Member
 
Join Date: Aug 2007
Posts: 4
Default

Quote:
Originally Posted by borec View Post
The problem is in your include_path:
Code:
.:/usr/local/php5:~/ZendFramework-1.0.1/library/Zend
~ is a standard unix users home directory. For you it's /Users/dramsey, but for your web server (e.g. Apache) it would be different. Try include with absolute path or check in your php.ini if include_path is given with ~ or with /Users/dramsey.
...and that was it. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:56 PM.