Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
ar 19, 2009 at 8:57 PM, Shawn McKenzie wrote: > Kyohere Luke wrote: > > Hi, > > > > Tried all that - it'd work well until one of the arguments also had > spaces > > and thus had "" or '' encapsulating it - this weirdness is the reason for > >

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
work was to get rid of the spaces in the path/to/exe. Luke On Thu, Mar 19, 2009 at 8:24 PM, bruce wrote: > hey... > > if you're going to deal with file/pathnames in windows/linux.. you're going > to have to encapsulate them with "" or with '' ie double/

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
work was to get rid of the spaces in the path/to/exe. Luke. On Thu, Mar 19, 2009 at 8:24 PM, bruce wrote: > hey... > > if you're going to deal with file/pathnames in windows/linux.. you're going > to have to encapsulate them with "" or with '' ie double/

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Eventually settled for getting rid of the spaces in the path. That worked. Thanks. Luke On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote: > > > On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote: > >> Thanks, but I tried this. Doesn't work because the path\to\gam

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Eventually settled for getting rid of the spaces in the path. That worked. Thanks. Luke On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote: > > > On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote: > >> Thanks, but I tried this. Doesn't work because the path\to\gam

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Unless i'm mistaken, data written to the process's stdin (for the other process) is not treated like an argument. If I add the arguments to the process name/path? I'm back to square one. Luke On Thu, Mar 19, 2009 at 6:25 PM, Shawn McKenzie wrote: > Kyohere Luke wrote: > > Hi,

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Unless i'm mistaken, data written to the process's stdin (for the other process) is not treated like an argument. If I add the arguments to the process name/path? I'm back to square one. Luke. On Thu, Mar 19, 2009 at 6:25 PM, Shawn McKenzie wrote: > Kyohere Luke wrote: > > Hi,

[PHP] Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Hi, I'm trying to use exec to call gammu.exe and send sms on windows XP. This works from commandline: C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" But if I run it through php like this: $command = "\"C:\path\to\gammu.exe\" --sendsms EMS 200 -text \"test1 test2\"".; @exec($comman

Re: [PHP] ruby / rails within a php site

2009-03-04 Thread Kyohere Luke
Would this work? $contents = file_get_contents(' http://localhost/path_to_ruby_installation/rubyfile'); then print out the contents wherever you want to? or something similar, basically, we get the html output of the ruby file over http, since this will run your ruby/rails installation the w

Re: [PHP] mysqli_embedded_server_start

2008-02-01 Thread Kyohere Luke
t; > On Fri, 2008-02-01 at 09:13 +0100, Per Jessen wrote: > >> Kyohere Luke wrote: > >> > >> > Has anyone tried to use this function? Does php actually support > >> > mysql embedded server or is this just a stub for future use? I'm > >&

[PHP] mysqli_embedded_server_start

2008-01-31 Thread Kyohere Luke
Hello, Has anyone tried to use this function? Does php actually support mysql embedded server or is this just a stub for future use? I'm trying to convert a mysql-based web app to a desktop app and rather than refactor everything to use sqlite, It would be interesting if I could use mysql embedded