XFileSharing Pro - DB to File / Server Disk Space Update / File to DB etc.

Powerfull XFileSharing version

Moderator: admin

Message
Author
stamos
Posts: 139
Joined: Nov 11, 2010 5:37 pm

DB to File / Server Disk Space Update / File to DB etc.

#1 Postby stamos » Apr 19, 2012 1:45 pm

is it possible to run this script only for one server at a time and not for all servers?
this might help avoiding time outs.

stamos
Posts: 139
Joined: Nov 11, 2010 5:37 pm

#2 Postby stamos » Apr 20, 2012 5:43 pm

when I see this on index.cgi

Code: Select all

   my $servers = $db->SelectARef("SELECT * FROM Servers WHERE srv_status<>'OFF' ");
   for my $s (@$servers)


and I change it to this:

Code: Select all

   #my $servers = $db->SelectARef("SELECT * FROM Servers WHERE srv_status<>'OFF' ");
$servers=12;
   for my $s (@$servers)


will that work only for server 12 then?

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#3 Postby nyan » Apr 20, 2012 8:19 pm

no
$db->SelectARef("SELECT * FROM Servers WHERE srv_id = 12 AND srv_status<>'OFF' ");

I guess

stamos
Posts: 139
Joined: Nov 11, 2010 5:37 pm

#4 Postby stamos » Apr 20, 2012 9:26 pm

true, that should work as well.
good point!


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests