i have a page which has some get variables and i include class file.
what is the best way to get the variables from the page into the class?
my page:
my class, UploadHandler.php:Code:$myPage = $_GET['p']; $userID = $_GET['id']; require_once("./class/UploadHandler.php");
Code:class UploadHandler { function __construct($options = null) { $path = './../' . $userID . '/'. $myPage; } }



Reply With Quote

Bookmarks