Re: [PHP] MySQL select matching

2010-07-20 Thread Simcha Younger
On Mon, 19 Jul 2010 10:36:40 -0600 "Ashley M. Kirchner" wrote: > mysql> select * from table where id='1'; > +---+-+-+---+ > | 1 | 123 | 0.0 | C | > | 1 | 234 | 0.1 | D | > | 1 | 345 | 0.0 | D | > | 1 | 456 | 0.1 | C | > | 1 | 567 | 0.1 | G | > +---+-+-

Re: [PHP] eval and HEREDOC

2010-07-20 Thread Peter Lind
On 21 July 2010 06:46, Sorin Buturugeanu wrote: > @Vincent: no, the short tags are not off. > > @Jim: This seamns to work fine: > > $template = file_get_contents(pathTemplates.$this->dir.$this->tpl); > ob_start(); > $template = eval('?>'.$template); > $template = ob_get_clean(); > > Thanks! > > Be

Re: [PHP] exec output to mySQL, How?

2010-07-20 Thread Nilesh Govindarajan
On Wed, Jul 21, 2010 at 8:49 AM, Tom Sparks wrote: > How do I take the output from a command line program and update a MYSQL > database with it? > > tom_a_sparks > Light travels faster then sound, which is why some people appear bright, > until you hear them speak > > > > > -- > PHP General Mail

Re: [PHP] eval and HEREDOC

2010-07-20 Thread Sorin Buturugeanu
@Vincent: no, the short tags are not off. @Jim: This seamns to work fine: $template = file_get_contents(pathTemplates.$this->dir.$this->tpl); ob_start(); $template = eval('?>'.$template); $template = ob_get_clean(); Thanks! Best wishes! Sorin -- Sorin Buturugeanu http://www.soin.ro On We

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] php array in different OS

2010-07-20 Thread Yang Fei
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux t

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] php array in different OS

2010-07-20 Thread fyang
Dear all, I have a simple test code in different OS ,but it give me a different result. the code as follows: "; } echo "count:",count($data); ?> OS1: Red Hat Enterprise Linux Server release 5.1 Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux test resu

[PHP] exec output to mySQL, How?

2010-07-20 Thread Tom Sparks
How do I take the output from a command line program and update a MYSQL database with it? tom_a_sparks Light travels faster then sound, which is why some people appear bright, until you hear them speak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Re: eval and HEREDOC

2010-07-20 Thread David Robley
Sorin Buturugeanu wrote: > Hello, > > I am having trouble with a part of my templating script. I'll try to > explain: > > The template itself is HTML with PHP code inside it, like: > > > > And I have the following code as part of the templating engine: > > $template = file_get_contents($file

Re: [PHP] eval and HEREDOC

2010-07-20 Thread lists
On Wed, 21 Jul 2010 01:04:12 +0300, Sorin Buturugeanu wrote: > Hello Vincent and thank you for your reply :). > > That's true, I forgot to explain how I got to using HEREDOC, so .. > > Using eval(file_get_contents($file)) just outputs the result on the > spot and I need > to get the

Re: [PHP] changing form based on variable

2010-07-20 Thread Phpster
On Jul 20, 2010, at 13:28, David Mehler wrote: > Hello, > I've got a form, it's sticky, and it can either display on an insert > or update. Depending on whether i'm wanting to do an insert or update > the area the form gets it's input changes. > So, i've got a name field, if it's set to insert,

[PHP] Fwd: [PHP-DB] always the logic that messes me up.... Database fun!

2010-07-20 Thread Jason Pruim
Hey Everyone, I know it's not strictly on topic but the php-db list hasn't responded and I haven't gotten any farther :) So please read below and earn a free beer for anyone that can help me, and can make it to Florida :) Begin forwarded message: From: Jason Pruim Date: July 18, 2010

Re: [PHP] eval and HEREDOC

2010-07-20 Thread Sorin Buturugeanu
Hello Vincent and thank you for your reply :). That's true, I forgot to explain how I got to using HEREDOC, so .. Using eval(file_get_contents($file)) just outputs the result on the spot and I need to get the whole output (without echoing it) and do some more things with it. require_once() doesn

RE: [PHP] eval and HEREDOC

2010-07-20 Thread Daevid Vincent
> -Original Message- > From: Sorin Buturugeanu [mailto:m...@soin.ro] > Sent: Tuesday, July 20, 2010 2:11 PM > To: php-general@lists.php.net > Subject: [PHP] eval and HEREDOC > > Hello, > > I am having trouble with a part of my templating script. I'll > try to explain: > > The template

[PHP] eval and HEREDOC

2010-07-20 Thread Sorin Buturugeanu
Hello, I am having trouble with a part of my templating script. I'll try to explain: The template itself is HTML with PHP code inside it, like: And I have the following code as part of the templating engine: $template = file_get_contents($file); $template = "return << If in the HTML file (te

[PHP] changing form based on variable

2010-07-20 Thread David Mehler
Hello, I've got a form, it's sticky, and it can either display on an insert or update. Depending on whether i'm wanting to do an insert or update the area the form gets it's input changes. So, i've got a name field, if it's set to insert, not sure how to differentiate between the two actions, name

Re: [PHP] Image Replication

2010-07-20 Thread Bastien Koert
On Tue, Jul 20, 2010 at 10:35 AM, wrote: > We are doing it with nfs mount which is mounted on all servers > > -- > Shafiq > http://shafiq.pk > *** This Message Has Been Sent Using BlackBerry Internet Service from > Mobilink *** > > -Original Message- > From: Dan Joseph > Date: Tue, 20 J

Re: [PHP] Image Replication

2010-07-20 Thread rehmanms
We are doing it with nfs mount which is mounted on all servers -- Shafiq http://shafiq.pk *** This Message Has Been Sent Using BlackBerry Internet Service from Mobilink *** -Original Message- From: Dan Joseph Date: Tue, 20 Jul 2010 10:21:55 To: PHP eMail List Subject: [PHP] Image Repli

Re: [PHP] Image Replication

2010-07-20 Thread Per Jessen
Dan Joseph wrote: > Hi, > > I'm wondering how you all are doing image replication between servers. > I've got some things in mind, but I'd like to see how others have > done it. > > We have a PHP application that accepts an image upload, then we want > it to show up on the other 2 web servers.

[PHP] Image Replication

2010-07-20 Thread Dan Joseph
Hi, I'm wondering how you all are doing image replication between servers. I've got some things in mind, but I'd like to see how others have done it. We have a PHP application that accepts an image upload, then we want it to show up on the other 2 web servers. We have 3 in a load balanced clust

Re: [PHP] MySQL Query Puzzle

2010-07-20 Thread Shreyas Agasthya
I am very keen to see a closure to this thread so that I can add to my snippets. Let's all know what worked best out of many solutions that have been proposed. --Shreyas On Tue, Jul 20, 2010 at 10:07 AM, Jim Lucas wrote: > Peter wrote: > >> Hi All, >> >> I have a table which contain's some dup

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-20 Thread Richard Quadling
On 19 July 2010 19:46, tedd wrote: > At 12:39 PM +0100 7/19/10, Richard Quadling wrote: >> >> I'm using MS SQL, not mySQL. >> >> Found a extended stored procedure with a UDF. >> >> Testing it looks excellent. >> >> Searching for a match on 30,000 vehicles next to no additional time - >> a few seco

[PHP] socket problem

2010-07-20 Thread Ümit CAN
Hi All; I have got problem on socket. First client send query on socket and running process for first client, socket blocking. Second client same time send query socket, accept second client but not runing process. Waiting first client end process. How can I do multi client runing process