[PHP] recursive

2010-07-17 Thread shahrzad khorrami
hi all :) here is a xml file: . . . . I have a xml file with a name for example(test.xml).. and 3 tables of database, (group,directives,rules) group is for recording the name of the

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-17 Thread shiplu
There is an algorithm called longest common sub sequence. If you can find the longest common sub sequence of the strings of database for the given string and sort it, you'll get the most matched word. But I think this algo is developed already and available in your context. It's name can be differe

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-17 Thread tedd
At 12:09 PM -0400 7/15/10, Daniel P. Brown wrote: On Thu, Jul 15, 2010 at 11:54, Richard Quadling wrote: I'm looking for is a way to compare what they've entered against a known list and to provide my 10 best guesses. Look into the following functions and families: levenshtein

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
On Jul 17, 2010, at 2:34 PM, Peter Lind wrote: On 17 July 2010 20:08, Rick Dwyer wrote: On Jul 17, 2010, at 1:29 PM, Ashley Sheridan wrote: Well, I did suggest one thing that could be happening. What do both string lengths come to? On the PC, the length of variable old string is 44

Re: [PHP] PHP Pill

2010-07-17 Thread Peter Lind
On 17 July 2010 20:08, Rick Dwyer wrote: > > > On Jul 17, 2010, at 1:29 PM, Ashley Sheridan wrote: >>> >>> >> >> Well, I did suggest one thing that could be happening. What do both >> string lengths come to? > > > On the PC, the length of variable old string is 44 and new string is 39 > On the Mac

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
On Jul 17, 2010, at 2:08 PM, Rick Dwyer wrote: On Jul 17, 2010, at 1:29 PM, Ashley Sheridan wrote: Well, I did suggest one thing that could be happening. What do both string lengths come to? On the PC, the length of variable old string is 44 and new string is 39 On the Mac, the leng

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
On Jul 17, 2010, at 1:29 PM, Ashley Sheridan wrote: Well, I did suggest one thing that could be happening. What do both string lengths come to? On the PC, the length of variable old string is 44 and new string is 39 On the Mac, the length of varialbe old string is 44 and new string is

Re: [PHP] PHP Pill

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 13:27 -0400, Rick Dwyer wrote: > Hi Ash. > > > > Yes, windows XP, I believe. PHP Pill is a FileMaker plugin that > allows you to execute PHP from within your FM code. What I don't > understand is that the PHP regex should be removing ALL items not in > my regex list... i

Re: [PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
Hi Ash. Yes, windows XP, I believe. PHP Pill is a FileMaker plugin that allows you to execute PHP from within your FM code. What I don't understand is that the PHP regex should be removing ALL items not in my regex list... it does so in FM on the Mac but not on the PC. But the plugin i

Re: [PHP] PHP Pill

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 12:30 -0400, Rick Dwyer wrote: > Hello all. > > I inquired about the problem below on a FM board but no one could > help. Hoping someone here may have an explanation or a workaround. > > I have PHP Pill installed on both a Mac and PC versions of FileMaker > 11. On the

[PHP] PHP Pill

2010-07-17 Thread Rick Dwyer
Hello all. I inquired about the problem below on a FM board but no one could help. Hoping someone here may have an explanation or a workaround. I have PHP Pill installed on both a Mac and PC versions of FileMaker 11. On the Mac, things behave as expected. On the PC, they do not. My code

Re: [PHP] Converting a javascript calculating page to a PHP one

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 09:35 -0600, The Doctor wrote: > Quick question, ho easy is this? > > -- > Member - Liberal InternationalThis is doc...@nl2k.ab.ca Ici > doc...@nl2k.ab.ca > God, Queen and country! Never Satan President Republic! Beware AntiChrist > rising! > http://twitter.com/r

Re: [PHP] Converting a javascript calculating page to a PHP one

2010-07-17 Thread shiplu
You can use SpiderMoneky of Mozilla or V8 of Google to execute the js. Later you can also create a php extension to call your lib. The flow will be like this, PHP <--> PHP_V8_WRAPPER <--> V8 <--> EXECUTE_JS Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SU

[PHP] Converting a javascript calculating page to a PHP one

2010-07-17 Thread The Doctor
Quick question, ho easy is this? -- Member - Liberal International This is doc...@nl2k.ab.ca Ici doc...@nl2k.ab.ca God, Queen and country! Never Satan President Republic! Beware AntiChrist rising! http://twitter.com/rootnl2k http://www.facebook.com/dyadallee Australia!! Vote to throw the REpu

Re: [PHP] Convert excel time to date time

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 19:47 +0800, Mohd Shakir bin Zakaria wrote: > Hi, > > I've been trying to convert this excel date to the date time format, > but only managed to get it up to the seconds; > > The following code; > > # > $data=39604.62164; > date("Y-m-d",mktime(0,0,0,1,$data-1,1900)

[PHP] Convert excel time to date time

2010-07-17 Thread Mohd Shakir bin Zakaria
Hi, I've been trying to convert this excel date to the date time format, but only managed to get it up to the seconds; The following code; # $data=39604.62164; date("Y-m-d",mktime(0,0,0,1,$data-1,1900)); # will give this output 2008-06-05 changing it to date("H-i-s",m