Need help with the code.
I modified the script a little to store images by date folder, everything work fine except the images/thumbs/
the folder is created but nothing is uploaded to there
Here's what i did:
in condig.php
$folderdate = date("d.m.y");
$config['folder_images'] = 'images/' . $folderdate;
$config['folder_thumbs'] = 'images/thumbs/' . $folderdate;
in class.upload.php
public function process()
{
if (!is_dir('$img_upload_path')) {
mkdir($img_upload_path , 0777);
chmod($img_upload_path, 0777);
}
if (!is_dir('$thumb_upload_path')) {
mkdir($thumb_upload_path , 0777);
chmod($thumb_upload_path , 0777);
}
I modified the script a little to store images by date folder, everything work fine except the images/thumbs/
the folder is created but nothing is uploaded to there
Here's what i did:
in condig.php
$folderdate = date("d.m.y");
$config['folder_images'] = 'images/' . $folderdate;
$config['folder_thumbs'] = 'images/thumbs/' . $folderdate;
in class.upload.php
public function process()
{
if (!is_dir('$img_upload_path')) {
mkdir($img_upload_path , 0777);
chmod($img_upload_path, 0777);
}
if (!is_dir('$thumb_upload_path')) {
mkdir($thumb_upload_path , 0777);
chmod($thumb_upload_path , 0777);
}