Step 1: Create hello.php file with below content.
hello.php
#!/usr/bin/php
<?php
echo 'Hello, World!';
?>
Step 2: Give executable permission to the file hello.php.
chmod +x hello.php
Step 3: Execute the file hello.php.
$./hello.php Hello, World!
Previous Next Home
No comments:
Post a Comment