i was just given an assignment and im completely lost:
All code must be able to run under an Apache webserver using PHP4 and MySQL if needed.
-
Design a class to access files on a local filesystem. This must include opening a file, making changes, and saving the file. It is important to include the ability to binary read and write so any type of file can be edited. The class should be easy to use and include appropriate error checking.
-
Using the class created in question 1 write a function that will accept the url of a valid image(jpg, gif, png) and download the file to the local machine in a folder called “external_images”. The filename saved should be the return value of the function. The function should be easy to use and include appropriate error checking