php-windows Digest 28 May 2005 23:01:25 -0000 Issue 2681
Topics (messages 26050 through 26052):
Re: pop3 emailer
26050 by: Mike
26051 by: Paul Menard
Re: Crazy user input with html in it
26052 by: Armando
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Without using someone else's code or a pre-existing class, take a read
through this: http://us3.php.net/manual/en/ref.imap.php
-M
> Hi
>
> What is the easist way to read an email account from php?
>
> Thanks
>
> Mike
>
> --
> PHP Windows Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
MY best suggestion is to use the PHP IMap/POP functions. It's pretty simply to
do this (until you
get into attachments.
If you are just looking for a webmail package to host on your server to allow
reading your local
mailbox check out http://ilohamail.org/main.php?page=Downloads
Though it does not user most of the PHP mail functions. The author chose to use
raw socket calls
which makes the app very fast. You can also use this to read remote mail. For
instance on my
server I have my local domain account mail but I can also read in my Yahoo mail
via POP3.
P-
--- Mike Bellerby <[EMAIL PROTECTED]> wrote:
> Hi
>
> What is the easist way to read an email account from php?
>
> Thanks
>
> Mike
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I run across this in all the user input forms I do. People are always
trying to put weird stuff in there. Usually I just use the str_replace
function to strip out unwanted characters. Cheers.
Armando
Ross Honniball wrote:
Hi all,
Say you get some text field from a user and store it in a database. Then
later you display this input. If the user has coded html in the actual
input, without running this through some kind of parsing function, it
could give you some odd results.
For example, say the user types in, as text <input type="text">
Then when you display this data (echo it), your page will show an html
input box.
I think there are a number of functions in php to cope with this, but
wondering what people find to be the best/most efficient or whatever one.
What do you do?
..
.. Ross Honniball. JCU Bookshop Cairns, Qld, Australia.
..
--- End Message ---