[Phpwm] Fnuction to calculate a formula

Phil Beynon phil at infolinkelectronics.co.uk
Tue Dec 4 23:38:19 GMT 2007


> > For info, I finally settled on:
> >
> > $command="/usr/local/bin/php -r \"echo \"2+2\";\"";
> > $res=exec($command);
> >
> > Seems to do the trick.
> > Now to find a dictionary to find out how to spell "Fnuction".
> > Cheers,
> > Colin
> >
> 
> 
> There isn't really an benefit to doing that over using eval(), 
> both leave  
> you open to exploits if it's user-data being processed, but using exec  
> will spawn a new php process, and potentially leaves the shell as 
> well as  
> PHP itself open to exploitation.
> 
> Greg
> 

Doesn't -r suppress error reporting rather dramatically, or am I thinking of something else?

Phil

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.13/1169 - Release Date: 03/12/2007 22:56
 
  


More information about the Phpwm mailing list