SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Getting Email

  1. #1
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting Email

    Hi,

    What are the different ways that can be used to check email on a server using a PHP script. So far I've found you can use IMAP and I think sockets, but since these are usually discarded in PHP compilings that I'd like to find an alternate route.

    So, Does anyone know of different methods, to get emails from a server (*Nix) and be able to display them in lists, and certain messages using a PHP script?

    -Peter

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sockets, Sockets and Sockets. Most poeple who know anything about anything will most certianly compile PHP with socket support. Areyou planning on selling this script or something, if its going to be free, then there si nothing wrong with setting requirements on the script, like "must have sockets enabled in PHP".
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was planning on selling this one, so I was wondering which was the best way to go.

    Well, since you recommend sockets highly, I'll look into it in more detail so I can make plans for a script of this sort. While, I have a thread open can I ask everyone the best way to make a poll script?

    Should I:
    Each Vote has it's own record and each POll has it's own table?

    or...

    Each vote is added onto a tally and polls have seperate tableS?

    or....

    each vote is added onto a tally and polls use the same table?

    -Peter

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a thought, I am no expert in DB design but three tbales should do the trick.

    Table 1

    Polls
    ============
    PollID
    PollQuestion

    PollChoices
    ============
    PollChoiceID
    PollID
    PollChoice

    PollVotes
    ============
    VoteID
    PollChoiceID
    PollID




    This would seem like the most logical way to do it, since a poll can have one or many Choices and Choice can be voted on one or many times.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK Freddy, thanks....I'll go with that one

    -Peter


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •