You are here: Re: Button to execute python script « PHP Programming Language « IT news, forums, messages
Re: Button to execute python script

Posted by Carl Pearson on 02/03/07 02:08

elrondrules@gmail.com wrote:
> Hi
>
> I am pretty new to PHP and hence need your help!!
>
> I need to write a PHP that shows the user a button (button1) and a
> series of check boxes and another button (button2)..
>
> If the button1 is clicked then I should launch a python script running
> on the same linux box as the PHP..
>
> If any of the check boxes are checked and button 2 is clicked, then I
> should launch another script..
>
> Is there any way to do this in PHP...
>
> Thanks
>

Yes, as Kimmo mentioned you could just exec to a server-side Python
script, but one wonders, since you're going back to the server anyway,
why you're switching languages...

(Just to be clear, here, Ivan is also right: You can't "run" Python in
the browser as it is a server-side language, and the form is living in
the browser, i.e., the client. For the Python script to run, that
information has to be transmitted from the client back to the server, so
the server knows to run the Python code...)

 

Navigation:

[Reply to this 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

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