Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

CA170      CA2106      CA686      CA686I

Online AI coding exercises

Project ideas


PHP


Server-side code.

Normally in public_html
Normally named like: file.php

File contains normal HTML, and PHP code mixed in, delimited as follows:

<html>
<body>

html code

<?php 
php code 
?>

more html code





Basics




Environment




Example PHP pages

  1. PHP demo

  2. Return a single environment variable:


Debugging

  

Dump variables




Reference

  

Tutorials



Search php.net: with Google.



ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.