473,583 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeking play-by-email source and/or information on handling incoming emails

I've been programming in assembler and C/C++ for a number of years, but I'm
only just starting down the road of PHP & MYSQL.

I have a couple of questions:

(1) Before I start writing my own code, to learn from, and also avoid
re-inventing the wheel, does anyone know of any existing source that
implements a (basic or complex) play-by-email system using PHP and maybe
MYSQL?

(Or at least some information on how to handle incoming emails through PHP
code.)

The system will be purely email based (like majordomo or listserv) - there
will be no web interface.

I'm looking to implement something that will basically be able to receive
emails, process them (and add stuff from/to a MYSQL database) and then send
out emails.

(2) Also, what information should I be requesting from potential web-hosts?
i.e. what server software and set-up are they running. I ask this because
the only article I did find on handling incoming emails, mentions amongst
other things to get "PHP compiled as a CGI binary, not just as an Apache
module" (whatever that means.)

Thanks in advance,

Simon.
Jul 17 '05 #1
5 3121

"simonc" <no@email.com > schrieb im Newsbeitrag
news:1e******** ******@news2.ne ws.adelphia.net ...
I've been programming in assembler and C/C++ for a number of years, but I'm only just starting down the road of PHP & MYSQL.

I have a couple of questions:

(1) Before I start writing my own code, to learn from, and also avoid
re-inventing the wheel, does anyone know of any existing source that
implements a (basic or complex) play-by-email system using PHP and maybe
MYSQL?

(Or at least some information on how to handle incoming emails through PHP
code.)

The system will be purely email based (like majordomo or listserv) - there
will be no web interface.

I'm looking to implement something that will basically be able to receive
emails, process them (and add stuff from/to a MYSQL database) and then send out emails.

(2) Also, what information should I be requesting from potential web-hosts? i.e. what server software and set-up are they running. I ask this because
the only article I did find on handling incoming emails, mentions amongst
other things to get "PHP compiled as a CGI binary, not just as an Apache
module" (whatever that means.)

Thanks in advance,

Simon.

To be honest I would prefer the Apache module as it is faster and more
secure. Otherwise what server software you want/need depends realy on what
type of website your developing and what type of information the database
should store.

Jeremy
Jul 17 '05 #2
So on servers where the PHP parser/interpreter (or whatever the exact term
is) is an Apache module, my PHP code is unable to be activated by incoming
emails?

I'm confused here. Surely there are thousands of applications written in PHP
that can receive incoming emails AND the PHP code is handled by an Apache
module?

Any clarification would be most appreciated. (And of course, any locations
of example source code that shows this in practice.)

Thanks, Simon.

"Jeremy" <je****@schoenh aar.com> wrote in message
news:bm******** **@news1.nefonl ine.de...

"simonc" <no@email.com > schrieb im Newsbeitrag
news:1e******** ******@news2.ne ws.adelphia.net ...
I've been programming in assembler and C/C++ for a number of years, but

I'm
only just starting down the road of PHP & MYSQL.

I have a couple of questions:

(1) Before I start writing my own code, to learn from, and also avoid
re-inventing the wheel, does anyone know of any existing source that
implements a (basic or complex) play-by-email system using PHP and maybe
MYSQL?

(Or at least some information on how to handle incoming emails through PHP code.)

The system will be purely email based (like majordomo or listserv) - there will be no web interface.

I'm looking to implement something that will basically be able to receive emails, process them (and add stuff from/to a MYSQL database) and then

send
out emails.

(2) Also, what information should I be requesting from potential

web-hosts?
i.e. what server software and set-up are they running. I ask this because the only article I did find on handling incoming emails, mentions amongst other things to get "PHP compiled as a CGI binary, not just as an Apache
module" (whatever that means.)

Thanks in advance,

Simon.

To be honest I would prefer the Apache module as it is faster and more
secure. Otherwise what server software you want/need depends realy on what
type of website your developing and what type of information the database
should store.

Jeremy

Jul 17 '05 #3
simonc wrote:
(Or at least some information on how to handle incoming emails through PHP
code.)
First you need to know a way of starting your code when an e-mail arrives.
I didn't know myself either what the best way would be, so I took a look
at how majordomo does this. According to the majordomo INSTALL file,
it seems that you can setup aliases for sendmail that don't correspond
to actual accounts but instead pipe the received e-mail to the configured
program. That looks like a good way to do it. Don't know whether a hosting
provider would cooperate on modifying the sendmail aliases file though.

Another way could be to have a normal e-mail address that corresponds
to a real user account and put a .forward file in the home directory.
There's a special syntax for specifying that you want to "forward"
all incoming mails to a filter. Don't remember the exact details,
but if you google, you'll probably find more details.
mentions amongst other things to get "PHP compiled as a CGI binary, not
just as an Apache module" (whatever that means.)


CGI is the Common Gateway Interface, which is a - somewhat old fashioned,
but still popular - standard which defines how a webserver can pass a
request on to a program / executable / binary.

Apache module is a more advanced way to achieving dynamic content, in this
case the code which processes the web request is in an Apache "plugin" and
not a standalone program / executable / binary.

If you want your script to be launched when e-mail arrives, then it has
to be a "standalone " / "commandlin e" / "console" script, see :

http://nl2.php.net/manual/en/features.commandline.php

Best regards,

Eric
Jul 17 '05 #4
You could look at OSticket a Web Hosting troubleticket system. It has a
email system that checks an account for new mail at a set interval via cron.
If there is new mail it opens a new ticket and replies to the customer and
to support personnel informing them a ticket has been posted.

I use it and I have a cronjob that starts Lynx and opens a page then closes
every 10 mins.
--
Eric Haskins
RackSPEED.Net
WebHosting from $4.99/month
Dedicated Servers
Multiple UpStream Providers


"Eric Veltman" <eric@[RemoveThis]veltman.nu> wrote in message
news:vo******** ****@corp.super news.com...
simonc wrote:
(Or at least some information on how to handle incoming emails through PHP code.)


First you need to know a way of starting your code when an e-mail arrives.
I didn't know myself either what the best way would be, so I took a look
at how majordomo does this. According to the majordomo INSTALL file,
it seems that you can setup aliases for sendmail that don't correspond
to actual accounts but instead pipe the received e-mail to the configured
program. That looks like a good way to do it. Don't know whether a hosting
provider would cooperate on modifying the sendmail aliases file though.

Another way could be to have a normal e-mail address that corresponds
to a real user account and put a .forward file in the home directory.
There's a special syntax for specifying that you want to "forward"
all incoming mails to a filter. Don't remember the exact details,
but if you google, you'll probably find more details.
mentions amongst other things to get "PHP compiled as a CGI binary, not
just as an Apache module" (whatever that means.)


CGI is the Common Gateway Interface, which is a - somewhat old fashioned,
but still popular - standard which defines how a webserver can pass a
request on to a program / executable / binary.

Apache module is a more advanced way to achieving dynamic content, in this
case the code which processes the web request is in an Apache "plugin" and
not a standalone program / executable / binary.

If you want your script to be launched when e-mail arrives, then it has
to be a "standalone " / "commandlin e" / "console" script, see :

http://nl2.php.net/manual/en/features.commandline.php

Best regards,

Eric

Jul 17 '05 #5
Thanks for the reply - but I'm looking for a solution that allows emails to
be acted upon, and sent between game participants, as quickly as possibly -
rather than at a leisurely pace where the server polls occasionally (every
10 mins. in your example) for newly-arrived email.

Simon.
"Eric Haskins" <ho********@rac kspeed.net> wrote in message
news:gS******** *********@nwrdd c03.gnilink.net ...
You could look at OSticket a Web Hosting troubleticket system. It has a
email system that checks an account for new mail at a set interval via cron. If there is new mail it opens a new ticket and replies to the customer and
to support personnel informing them a ticket has been posted.

I use it and I have a cronjob that starts Lynx and opens a page then closes every 10 mins.
--
Eric Haskins
RackSPEED.Net
WebHosting from $4.99/month
Dedicated Servers
Multiple UpStream Providers


"Eric Veltman" <eric@[RemoveThis]veltman.nu> wrote in message
news:vo******** ****@corp.super news.com...
simonc wrote:
(Or at least some information on how to handle incoming emails through PHP code.)


First you need to know a way of starting your code when an e-mail arrives. I didn't know myself either what the best way would be, so I took a look
at how majordomo does this. According to the majordomo INSTALL file,
it seems that you can setup aliases for sendmail that don't correspond
to actual accounts but instead pipe the received e-mail to the configured program. That looks like a good way to do it. Don't know whether a hosting provider would cooperate on modifying the sendmail aliases file though.

Another way could be to have a normal e-mail address that corresponds
to a real user account and put a .forward file in the home directory.
There's a special syntax for specifying that you want to "forward"
all incoming mails to a filter. Don't remember the exact details,
but if you google, you'll probably find more details.
mentions amongst other things to get "PHP compiled as a CGI binary, not just as an Apache module" (whatever that means.)


CGI is the Common Gateway Interface, which is a - somewhat old fashioned, but still popular - standard which defines how a webserver can pass a
request on to a program / executable / binary.

Apache module is a more advanced way to achieving dynamic content, in this case the code which processes the web request is in an Apache "plugin" and not a standalone program / executable / binary.

If you want your script to be launched when e-mail arrives, then it has
to be a "standalone " / "commandlin e" / "console" script, see :

http://nl2.php.net/manual/en/features.commandline.php

Best regards,

Eric


Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1656
by: Qp | last post by:
Hi, I've got a generic coding architecture question about an application I'm developing. Given that I've never developed anything quite like this before (especially not in Python), I'd appreciate any pointers that you can give me. The app is a network client written using Twisted and Tkinter. The clients will connect to a server,...
6
4038
by: Andrew Poulos | last post by:
As a follow on to the 'fun' I had with IE I'm now trying to play sounds using an Object tag (no Embed) in MZ. Sadly whenever 'playButton' gets clicked MZ says that "audObj.Play is not a function": window.onload = function() { var audObj = document.createElement("object"); audObj.setAttribute("id", "objmedia");...
1
4288
by: Ron Provost | last post by:
Hello, I'm developing a piece of software to assist illiteraate adults to learn to read. I'm trying to figure out how, if possible, to make audio playback asynchrnous but still controllable. I'm using python 2.4 with pymedia on XP. I started out with the example in the tutorials section of the pymedia website. The pymedia docs imply to...
5
2892
by: MLH | last post by:
Having identified a A97 bug in which acDialog causes undesirable side effects processing the opened form, I would like to replace the following code running in MyForm ... DoCmd.OpenForm "frmVehicleChooserForm", , , , , acDialog .... (more code I want to run after suspension) With this new approach... DoCmd.OpenForm...
1
1555
by: Xiaoshen Li | last post by:
Dear All, I am relatively new to C(But I have computer science background and know some other programming languages). I am wondering if anyboby can recommend me some C books or websites. I prefer the books with code that can be downloaded from websites. (I like to read those codes and play with it. I found it is a fast way to pick up a...
1
7994
by: Lam | last post by:
how can I play sound file in a .aspx page written in C#? I try to use the code like the following. But whenI call the play function play("sound.wav", this.SND_ASYNC) my computer give out "be" sound instead playing the file (same code works fine in a windows application written in c# , that mean there is nothing wrong with my sound card.)...
11
2214
by: Jim | last post by:
Have you seen any NNTP classes that I may use or build upon to build a simple newsreader/downloader? Is there such a class in the .Net framework that I have overlooked? If not, inclusion of RFC documented protocols would certainly be a good idea for a class hierarchy in the .Net classes. You could adopt and extend the classes at will. ...
9
5596
by: Morris Neuman | last post by:
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to play a wave file that is not located in the website folders but is in a plain folder on the same machine, windows 2003 server, WMP 10.0 . If I type the full path in an IE address field it plays the file in WMP When I test my Web page ( running the debugger in VS.)...
5
2143
by: | last post by:
Hello, I am wrtting a program that does some sound effects... the files are stored in a subfolder in the application folder... and I check the existence of the files before calling the method to play the sound. It works perfectly well in Windows XP, but when I move my application to a Vista machine, the sound does not play... I used a debug...
0
1617
by: LorenVS | last post by:
Hello, I'm just looking into using the WMP Embedded control in a C# WinForms application. I'm using it to play audio files (.mp3 and .m4a) which is working perfectly. However, I'm hoping to be able to programatically seek through the songs, e.g. I'm hoping to be able to set the current play position (either in seconds or as a TimeSpan, I don't...
0
7888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8314
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7922
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6571
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3836
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2317
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1416
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.