Write a PHP script to print current PHP version
<?php
echo 'Current PHP version : ' . phpversion();
?>
Write a PHP script to redirect a user to a different page .
<?php
header('Location:http://www.google.com');
?>
Write a PHP script to get last modified information of a file.
<?php
$file_last_modified = filemtime(basename($_SERVER['PHP_SELF']));
echo "Last modified " . date("l, dS F, Y, h:ia", $file_last_modified);
?>
Comments
Post a Comment