I have a Newport temperature monitor that I can query using httpget within a CMD box. However, when I try to use the system function in PHP it will not allow me to place the output in a variable. It just displays the output within the browser page. My goal is to split the data string and place them into a mysql table. I appreciate any help anyone can give me in how to get the output to a variable or a better way to get it into a mysql table.
Try using exec. System should be returning the last line of command line output. Exec works the same way except it allows you to specify a reference to a variable to store the entire output in: