Hi all,

Ive just uploaded the zend framework to my server and need help setting the include path. I thought i had it set correctly, but its just not finding the classes.

heres what ive done

<?php
// global variables
ini_set("include_path", "/library");
?>

<?php 
require_once ('Zend/Mail/Mail.php');
?>
<?php
$mail = new Zend_Mail();
$mail->setBodyText('This is an example message body');
$mail->setFrom('chris@example.com', 'Chris Hope');
$mail->addTo('john@example.com', 'John Smith');
$mail->setSubject('This is an example subject');
$mail->send();
?>

regards

paul

The code below is tested and it works fine.

<?php
ini_set('include_path', 'library/');
include('library/Zend/Mail.php');
?>
<?php
$mail = new Zend_Mail();
$mail->setBodyText('This is an example message body');
$mail->setFrom('chris@example.com', 'Chris Hope');
$mail->addTo('prakash@sourcebits.com', 'Prakash');
$mail->setSubject('This is an example subject');
$mail->send();
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.