php-general Digest 17 Jul 2010 11:47:56 -0000 Issue 6850

2010-07-17 Thread php-general-digest-help
php-general Digest 17 Jul 2010 11:47:56 - Issue 6850 Topics (messages 306948 through 306954): ldap_search filter filter? 306948 by: Richard Lynch 306951 by: Andrew Ballard Re: Weird behavior of exec() 306949 by: Leonardo 306950 by: Leonardo Re: user login

php-general Digest 18 Jul 2010 05:19:44 -0000 Issue 6851

2010-07-17 Thread php-general-digest-help
php-general Digest 18 Jul 2010 05:19:44 - Issue 6851 Topics (messages 306955 through 306969): Re: Convert excel time to date time 306955 by: Ashley Sheridan Converting a javascript calculating page to a PHP one 306956 by: The Doctor 306957 by: shiplu 306958

[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

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] 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

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 SUST

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/rootnl2k

[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] 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 Mac,

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

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... it does

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

Re: [PHP] PHP Pill

2010-07-17 Thread Peter Lind
On 17 July 2010 20:08, Rick Dwyer rpdw...@earthlink.net 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

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 rpdw...@earthlink.net 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

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 rquadl...@gmail.com 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:

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

[PHP] recursive

2010-07-17 Thread shahrzad khorrami
hi all :) here is a xml file: directive rule rules rule /rule rule /rule /rules /rule /directive directive rule rules rule /rule rule /rule /rules /rule /directive . . . . I have a xml file with a