Page 286 - Computer Software Application TP - Volume 1
P. 286
COMPUTER SOFTWARE APPLICATION - CITS
closedir($directory_handle);
}
else
{
echo “Directory not found: $directory_path”;
}
?>
</body>
</html>
3 Save the program in C:\Apache24\htdocs in a folder with .php extension
4 Run the Apache services from windows services
5 Open the browser and type the following address
http://localhost/foldername/
6 Click the php file to run and verify the output
III Deleting a Directory and Its Contents
1 Open the text editor
271
CITS : IT & ITES - Computer Software Application - Exercise 55 CITS : IT & ITES - Computer Software Application - Exercise 55