vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request queries code to delete files in the folder attachment in the host root (https://vborg.vbsupport.ru/showthread.php?t=321775)

sat2006 02-10-2016 05:10 PM

Request queries code to delete files in the folder attachment in the host root
 
Hello,
I need code queries
To
Compare the host files and database files
A large number of file attachments folder, which is not in the database
And a large volume of occupied disk
I want to delete files added by this command.

Attachment Folder Size 100 GB
Size 80 GB of attachments in the database.
#cleanup2# have been drawn.

4.2.3vb
5.4php

tankyou

Dave 02-10-2016 05:12 PM

You can't delete physical files with a SQL query. A custom script has to be written to delete orphan attachments.

http://www.vbulletin.com/forum/forum...ed-attachments
https://vborg.vbsupport.ru/showthread.php?t=195879

sat2006 02-10-2016 10:11 PM

hello,
I run two threads
But not
And still remains files
I need a plugin
for comparison
Add and delete files


I really appreciate your efforts in helping me,
Any script or idea is badly needed.

Where do I find custom script has to be written to delete orphan attachments???

Coder/Designer
Quote:

A custom script has to be written to delete orphan attachments.

Dave 02-10-2016 10:25 PM

Your best bet is to pay someone to do this for you.

sat2006 02-10-2016 11:22 PM

Quote:

Originally Posted by Dave (Post 2564642)
Your best bet is to pay someone to do this for you.

can you?
Are you doing?

TheLastSuperman 02-11-2016 10:10 PM

Quote:

Originally Posted by sat2006 (Post 2564646)
can you?
Are you doing?

He does custom work yes but you must PM him to discuss, you cannot discuss paid work in any forum other than paid request (this is unpaid request forum currently).

Edit: Also unless you setup this script under the root account (not advised imo) then any other user setup I don't believe will have access to delete files in the main folder i.e. the one above /public_html/ such as /home/ACCOUNTNAME/public_html/ if attachments are in fact stored there (which is recommended) however I might be wrong on assuming such so don't hold me to it :p.


All times are GMT. The time now is 06:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00935 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete