hi well, judging from the source code you should try the following functions: vpopmail_add_user() also read the file in ext/vpopmail in the php4 source tree... greetz & hope it helps Flavio On Fri, Sep 21, 2001 at 10:53:54AM +0200, The Guyver wrote: > Sorry for bothering you guys again, but I've recompiled PHP/Apache with > vpopmail support in > (I checked with phpinfo() and I got this: > vpopmail > vpopmail support enabled > vpopmail version 4.10.30 > vpopmail uid/gid php uid/gid/euid/egid 89/89 99/99/99/99 > vpopmail dir /home/vpopmail > vpopmail vadddomain /home/vpopmail/bin/vadddomain > vpopmail vdeldomain /home/vpopmail/bin/vdeldomain > vpopmail vaddaliasdomain /home/vpopmail/bin/vaddaliasdomain > > so I guess everything should be working) > > BUT when I call the vpopmail functions (like vadduser() ) I get this error: > > Fatal error: Call to undefined function: vadduser() in > /home/www/test/scripts/mail_add.php on line 9 > > Am I missing something? I though once compiled in those functions were > already present, how do I define them. > Please help me out, I feel very close to the solution but still cannot reach > it. > Thanks again to anyone answering! > > Guyver > > ----- Original Message ----- > From: "The Guyver" <[EMAIL PROTECTED]> > To: "Sean C Truman" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, September 21, 2001 9:51 AM > Subject: Re: Urgent Help, please! > > > > Don't worry I wasn't going to ask you to code my script :) > > > > I'll try to recompile PHP and see what happens, hope it really works out! > > Thanks anyway for your precious help and I wish to thank all the people > > that answered my message, even though I tried suid the scripts and didn't > > work out. > > > > I'll let you know if this PHP recompile will do. > > > > Best regards, > > Guyver > > > > ----- Original Message ----- > > From: "Sean C Truman" <[EMAIL PROTECTED]> > > To: "guyver" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Friday, September 21, 2001 12:36 AM > > Subject: Re: Urgent Help, please! > > > > > > > Guyver, > > > > > > I am sorry I can't write the script for you.. Just configure PHP > > > with --with-vpopmail (Should find the directory automatically) compile > PHP > > > and Apache Again.. and Look at the vpopmail.h and vauth.h for the > callable > > > functions and there parameters. > > > > > > Sean > > > ----- Original Message ----- > > > From: "guyver" <[EMAIL PROTECTED]> > > > To: "Sean C Truman" <[EMAIL PROTECTED]> > > > Cc: <[EMAIL PROTECTED]> > > > Sent: Thursday, September 20, 2001 4:38 PM > > > Subject: Re: Urgent Help, please! > > > > > > > > > > Sean C Truman writes: > > > > > > > > > Brandon, > > > > > > > > > > If you configure PHP --with-vpopmail=/home/vpopmail you can > > call > > > the > > > > > vadduser() function from within your PHP script. This is one of the > > > reason > > > > > Ken created the API for vpopmail. > > > > > > > > > > Sean > > > > > > > > Wow, that sounds very interesting, could you please be more specific > > > > about it? I absolutely have to finish the script by tomorrow... :( > > > > > > > > So basically I should recompile my PHP simply adding > > > > --with-vpopmail=/home/vpopmail ?? > > > > > > > > I've checked the Inter7 website but there's nothing about it (or at > > least > > > > nothing that I could find) except on the Admin Guide I found a piece > of > > > text > > > > regarding vpopmail API but I thought it was only for C programs... am > I > > > > wrong? It says there is a library at ~vpopmail/lib/libvpopmail.a that > is > > > > linkable with C programs how do I link it to PHP? > > > > > > > > Thanks again for your patience. > > > > > > > > Best regards, > > > > Guyver > > > > > > > > > > > > > > > > > > > -- http://no-way.org/~fcu/
