Re: [PHP] Email from php

2010-05-19 Thread Teus Benschop
On Wed, 2010-05-19 at 16:57 +0530, Ferdi wrote: > Hi List, > > I have met with little success sending mail from PHP. I have used mainly the > mail() function but have also tried imap_mail() which the documentation says > is just a wrapper around mail(). > > Here is my understanding of the situat

Re: [PHP] Re: Finding similar results with php from mysql

2010-05-07 Thread Teus Benschop
> > I am searching for a way to show the user similar records from the mysql > > database. A functionality like "this could also be of interest to you". > > > > Does anybody know if this is there is a standard functionality to do > > this, or a good way on retrieving this with the help of PHP? The

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Teus Benschop
> I'm still shocked you guys are still writing code that has errors in it, > what's worse is you know about the errors, and instead of fixing them > you're just telling the user about it! > The point here is that we, programmers, know that we write code with bugs in it. We are realistic about it,

RE: [PHP] Mail Function Problem

2010-04-12 Thread Teus Benschop
On Mon, 2010-04-12 at 12:58 -0400, Alice Wei wrote: > Hi, > > I found an article on the item you described. > http://www.talkphp.com/vbarticles.php?do=article&articleid=51&title=sending-emails-with-the-zend-framework, > but I am using Windows on my PHP. Would this still work? Looks like the >

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Teus Benschop
On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: > With my case both installation of PHP has version 5.x, so how to know which > PHP is being used? > Running this page through Apache could do it: Teus. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] PHP GUI library/package

2010-03-31 Thread Teus Benschop
On Wed, 2010-03-31 at 12:23 -0400, tedd wrote: > I work on a Mac and I would very much like to create a "stand-alone" > application from my php scripts, but I am clueless as to how to do > this. > > If anyone has done this on a Mac, I would be very interested in > knowing how you did it. There

Re: [PHP] Audiobooks for Developers

2010-03-31 Thread Teus Benschop
On Wed, 2010-03-31 at 06:54 -0700, Tommy Pham wrote: > > There is also the learning technique of listening to audio books whilst > > sleeping. Not sure if I hold too much truck with that, but it's an > > option! In the past while we were on the road there were no telephone calls and we could enjoy

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Teus Benschop
On Tue, 2010-03-23 at 21:32 -0700, Tommy Pham wrote: > # of requests / second can be solved by load balancers/clusters. What > about the multiple answers for a simple request per user as in my > example? How you would solve that if not by threading? Amazon has > about 30 million products and the

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Teus Benschop
On Tue, 2010-03-23 at 19:08 -0700, Tommy Pham wrote: > The response time, max 5 seconds, will be tested on local gigabit LAN > to ensure the adequate response (optimized DB & code & proper > hardware) without worrying about users' connection limit and site's > upload bandwidth limit (which can easi

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Teus Benschop
When looking at PHP as used in enterprise class applications, we can see the following happening. Let imagine that we have a site that gets a 1000 requests per second. That seems to be a good candidate for threading so as to be able to handle the 1000 requests per second. The site runs PHP and Apac

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Teus Benschop
There can be, and there are, differences between the languages. There are so many languages out there, and it works like a market place. If you like the language, use it. It it fails to do what you want, you switch to another one. There is no need to beg the php developers to implement anything, as

RE: [PHP] best way to set up an include path for a multi-level project?

2010-03-17 Thread Teus Benschop
> let me emphasize that the layout of the entire "proj" directory will > be consistent across all users and all machines since it will > represent a single SVN checkout, so that's not an issue. of course, > anyone will be free to check it out anywhere they want but once they > do, its structure wi

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Teus Benschop
On Sat, 2010-03-13 at 17:09 +0100, Per Jessen wrote: > > If possible, I would like to ask and have your help about the methods > > and procedures that should exist to accomplish the following task: > > I need to grab some data from one mySQL database with some specific > > table and field names, to

Re: [PHP] Mail Function In PHP

2010-03-08 Thread Teus Benschop
On Mon, 2010-03-08 at 17:18 +, Richard Quadling wrote: > So, say I did go and setup a local SMTP relay, how would I make it > known that it was a "real" smtp server and not just some script > pushing spam? > > Once a domain or ip address was black listed, it was quite a process to get it unl

Re: [PHP] Mail Function In PHP

2010-03-08 Thread Teus Benschop
On Mon, 2010-03-08 at 10:21 +, Richard Quadling wrote: > Contrary to popular belief, to send an email you do not need to have > your own SMTP server. All you need to know is the SMTP server > responsible for your recipients email. [...] While the above is true, there is also another thing that

Re: [PHP] Help with exec.

2010-03-03 Thread Teus Benschop
On Wed, 2010-03-03 at 13:04 +, Richard Quadling wrote: > On 3 March 2010 13:01, Paul Halliday wrote: > > I need to pipe some data to an external application. > > > > I have this: > > > > while ($row = mysql_fetch_array($theData[0])) { > >$src_ip[] = $row[0]; > >$dst_ip[] = $row[1]; > >

Re: [PHP] gentoo php

2010-03-02 Thread Teus Benschop
On Tue, 2010-03-02 at 20:36 +0530, Kaushal Shriyan wrote: > Hi, > > I used simplexml as use flag and did emerge -av php. I still get the > same below issue. > > Fatal error: Call to undefined function simplexml_import_dom() in > /var/www/localhost/htdocs/apps/latency-monitor/Monitor/LatencyScrap

Re: [PHP] Using base64 encode and decode to store user data in database

2010-02-19 Thread Teus Benschop
On Fri, 2010-02-19 at 11:45 -0500, Paul M Foster wrote: > On Fri, Feb 19, 2010 at 05:43:15PM +0200, Dotan Cohen wrote: > > They don't ship to Israel! I have looked for it locally, but not found > > it. I'm sure that I could "acquire" a copy on some p2p service but I > > really don't like doing that

Re: [PHP] Persistent flag in memory

2010-02-11 Thread Teus Benschop
> On Thu, 2010-02-11 at 09:27 -0500, Bastien Koert wrote: > Could the app be converted to an Adobe AIR app or use PHPdock ( > http://www.nusphere.com/products/phpdock.htm ) to run local? There are > a number of security issues that surround installing a webserver and a > database locally on a users

Re: [PHP] Persistent flag in memory

2010-02-11 Thread Teus Benschop
On Thu, 2010-02-11 at 08:26 +, Jochem Maas wrote: > if you're doing all this already in order to facilitate a multi-platform > install ... why not go the extra yard and have the install process setup > a cronjob (or scheduled task, launchd entry, etc, depending on platform)? The reason is that

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
On Thu, 2010-02-11 at 06:46 +, Jochem Maas wrote: > Op 2/11/10 6:34 AM, Teus Benschop schreef: > > On Thu, 2010-02-11 at 05:53 +, Jochem Maas wrote: > >> whatever it is that your trying to do, it sounds like one of two things: > >> > >> 1. you have hosti

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
On Thu, 2010-02-11 at 05:53 +, Jochem Maas wrote: > whatever it is that your trying to do, it sounds like one of two things: > > 1. you have hosting that is unsuitable for your needs > 2. you are tackling the problem incorrectly > > at any rate, as far I'm concerned, you should never have a l

Re: [PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
Thank you for the hints given. I'll look into the various options given. The main reason for the need for a persistent flag in memory is that several installations where the PHP code would be deployed do not have access to crontab, so I am simulating crontab's functionality by letting a PHP script

[PHP] Persistent flag in memory

2010-02-10 Thread Teus Benschop
such a thing would be possible to be done in MySQL by using a table with flags in memory: CREATE TABLE IF NOT EXISTS timer (flag int) ENGINE = MEMORY; But is this also possible in PHP? Thanks for any help, Teus Benschop -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-08 Thread Teus Benschop
On Tue, 2010-02-09 at 07:22 +0100, Rene Veerman wrote: > I would also like to hear suggestions on how to fix this mess: > > $r = funcA ( funcB ( funcC ( $p ) ) ); > > if funcB() / funcC() fails, how would you fudge/abort the calling > function in the chain? > One may think that funcA and funcB ju

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Teus Benschop
What could help a developer is to plunder the available open-source frameworks and use the loot in his own code. At times these frame-works are well thought out, and some of their classes are clean, and can easily be moved into other contexts. Teus. On Fri, 2010-01-29 at 03:30 -0800, Tom Sparks wr

Re: [PHP] Do you use a public framework or roll your own?

2010-01-27 Thread Teus Benschop
Shortly ago, moving from programming in Gtk+ / C++ to PHP for the first time in my life, I made a good study of the available rapid application development options out there, studied a few PHP frameworks, read the opinions on the internet about it, then initially decided to use a framework to speed