File Genie PHP Support Product Page

Thumbnails not deleting

Asked 21 Dec 2010 01:17:09
1
has this question
21 Dec 2010 01:17:09 Phil Boyle posted:
I've used this to delete images lots of times.
Test page code here:

<?php require_once('../ScriptLibrary/incFileGenie.php'); ?>
<?php
// *** Delete Listed File
deleteListedFile();
?><?php
// *** Folder List 1.05
$delete_photo = new fileGenie();
$delete_photo->path = "gallery/wjones";
$delete_photo->allowedExtensions = "GIF,JPG,JPEG,BMP,PNG";
$delete_photo->includeFolders = false;
$delete_photo->showThumbnailsOnly = true;
$delete_photo->thumbnailsSuffix = "thumb_";
$delete_photo->naming = "prefix";
$delete_photo->thumbPath = "gallery/wjones";
$delete_photo->processFolder("fileName", "ASC");
?>
<?php
// *** Folder List Repeater Vars 1.04
$delete_photo->setPageRecs(0);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
// *** Folder List Repeater Start
while ($delete_photo->canRepeat()) {
?>
  <?php echo $delete_photo->folderList("thumbnailImage"); ?><br/><?php echo $delete_photo->folderList("name"); ?><br/> <a href="<?php echo $delete_photo->getDeleteLink(); ?>">delete</a><br/>
  <?php
  $delete_photo->MoveNext();
}
$delete_photo->endRepeater();
// *** Folder List Repeater End
?>
</body>
</html>


And yet for some reason it isn't deleting thumbnails off the server. They are deleting from the display page but they are still showing on the server - the large image is deleting.
I've never seen this happen before.

Could it be a problem on the server side? These thumnails were created by sipp and the main image was also resized bt sipp.

Any suggestions.
Phil

Replies

Replied 22 Dec 2010 10:46:52
22 Dec 2010 10:46:52 Miroslav Zografski replied:
Hello Phil,

Please, provide more information on your server and workstation environment.

Are there any errors or something that can possibly narrow the cause?
Can you set up a testing page so we can check this issue/

Regards,

Reply to this topic