[PHP] Bug??

2005-08-30 Thread b-bonini
for($i=1;$i13;$i++) { echo $i . :: ; echo date('F', mktime(0, 0, 0, $i)) . :: ; echo mktime(0, 0, 0, $i) . \n; } 1 :: January :: 1107061200 2 :: March :: 1109739600 3 :: March :: 1112158800 4 :: April :: 1114833600 5 :: May :: 1117425600 6 :: June :: 1120104000 7 ::

Re: [PHP] Regular expression question

2005-08-11 Thread b-bonini
n Thu, 11 Aug 2005, Leon Vismer wrote: Hi I would like to convert from one naming convention within a sql statement to another. I have the following, code $str = insert into userComment (userID, userName, userSurname) values (0, 'Leon', 'Vismer'); $match = array( /([a-z]+)(ID)/,

[PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread b-bonini
Can not make this work inside a php script. Have tried several variations: $cmd = scp [EMAIL PROTECTED]:$directory/\{$files} $tmp_dir/.; $cmd = scp [EMAIL PROTECTED]:$directory/ . '{' . $files . '} ' . $tmp_dir/.; etc... I can echo out the command and get a well formed command, i.e. one that