php-general Digest 20 Jul 2010 11:06:38 -0000 Issue 6855

2010-07-20 Thread php-general-digest-help
php-general Digest 20 Jul 2010 11:06:38 - Issue 6855 Topics (messages 307023 through 307027): Re: enabling domdocument 307023 by: Michael A. Peters Re: MySQL Query Puzzle 307024 by: Jim Lucas 307027 by: Shreyas Agasthya socket problem 307025 by: Ümit CAN

php-general Digest 21 Jul 2010 00:54:11 -0000 Issue 6856

2010-07-20 Thread php-general-digest-help
php-general Digest 21 Jul 2010 00:54:11 - Issue 6856 Topics (messages 307028 through 307039): Image Replication 307028 by: Dan Joseph 307029 by: Per Jessen 307030 by: rehmanms.gmail.com 307031 by: Bastien Koert changing form based on variable 307032

[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

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 tedd.sperl...@gmail.com 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

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 li...@cmsws.com wrote: Peter wrote: Hi All, I have a table which contain's

[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

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. We

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 dmjos...@gmail.com Date: Tue, 20 Jul 2010 10:21:55 To: PHP eMail

Re: [PHP] Image Replication

2010-07-20 Thread Bastien Koert
On Tue, Jul 20, 2010 at 10:35 AM, rehma...@gmail.com 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

[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

[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: div?=strtoupper($user['name']);?/div And I have the following code as part of the templating engine: $template = file_get_contents($file); $template

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 itself is

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()

[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

Re: [PHP] changing form based on variable

2010-07-20 Thread Phpster
On Jul 20, 2010, at 13:28, David Mehler dave.meh...@gmail.com 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

Re: [PHP] eval and HEREDOC

2010-07-20 Thread lists
On Wed, 21 Jul 2010 01:04:12 +0300, Sorin Buturugeanu m...@soin.ro 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

[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: div?=strtoupper($user['name']);?/div And I have the following code as part of the templating engine: $template

[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:

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

[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: ?php $n= 5; for($i=0;$i$n;$i++) { $data[]=array(,$i,$i/1000); echo $i, ,$data[$i][1],br; } echo

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 Wed,