[PHP] Re: mail() again...

2002-09-02 Thread :B nerdy

what is recommended to use instead of mail() then?
cheers


"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> On 09/01/2002 02:30 AM, Liam Mackenzie wrote:
> > It seems nearly everyone has a problem with this function, probably
because
> > it relies on third party software.
>
> Yes, mail() is probably the most problematic of the frequently used
> functions of PHP. That can be for many reasons like the need for manual
> configuration of PHP, useless/meaningless or non-existing error messages
> produced by mail(), inconsistent documentation of mail() in PHP manual,
> installation problems of the MTA, configuration problems of the user
> networks, anti-spam measures, etc...
>
> The main difficulty is that it takes a lot of expertise to figure out
> which of these problems are affecting you.
>
>
> > It doesn't work.  That's my problem!
> > I'm using Sendmail as my MTA, not running as a Daemon as I have
POP3/SMTP
> > server running on the same
> > machine (eXtremail)
> > I'm starting Sendmail like this:
> > /usr/lib/sendmail -q1h
> >
> > When I do this:
> > $this = mail("[EMAIL PROTECTED]", "Subject", "Message goes here");
> > echo $this;
> >
> > The scripts hangs, and eventually my browser times out.
> > Is there any way I can get some error messages?  Or at least get it to
tell
> > me what on earth it's doing?
>
> Adding -v to the configuration of sendmail in php.ini may provide you a
> clue. Anyway, my guess is that your machine may not have a reverse DNS
> address. What is its IP?
>
>
> > There's nothing in any of my Apache logs, nothing in eXtremail's logs,
but I
> > get this in my syslog...
> >
> > Sep  1 15:28:01 nudenurd sendmail[19146]: g815S1fW019146: from=nobody,
> > size=63, class=0, nrcpts=1,
> > msgid=<[EMAIL PROTECTED]>,
> > relay=nobody@localhost
>
> It seems you are missing seting th return-path. Use mail() 5th argument.
>
>
> > Anyone got any ideas?  Anyone know if there's any docs on this kind of
> > thing?  I looked, I failed...
> > Or where I can get some information on where to get an alternate MTA
that
> > WORKS out of the box (or tar.gz)
>
> If all else fails, you may want to try this PHP class, with several
> variants that let you send messages by several methods besides mail(),
> like: using sendmail directly, using qmail-inject or even relay on
> specific SMTP server or even the most drastic measure that is to send
> messages directly to the receipient SMTP server.
>
> http://www.phpclasses.org/mimemessage
>
> --
>
> Regards,
> Manuel Lemos
>



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




[PHP] Re: mail() again...

2002-09-03 Thread :B nerdy

the mail server is hosted on the mail server. i think thats whats casuing
the problem.
how can i get around this?

i use unix. i remember a command to find out the smtp server.. anyone know?
cheers


"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> On 09/02/2002 07:59 AM, :B Nerdy wrote:
> > what is recommended to use instead of mail() then?
>
> It depends on what is your problem. In most cases mail will do taking
> some care that may be platform dependent like the header line break
> issues that have to be \r\n under Windows but under Unix with sendmail
> or wrappers you'd better use \n .
>
> Anyway, if you use the class I mentioned you will be able to choose
> exactly the transport method that suits better your needs and platform
> constraints.
>
> In your case, maybe using the sendmail sub-class will give you enough
> control because it lets you call sendmail program wherever it is in your
> disk passing any command line switches to better control its operation
> without depending on any php.ini (except for safe mode that has to be
off).
>
> Manuel Lemos
>
>
> > cheers
> >
> >
> > "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >>Hello,
> >>
> >>On 09/01/2002 02:30 AM, Liam Mackenzie wrote:
> >>
> >>>It seems nearly everyone has a problem with this function, probably
> >>
> > because
> >
> >>>it relies on third party software.
> >>
> >>Yes, mail() is probably the most problematic of the frequently used
> >>functions of PHP. That can be for many reasons like the need for manual
> >>configuration of PHP, useless/meaningless or non-existing error messages
> >>produced by mail(), inconsistent documentation of mail() in PHP manual,
> >>installation problems of the MTA, configuration problems of the user
> >>networks, anti-spam measures, etc...
> >>
> >>The main difficulty is that it takes a lot of expertise to figure out
> >>which of these problems are affecting you.
> >>
> >>
> >>
> >>>It doesn't work.  That's my problem!
> >>>I'm using Sendmail as my MTA, not running as a Daemon as I have
> >>
> > POP3/SMTP
> >
> >>>server running on the same
> >>>machine (eXtremail)
> >>>I'm starting Sendmail like this:
> >>>/usr/lib/sendmail -q1h
> >>>
> >>>When I do this:
> >>>$this = mail("[EMAIL PROTECTED]", "Subject", "Message goes here");
> >>>echo $this;
> >>>
> >>>The scripts hangs, and eventually my browser times out.
> >>>Is there any way I can get some error messages?  Or at least get it to
> >>
> > tell
> >
> >>>me what on earth it's doing?
> >>
> >>Adding -v to the configuration of sendmail in php.ini may provide you a
> >>clue. Anyway, my guess is that your machine may not have a reverse DNS
> >>address. What is its IP?
> >>
> >>
> >>
> >>>There's nothing in any of my Apache logs, nothing in eXtremail's logs,
> >>
> > but I
> >
> >>>get this in my syslog...
> >>>
> >>>Sep  1 15:28:01 nudenurd sendmail[19146]: g815S1fW019146: from=nobody,
> >>>size=63, class=0, nrcpts=1,
> >>>msgid=<[EMAIL PROTECTED]>,
> >>>relay=nobody@localhost
> >>
> >>It seems you are missing seting th return-path. Use mail() 5th argument.
> >>
> >>
> >>
> >>>Anyone got any ideas?  Anyone know if there's any docs on this kind of
> >>>thing?  I looked, I failed...
> >>>Or where I can get some information on where to get an alternate MTA
> >>
> > that
> >
> >>>WORKS out of the box (or tar.gz)
> >>
> >>If all else fails, you may want to try this PHP class, with several
> >>variants that let you send messages by several methods besides mail(),
> >>like: using sendmail directly, using qmail-inject or even relay on
> >>specific SMTP server or even the most drastic measure that is to send
> >>messages directly to the receipient SMTP server.
> >>
> >>http://www.phpclasses.org/mimemessage
>
>
> --
>
> Regards,
> Manuel Lemos
>



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




[PHP] noooob! => php logging into apache format?

2002-09-06 Thread :B nerdy

im looking for a program which will take what is avaliable in the ENV
variables and create a log file in the apache log file format. does anyone
know of any existing scripts?

what im trying to do is, run a log file analysis program for a website, but
i have no logs from the apache server - i have to create my own.

please help =D



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




[PHP] fsockopen proxy?

2002-09-06 Thread :B nerdy

im unable to access the web without first authenticating with the proxy. how
can i still use fsockopen and authenticate myself with php?

cheers



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




[PHP] Re: which version to use?

2002-09-06 Thread :B nerdy

i used the stable versions avalible at each website.

mysql 3.23
and apache 1.3 something

never given me a problem and ive been running it for a few weeks.. let alone
some ppl running them for months/years

cheers

"Anil Garg" <[EMAIL PROTECTED]> wrote in message
015701c255b3$a2704990$[EMAIL PROTECTED]">news:015701c255b3$a2704990$[EMAIL PROTECTED]...
> hi
>
> What version combinations of php and mysql should be used?
>
> regards
> anil
>



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




[PHP] Re: fsockopen proxy?

2002-09-06 Thread :B nerdy

its failing before i can even authorize myself for use in the proxy at
if ($fs = fsockopen("wwp.icq.com",80)) {

what must i do?? :/ the proxy is on port 8080?
cheers

":B Nerdy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> im unable to access the web without first authenticating with the proxy.
how
> can i still use fsockopen and authenticate myself with php?
>
> cheers
>
>



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




[PHP] linux install error

2002-09-18 Thread :B nerdy

i got the following error on install.. any ideas?

In file included from /usr/include/math.h:348,
 from /root/php-4.2.3/main/php_config.h:2107,
 from my_config.h:5,
 from global.h:33,
 from net.c:14:
/usr/include/bits/mathinline.h: In function `pow':
/usr/include/bits/mathinline.h:382: parse error before `0'
make[4]: *** [net.lo] Error 1
make[4]: Leaving directory `/root/php-4.2.3/ext/mysql/libmysql'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/root/php-4.2.3/ext/mysql/libmysql'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/root/php-4.2.3/ext/mysql'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/php-4.2.3/ext'
make: *** [install-recursive] Error 1




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




[PHP] cookies?

2002-09-22 Thread :B nerdy

i wish to POST submit to a login form on another server and then after that
POST some more information on the resulting page.

the thing is, after the first login, the website sends me a cookie. it
probably holds the session id and or authentication information. how will
can i relay this back to the page so i can view the resulting page without
being kicked out because of no cookie??

ive already used curl and am able to post things to scripts. but this cookie
problem i dont know how to get around.

any idea?
cheers




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




[PHP] i got a method but how in php now?

2002-09-22 Thread :B nerdy

i can do what i need on a command line with curl. but how would i do it in
php & curl?

this is my curl commands
curl -D hc -d "login=xx&password=xx&TYPE=login"
http://someserver.com/script/
curl -b hc -d "sendmsg=1&min=&message=test"
http://someserver.com/msgscript/

so really want i need is how do i specify with curl in php HOW TO RECORD
cookies?
and then how to RELAY them back..

cheers.

":B Nerdy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i wish to POST submit to a login form on another server and then after
that
> POST some more information on the resulting page.
>
> the thing is, after the first login, the website sends me a cookie. it
> probably holds the session id and or authentication information. how will
> can i relay this back to the page so i can view the resulting page without
> being kicked out because of no cookie??
>
> ive already used curl and am able to post things to scripts. but this
cookie
> problem i dont know how to get around.
>
> any idea?
> cheers
>
>
>



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




[PHP] solved

2002-09-22 Thread :B nerdy

its cool. ive solved it..

there is an option in php curl to save the headers. i just feed that back
out. and it implements the cookies

cheers

":B Nerdy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i can do what i need on a command line with curl. but how would i do it in
> php & curl?
>
> this is my curl commands
> curl -D hc -d "login=xx&password=xx&TYPE=login"
> http://someserver.com/script/
> curl -b hc -d "sendmsg=1&min=&message=test"
> http://someserver.com/msgscript/
>
> so really want i need is how do i specify with curl in php HOW TO RECORD
> cookies?
> and then how to RELAY them back..
>
> cheers.
>
> ":B Nerdy" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > i wish to POST submit to a login form on another server and then after
> that
> > POST some more information on the resulting page.
> >
> > the thing is, after the first login, the website sends me a cookie. it
> > probably holds the session id and or authentication information. how
will
> > can i relay this back to the page so i can view the resulting page
without
> > being kicked out because of no cookie??
> >
> > ive already used curl and am able to post things to scripts. but this
> cookie
> > problem i dont know how to get around.
> >
> > any idea?
> > cheers
> >
> >
> >
>
>



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




[PHP] preg help ?

2002-09-28 Thread :B nerdy

ive got a html document with the following string in it:


what i want to do is get the string which corresponds to value. so that is
\oiXESASZC?~adQXZDQ?_

ive used
preg_match_all ('',
$contents,$out, PREG_PATTERN_ORDER);

but it returns the whole document :(

a little help? cheers



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