[PHP] imap problem

2003-08-26 Thread Moritz Steiner

I downloaded imap as indicated on php.net/imap, compiled it, and
recompiled php with --with=imap. Ok  everything worked fine, no error
messages, but when I call the function imap_open() I get the following:

Fatal error: Call to undefined function: imap_open() in
/usr/apache/htdocs/mail.php on line 43

Does anyone know where the error could be?
Moritz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



AW: [PHP] imap problem

2003-08-26 Thread Moritz Steiner
yes

-Ursprüngliche Nachricht-
Von: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 26. August 2003 16:23
An: Moritz Steiner; PHP
Betreff: RE: [PHP] imap problem

[snip]
I downloaded imap as indicated on php.net/imap, compiled it, and
recompiled php with --with=imap. Ok  everything worked fine, no error
messages, but when I call the function imap_open() I get the following:

Fatal error: Call to undefined function: imap_open() in
/usr/apache/htdocs/mail.php on line 43

Does anyone know where the error could be?
[/snip]

Did you restart Apache?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] pear problem

2003-08-26 Thread Moritz Steiner
I've a problem with pear, only the DB.php and the Mail.php are working,
all the others I installed don't work. 

Installed packages:
===
Package  Version  State
DB   1.5.0RC1 stable
HTTP_Request 1.1.1stable
Mail 1.1.1stable
Mail_Mime1.2.1stable
Net_DIME 0.3  beta
Net_URL  1.0.10   stable
SOAP 0.8RC1   beta

When I have a look into the directory, it's like that:

[lxcmsb3] /usr/php/pear/share/pear > l
total 72
drwxr-xr-x6 root root 4096 Aug 26 16:24 SOAP
drwxr-xr-x6 root root 4096 Aug 26 16:24 docs
drwxr-xr-x2 root root 4096 Aug 26 16:24 HTTP
drwxr-xr-x2 root root 4096 Aug 26 16:24 Net
drwxr-xr-x4 root root 4096 Aug 26 16:24 tests
drwxr-xr-x2 root root 4096 Aug 26 16:24 Mail
drwxr-xr-x3 root root 4096 Aug 26 16:24 data
-rw-r--r--1 root root 7331 Aug 26 16:23 Mail.php
drwxr-xr-x2 root root 4096 Aug 26 16:23 DB
-rw-r--r--1 root root29165 Aug 26 16:23 DB.php



In this code snipplet the first three lines work very well, but when I
try to access a subdirectory it crashes... 
1 require 'DB.php';
2 $db = DB::connect('mysql://mysql:[EMAIL PROTECTED]/mysql);
3 require 'Mail.php';
4 require 'Mail/mime.php';

It's exactly the same with require 'SOAP/Client.php' instead of line 4


Please help me.
Moritz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



AW: [PHP] Re: pear problem

2003-08-27 Thread Moritz Steiner
Hi,
yes, the directory the /usr/php/pear/share/pear  is included, the error message is:

Warning: main(PEAR.php): failed to open stream: No such file or directory in 
/usr/php/pear/share/pear/SOAP/Base.php on line 37

Fatal error: main(): Failed opening required 'PEAR.php' 
(include_path='/usr/php/pear/share/pear') in /usr/php/pear/share/pear/SOAP/Base.php on 
line 37



Moritz

-Ursprüngliche Nachricht-
Von: Catalin Trifu [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 26. August 2003 16:53
An: [EMAIL PROTECTED]
Betreff: [PHP] Re: pear problem

Hi,

Did you added the /usr/php/pear/share/pear in the php.ini
include_path option ?
Besides the mime is part of Mail_Mime extension and
SOAP needs some extensions too (don't remember exactly which)
so check if all requirements are met.
btw! what's the error message when it crashes ?

Cheers,
Catalin

"Moritz Steiner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I've a problem with pear, only the DB.php and the Mail.php are working,
all the others I installed don't work.

Installed packages:
===
Package  Version  State
DB   1.5.0RC1 stable
HTTP_Request 1.1.1stable
Mail 1.1.1stable
Mail_Mime1.2.1stable
Net_DIME 0.3  beta
Net_URL  1.0.10   stable
SOAP 0.8RC1   beta

When I have a look into the directory, it's like that:

[lxcmsb3] /usr/php/pear/share/pear > l
total 72
drwxr-xr-x6 root root 4096 Aug 26 16:24 SOAP
drwxr-xr-x6 root root 4096 Aug 26 16:24 docs
drwxr-xr-x2 root root 4096 Aug 26 16:24 HTTP
drwxr-xr-x2 root root 4096 Aug 26 16:24 Net
drwxr-xr-x4 root root 4096 Aug 26 16:24 tests
drwxr-xr-x2 root root 4096 Aug 26 16:24 Mail
drwxr-xr-x3 root root 4096 Aug 26 16:24 data
-rw-r--r--1 root root 7331 Aug 26 16:23 Mail.php
drwxr-xr-x2 root root 4096 Aug 26 16:23 DB
-rw-r--r--1 root root29165 Aug 26 16:23 DB.php



In this code snipplet the first three lines work very well, but when I
try to access a subdirectory it crashes...
1 require 'DB.php';
2 $db = DB::connect('mysql://mysql:[EMAIL PROTECTED]/mysql);
3 require 'Mail.php';
4 require 'Mail/mime.php';

It's exactly the same with require 'SOAP/Client.php' instead of line 4


Please help me.
Moritz

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mail mime attachment

2003-08-27 Thread Moritz Steiner
Hi,
has somebody a working code example of sending a mail with attachment,
my code is unfortunately not working...



My Code:

require 'Mail.php';
require 'Mail/mime.php';

$headers['From']='[EMAIL PROTECTED]';
$headers['Subject']='mueedddee';
$body = 'brauc ich nicht';
$to = "[EMAIL PROTECTED]";

$mime = new Mail_mime;
$mime->setTXTBody($body);
$html = 'this is  html  ';
$mime->setHTMLBody($html);

$file = 'my.cnf.txt';
$mime->addAttachment($file, 'text/plain');

$headers = $mime->headers($headers);
$body = $mime->get();

$message =& Mail::factory('mail');
$message->send($to,$headers,$body);



The mail I receive:


--=_7c5403d1e75e31c069963519ac27e8a2
Content-Type: multipart/alternative;
boundary="=_70ce8099b4ea871773cbe46983db1bb5"

--=_70ce8099b4ea871773cbe46983db1bb5
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

brauc ich nicht
--=_70ce8099b4ea871773cbe46983db1bb5
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

this is  html  
--=_70ce8099b4ea871773cbe46983db1bb5--
--=_7c5403d1e75e31c069963519ac27e8a2
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="my.cnf.txt"

IyBteXNxbCBjb25maWcgZmlsZS4KCiMgVGhpcyB3aWxsIGJlIHBhc3NlZCB0byBhbGwgbXlz
cWwg
Y2xpZW50cwpbY2xpZW50XQojIFBvcnQgbnVtYmVyIHRvIHVzZSBmb3IgY29ubmVjdGlvbgpw
b3J0
PTMzMDYKIyBTb2NrZXQgZmlsZSB0byB1c2UgZm9yIGNvbm5lY3Rpb24KI3NvY2tldD1NeVNR
TAoK
IyBUaGUgTXlTUUwgc2VydmVyCgpbbXlzcWxkXQojIFBvcnQgbnVtYmVyIHRvIHVzZSBmb3Ig
Y29u
bmVjdGlvbgpwb3J0CQkJPQkzMzA2CiMgVGhlIG51bWJlciBvZiBzaW11bHRhbmVvdXMgY2xp
ZW50
cyBhbGxvd2VkCm1heF9jb25uZWN0aW9ucwkJPQkxMDAwCiMgVGhlIG51bWJlciBvZiBvdXRz
dGFu
ZGluZyBjb25uZWN0aW9uIHJlcXVlc3RzIE15U1FMIGNhbiBoYXZlLiAKIyBUaGlzIGNvbWVz
IGlu
dG8gcGxheSB3aGVuIHRoZSBtYWluIE15U1FMIHRocmVhZCBnZXRzIHZlcnkgbWFueSAKIyBj
b25u
ZWN0aW9uIHJlcXVlc3RzIGluIGEgdmVyeSBzaG9ydCB0aW1lLgpiYWNrX2xvZwkJPQkxMDAK
IyBU
aGUgc2l6ZSBvZiB0aGUgYnVmZmVyIHVzZWQgZm9yIGluZGV4IGJsb2Nrcy4gSW5jcmVhc2Ug
dGhp
cyB0byBnZXQgYmV0dGVyIAojIGluZGV4IGhhbmRsaW5nIChmb3IgYWxsIHJlYWRzIGFuZCBt
dWx0
aXBsZSB3cml0ZXMpIHRvIGFzIG11Y2ggYXMgeW91IGNhbiBhZmZvcmQKa2V5X2J1ZmZlcl9z
aXpl
CQk9CTUxMk0KIyBUaGUgbnVtYmVyIG9mIG9wZW4gdGFibGVzIGZvciBhbGwgdGhyZWFkcwp0
YWJs
ZV9jYWNoZQkJPQk1MTIKIyBQZXJtaXRzIHRoZSBhcHBsaWNhdGlvbiB0byBnaXZlIHRoZSB0
aHJl
YWRzIHN5c3RlbSBhIGhpbnQgZm9yIHRoZSAKIyBkZXNpcmVkIG51bWJlciBvZiB0aHJlYWRz
IHRo


Thanks,
Moritz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php 5 - mysql replication

2003-09-01 Thread Moritz Steiner
I've heard that php 5 is going to support mysql replication, has anyone
more details about it, it is already working in the beta release?

Moritz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



AW: [PHP] php 5 - mysql replication

2003-09-01 Thread Moritz Steiner
If php knows about replication, it can balance the select querys on the different 
servers...




-Ursprüngliche Nachricht-
Von: Curt Zirzow [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 1. September 2003 19:30
An: [EMAIL PROTECTED]
Betreff: Re: [PHP] php 5 - mysql replication

* Thus wrote Moritz Steiner ([EMAIL PROTECTED]):
> I've heard that php 5 is going to support mysql replication, has anyone
> more details about it, it is already working in the beta release?

Can you enlighten me as to what special things php needs to do
replication?

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] installing php5

2003-09-03 Thread Moritz Steiner
Hi,
I'm trying to install php5 beta, the configure functions well, but
during the make I've the following error:

ext/mysqli/mysqli_api.lo: In function `zif_mysqli_stmt_data_seek':
/localscratch/downloads/php5-200309031130/ext/mysqli/mysqli_api.c:1694:
undefined reference to `mysql_stmt_data_seek'
ext/mysqli/mysqli_api.lo: In function `zif_mysqli_stmt_num_rows':
/localscratch/downloads/php5-200309031130/ext/mysqli/mysqli_api.c:1714:
undefined reference to `mysql_stmt_num_rows'
ext/mysqli/mysqli_fe.lo(.data.rel+0xc50): undefined reference to
`all_args_by_ref'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1



Has anyone an idea, what I could do?

Moritz

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php