Learning PHP and MySQL

Example 03-10 PHP_SELF being used with a file called test.php

<?php
echo  $_SERVER["PHP_SELF"];
?>

Outputs:

/test.php

Posted by on 07/19 at 03:42 PM

Next entry: Example 03-11 Working with strings

Previous entry: Example 03-09 A static variable remembering its last value

<< Back to main