Lab - PHP
- Make PHP page on student.computing.dcu.ie.
- Output some tags. Note code is not visible to client.
- Define some variables and output them.
- Make page with var_dump($_SERVER);
- Make page with phpinfo();
- Implement the PHP demo page.
- Consult PHP reference site to get syntax right.
PHP command-line, etc.
- Can we make command-line call on student.computing.dcu.ie?
- Run the test to find out what is enabled.
- What user does PHP run as?
runs on www.computing.dcu.ie
- On that server, it can make a command-line call and we see that
the PHP runs as user "wwwrun".
- On student.computing.dcu.ie, can we make a command-line call?
- If so, what user does PHP run as?
- Can we make HTTP call on student.computing.dcu.ie?
- Use file_get_contents to fetch HTTP page and dump it to stdout
PHP include v. SSI include
- Include another PHP page with
- Can use this instead of SSI include.