Re: [PHP] How to Execute Exe File from PHP

2008-10-21 Thread Paulo Sousa
Hi Alice First, make sure about the value on $market and $length. Yeah, it's simple. echo $market; echo $length; $a= shell_exec("./test.exe -m$market -d$length"); echo $a; Second: "http://www.chipmunkninja.com/Program-Execution-in-PHP:-exec-m@@"; A good explanation to use external commands (

Re: [PHP]About the magic function __call

2008-08-27 Thread Paulo Sousa
gt; On Wed, Aug 27, 2008 at 1:49 PM, Nathan Nobbe <[EMAIL PROTECTED]>wrote: > >> On Wed, Aug 27, 2008 at 1:35 PM, Paulo Sousa <[EMAIL PROTECTED] >> > wrote: >> ... >> > > this *should* work, > > here is a test, tests/classes/__call_005.phpt, you

[PHP]About the magic function __call

2008-08-27 Thread Paulo Sousa
Hi there! I'm working with the following code: a = $arg; } function __call($function, $args){ $this->b = $function; $this->c = $args; $this->doWhatever(); } private doWhatever(){ } } class Boo extends Foo{ protected $e; public function __construct(){ parent::__construct('Blah'); }