Re: [PHP] Unable to get output from exec ssh remote-server 'ping -c4 ip'

2009-12-27 Thread Michael Kjeldsen
On 12/27/2009 10:53 PM, robert mena wrote: Hi, I need to develop an interface that will, for example, ping IPs from a remote server. So the php script will be hosted in a server with ssh access (key) to the remote server. I can make it work from the console but when I try $cmd = ssh

Re: [PHP] parse date field

2010-01-14 Thread Michael Kjeldsen
On 01/14/2010 11:01 AM, John Taylor-Johnston wrote: How do I parse a date field from mysql? I was hoping this would work: $mydata-birthday = 2007-02-13; #What month is it? echo date(F, $mydata-birthday); #What year is it? echo date(Y, $mydata-birthday); What am I missing? All I get is