Directory structure On PHPoC Devices
We can access this directory and files via PHPoC Debugger. It looks like below:
./mmap folder contains setting information and it can not access via PHPoC Debugger. It is only accessible via source code.
What kind of files can be uploaded to PHPoC devices?
- Of course, we can upload .php files (called PHP files or PHPoC files) to PHPoC devices. PHPoC files is categorized into three types based on functionalities:
- Library files, which is usually placed in /lib sub-directory and only contain PHPoC code.
- Files which is run in system loop. It is usually placed in root directory and and only contain PHPoC code.
- Files which run in response to HTTP request. This kind of file is usually placed in root directory and is used for Web Application (called, Web Apps). It not only contain PHPoC code but also other code for creating web page (such as HTML code, JavaScript code, CSS code).
- Other file for Web Apps development such as image files (.png, .jpg, .gif ...), JavaScript files (.js), CSS files (.css). These kinds of files is usually placed in root directory.
- Which file is mandatory?
- Which PHPoC file is run internally in PHPoC system loop?
- Which PHPoC files is run in response to HTTP request from outside?
- How to make PHPoC file refuse to serve HTTP request?
- Is it possible that one file run both on system loop and in response to HTTP request?
- How to make PHPoC file run in system loop?