Re: The last long steps of the gnome.org website
- From: Olav Vitters <olav vitters nl>
- To: Vinicius Depizzol <vdepizzol gmail com>
- Cc: gnome-web-list gnome org, GNOME Marketing List <marketing-list gnome org>
- Subject: Re: The last long steps of the gnome.org website
- Date: Sun, 3 Apr 2011 19:18:52 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]