Class not initialising? [SOLVED]
Posted: Wed Jul 25, 2007 4:51 am
Hi guys,
Can anyone see why this wouldn't be outputting?
The class...
instantiating the class...
Thanks in advance you beautiful people.
Can anyone see why this wouldn't be outputting?
The class...
Code: Select all
class myFunctions{
function myFunctions(){
}
function uploadImg($tmp, $name, $client){
echo "this doesnt even output";
if(!move_uploaded_file($tmp, "press/" . $client . "/images/" . $name)){
echo "press/" . $client . "/images/" . $name . " has not been uploaded.<br/>";
}else{
echo "press/" . $client . "/images/" . $name . " has been uploaded.<br/>";
}
}
}Code: Select all
require('press.class.php');
$imgs = new myFunctions();
foreach($_FILES as $imagefile){
$name = $imagefile['name'];
$tmp = $imagefile['tmp'];
if($imagefile['name'] !== $release){
$imgs->uploadImg($tmp, $name, $client);
}
}