[PHP] Re: Printing within functions

2007-11-12 Thread Radek Hladik
Philip Thompson napsal(a): Hi. I thought of this when I read the emails about using functions or includes... What are your thoughts about *printing* things from within functions? For example: ... ... Obviously, these are over-simplified functions, but you get the point. Nonetheless, do yo

Re: [PHP] pecl-ssh2 and remote command execution

2007-11-12 Thread Radek Hladik
Chris napsal(a): Radek Hladik wrote: Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension

[PHP] pecl-ssh2 and remote command execution

2007-11-12 Thread Radek Hladik
Hi, I need to run remote command (by ssh), send it some data and receive its output and return value. I could run command like ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've discovered ssh2 pecl-extension and I liked the idea of using ssh directly from PHP. Howe