October 2009
Beginner
408 pages
7h 27m
English
Your first step, of course, is to define the ImageHandler class. You want this class to be portable, so you should create a separate file for it called images.inc.php. You save this file in the inc folder (full path: /xampp/htdocs/simple_blog/inc/images.inc.php). After you create images.inc.php, insert the following code to define the class:
<?php
class ImageHandler
{
}
?>
So far you've defined your class is defined; next, you need to determine what methods and properties you need to define.
You need a public method that saves the uploaded image in a folder and returns its path. You also need a public property that stores the folder you want your images saved in. This property is ...
Read now
Unlock full access