Re: HELP - Can't change Include Path



cybervigilante wrote:
On May 2, 3:44 pm, shimmyshack <matt.fa...@xxxxxxxxx> wrote:
On May 2, 11:22 pm, cybervigilante <cybervigila...@xxxxxxxxx> wrote:

I can't seem to change the include path on my local winmachine no
matter what I do.
if you are running php as an apache module then you need to modify the
php.ini that is in the apache/bin directory,

Okay, I did that. Good idea - wish I'd thought of it.;')
Unfortunately, my prog is still choking on a Pear. Error message is:

Warning: include(Mail.php) [function.include]: failed to open stream:
No such file or directory in C:\wamp\www\test\test.php on line 13
Warning: include() [function.include]: Failed opening 'Mail.php' for
inclusion (include_path='.;C:\wamp\php\PEAR') in C:\wamp\www\test
\test.php on line 13
Warning: include(Mail\mime.php) [function.include]: failed to open
stream: No such file or directory in C:\wamp\www\test\test.php on line
14
Warning: include() [function.include]: Failed opening 'Mail\mime.php'
for inclusion (include_path='.;C:\wamp\php\PEAR') in C:\wamp\www\test
\test.php on line 14
Fatal error: Class 'Mail_mime' not found in C:\wamp\www\test\test.php
on line 25

Here is my php.ini path for the php.ini in both php and sql dirs:
include_path = ".;C:\wamp\php\PEAR"

Here is the actual winpath to the pear directory: C:\wamp\php\PEAR

No difference. I'm stumped. Below is the test prog using Pear email,
which did work on the remote linux server and sent me some mail
wihtout the error msgs. Although my gmail acct picked the mail up as
an attachment instead of as html - but gmail is really wierd about
html email. I still haven't figured out what they accept, even though
I get a lot of html email from them, so something must work ;')
Frankly, I may abandon html email as a nuisance, but I need to test
pear with something to see if it works on my home system. If someone
has a simple illustrative test script using pear, that would help
since I can't send email from my home system anyway.

Oh, one other thing puzzled me about the prog below. I saw the html
message, which should be invisible, since it's inside a php code
block. Could be a php error,which brings up another point. I don't see
php errors online, like I do off. How do I make them display online
since that's the only place I have pear working so far, and I need to
see errors.

Just checked Yahoo mail, and the css formatted html came out fine.
Gmail making it an attachment must be a gmail bug, although I'd like
to know how I am getting html email from gmail, then ;')

Also, although the mail arrived, some echo statements I put in here
and there for a simpl trace (since deleted) didn't show up.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>PHP Guestbook</title>
</head>
<body>

<h1>mailtest</h1>

<?php

include('Mail.php');
include('Mail\mime.php');


$HTMLmsg = "<h2 style='color:red; background-color: Fuchsia; border:
thick
dotted; border-color: Blue; font-family: sans-serif; font-style:
italic; margin-left: 20%; padding: 20; margin-right: 30%;'>Test of
formatted email from <br>Just Health Now server, with html headers</
h2>";

$txtmsg = "Test of formatted email for Just Health Now server,
without html headers";

$message = new Mail_mime();

$message->setHTMLBody($HTMLmsg);
$message->setTXTBody($txtmsg);

$body = $message->get();
echo("after body = message get");
$extraheaders = array("From"=>"cybervigilante@xxxxxxxxx",
"Subject"=>"Test of HTML email");
$headers = $message->headers($extraheaders);
$mail = Mail::factory("mail");


$mail->send("cybervigilante@xxxxxxxxx", $headers, $body);

?>

</body>
</html>








What does phpinfo() show for your php.ini file?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: HELP - Cant change Include Path
    ... my prog is still choking on a Pear. ... Here is my php.ini path for the php.ini in both php and sql dirs: ... Although my gmail acct picked the mail up as ... I get a lot of html email from them, ...
    (comp.lang.php)
  • RE: apache13_modssl + mod_php4 + php4-extenstions +mysql323-*+myphpadmin = ...
    ... XFree86-libraries-4.4.0_3 XFree86-4 libraries and headers ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... pear-Archive_Tar-1.2 PEAR tar file management class ... php4-domxml-4.3.10_2 The domxml shared extension for php ...
    (freebsd-questions)
  • Re: post an array into another site
    ... Who told you that you do not get help from developers that contribute to ... bug in PHP itself that affected all code that deals with socket connections. ... PEAR always provide prompt support. ... I am sorry but I disagree that PEAR error handling is any good because ...
    (php.general)
  • Problems installing php5-pear (zend_hash.c(678) : ht=0x8181f10 is already destroyed)
    ... I'm having problems getting pear installed with apache2, PHP5, mysql, ... Other php pages load fine. ... Is it better to install just PHP5 and then get PEAR ... php5-bz2-5.0.4_1 The bz2 shared extension for php ...
    (freebsd-questions)
  • Re: HELP - Cant change Include Path
    ... Here is my php.ini path for the php.ini in both php and sql dirs: ... which did work on the remote linux server and sent me some mail ... Although my gmail acct picked the mail up as ... an attachment instead of as html - but gmail is really wierd about ...
    (comp.lang.php)