Now, Let's see how it works.
After developing source code files and upload it to PHPoC devices, you can access it via web browser.
When you types IP address of PHPoC on web browser, web browser actually makes an HTTP request to PHPoC device.
When receiving HTTP request from web browser, Web server does:
- Get the requested file name on PHPoC request. For example, if you type "http://192.168.0.180/my_file.php", the file name is my_file.php. If you do not specify file name (just type "http://192.168.0.180"), the index.php file name is used as default.
- Finds the file in system.
- Reads that file if the file exists.
- Seeks for PHPoC code in the file (PHPoC code is placed in side "<?php ?>" or "<? ?>" tags).
- Interpret PHPoC code. (PHPoC code can be used to monitor/control sensors/devices or other works)
- Send the interpreted file to web browser.
Web browser displays web page according to content of the received file.