|
|||
|
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? |
|
|||
|
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... |
|
|||
|
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. |
|
|||
|
The problem is in your include_path:
Code:
.:/usr/local/php5:~/ZendFramework-1.0.1/library/Zend |
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|