PHP Serial Communication NOT working

So I think I found out what's wrong.

Someone suggested that the Serial Monitor opens the port itself, so I needed to do the same with PHP.

I tried this on terminal

screen /dev/tty.usbmodem411 9600

It made a terminal screen for the serial communication (simulated a serial monitor) and worked in sending info to the arduino without the actual Serial Monitor running.

Now I need to do it with PHP, so this is what I tried on PHP

exec("screen /dev/tty.usbmodem411 9600");

It's not working, the page still hangs like before, which made me thing the function isn't executing on terminal.

Any suggestions? :smiley: