Some hints. ⢠You can use a table that will hold the elements and their type. ⢠You can sort the table with your own function. ⢠Remember to do a chdir before ...
Some PHP information functions $val=getenv($varname) $val=get_cfg_var($varname) $user=get_current_user() $val=getmypid() $val=getmyuid() phpinfo() $val=phpversion();
Some important vars
HOMEWORK 3A
Create a PHP script that will do the following
• Show the path of any folder • Show all the folders and then all the files of the folder • You will add a link to every file you will find
Some hints
• You can use a table that will hold the elements and their type • You can sort the table with your own function • Remember to do a chdir before opening a folder
HOMEWORK 3B
Create a script that will open a the following file: http://cs465.free.fr/files/hw3b.html Capture all the meta information of the file Take all the tags off Get all the words of the file Count how many of each word exist Output a list of the existing words with the number of occurrences Give all the META information you can