Check for location of active php.ini file
For local server/test server pi.php place in apache htdocs folder, then view by:
http://localhost/pi.php
for remote server place pi.php in web root folder (public_html/www), then view by e.g.,
http://betaagliproject.free-hostin.com/pi.php
Info found at Loaded Configuration File
remote server will be example: /usr/local/lib/php.ini
local/test server will be example: C:\Program Files\PHP\php.ini
Find document root folder on local server
echo $_SERVER['DOCUMENT_ROOT'];
?>
Save the above in a php file e.g., rootquery.php
For local server/test server pi.php place in apache htdocs folder, then view by:
http://localhost/rootquery.php
result should be like:
C:/Program Files/Apache Software Foundation/Apache2.2/htdocs
Activate include_path in php.ini
“;” delete this at front of statement to activate.
Add path to zend library using “;” when using Windows.
e.g.;
include_path = ".;C:\Program Files\PHP\PEAR;C:\Program Files\PHP\ZendFramework-1.10.6\library"
Test zend installation
require_once 'Zend/Mail.php';
$mail=new Zend_Mail();
echo 'it worked';
?>
Save above as checkzend.php and load it to root folder (public_html/www). Check by:
http://localhost/checkzend.php
Should show “it worked” when zend is working properly.
Thursday, September 2, 2010
Zend Installation
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment