Reply to Re: How do you do TCL exec command on PHP script that uses user input?

Your name:

Reply:


Posted by SM Ryan on 11/18/05 22:49

"comp.lang.tcl" <phillip.s.powell@gmail.com> wrote:
# The TCL command I am using will do a command-line action on a PHP
# script:
#
# set cannotRunPHP [catch {
# eval "exec php -q $root/scripts/info/php/info.php"
# } errMsg]

As a side note, you don't need to use eval in this command,
and it can actually fail if $root has any spaces. Instead
you can

set cannotRunPHP [catch {
exec php -q $root/scripts/info/php/info.php
} errMsg]

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Where do you get those wonderful toys?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация