Re: The last long steps of the gnome.org website
Olav Vitters <[email protected]>
| Newsgroups | gmane.comp.gnome.web,gmane.comp.gnome.marketing |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Mar 30, 2011 at 11:34:50PM -0300, Vinicius Depizzol wrote: > > | $cmd = "/usr/bin/xml2po -m xhtml -p " . PO_DIR . "$po_file -o $translated_xml_file " . XML_DIR . "gnomesite.xml"; > > > > that is also *very* bad. Don't execute via shell! > > I fully agree this is pretty ugly. Do you have any suggestion > regarding this (a way to execute xml2po via php without executing it > with shell)? > Thank you! This seems the nicest way: http://nl3.php.net/manual/en/function.pcntl-exec.php Also noticed the following: http://nl3.php.net/manual/en/function.escapeshellcmd.php http://nl3.php.net/manual/en/function.escapeshellarg.php but IMO that is a bad solution. -- Regards, Olav