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. 5 3095
"simonc" <no@email.com> schrieb im Newsbeitrag
news:1e**************@news2.news.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
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****@schoenhaar.com> wrote in message
news:bm**********@news1.nefonline.de... "simonc" <no@email.com> schrieb im Newsbeitrag news:1e**************@news2.news.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
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" / "commandline" / "console" script, see : http://nl2.php.net/manual/en/features.commandline.php
Best regards,
Eric
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.supernews.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" / "commandline" / "console" script, see :
http://nl2.php.net/manual/en/features.commandline.php
Best regards,
Eric
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********@rackspeed.net> wrote in message
news:gS*****************@nwrddc03.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.supernews.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" / "commandline" / "console" script, see :
http://nl2.php.net/manual/en/features.commandline.php
Best regards,
Eric
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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":...
|
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. ...
|
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...
|
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...
|
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"...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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,...
| |