If you want to extend RS232, you can get "extenders over LAN", and there are converters available.
Can I connect an RS232 Ethernet converter to a switch and expect to receive data on a PHP server listening to the IP converter?
If the RS232 converter can be 'seen' (best by using a static IP, and having the subnets set up correctly) by the PHP server and the driver can be installed then yes, the data could be received like a normal COM port. RS232 over LAN is a bit different because of the delays, make sure you have good solid link that isn't dropping packets. Also, if your application requires hardware flow control then the link may not work exactly like a normal COM port.