[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

Re: [PHP] mysqli_embedded_server_start

2008-02-01 Thread Kyohere Luke
+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 trying to convert a mysql-based web app to a desktop app and rather than refactor everything to use sqlite

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

[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($command,

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

2009-03-19 Thread Kyohere Luke
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 nos...@mckenzies.netwrote: Kyohere Luke wrote: Hi, I'm trying

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

2009-03-19 Thread Kyohere Luke
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 nos...@mckenzies.netwrote: Kyohere Luke wrote: Hi, I'm trying

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 phps...@gmail.com wrote: On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke l...@beyonic.com wrote: Thanks, but I tried this. Doesn't work because the path

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 phps...@gmail.com wrote: On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke l...@beyonic.com wrote: Thanks, but I tried this. Doesn't work because the path

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

2009-03-19 Thread Kyohere Luke
/to/exe. Luke. On Thu, Mar 19, 2009 at 8:24 PM, bruce bedoug...@earthlink.net 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/single quotes... -Original Message- From: Kyohere Luke

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

2009-03-19 Thread Kyohere Luke
/to/exe. Luke On Thu, Mar 19, 2009 at 8:24 PM, bruce bedoug...@earthlink.net 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/single quotes... -Original Message- From: Kyohere Luke

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

2009-03-20 Thread Kyohere Luke
nos...@mckenzies.netwrote: 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 this post. Shawn, even the good old C:\pathwi~1\gammu.exe failed :-( Well, you didn't