School of Computing DCU
 
Home About Us Research People Prospective Students Current Students Alumni Career Opportunities Staff Intranet
Timetables
Project Submission Form

PHP Tips

To use PHP, copy the file into the 'public_html' directory in your UNIX home directory (S: drive on Windows) - (if the 'public_html' directory is not there, you need to create it!!), then go to:

http://student.computing.dcu.ie/~<your-username>/hello_world.php
e.g. http://student.computing.dcu.ie/~jblogs-cais4/hello_world.php

  • This first script is self-explanatory:

    hello_world.php - Source Code  [Cut n'Paste this text into a file called 'hello_world.php']


  • The next script connects to the "test" database on the Host "student.computing.dcu.ie" with the username "phpuser" and password "phppass":

    mysql.php - Source Code  [Cut n'Paste this text into a file called 'mysql.php']

    Replace these values with your own MySQL account details.


For further information, please see the PHP manual at:
http://www.php.net/manual/en/