Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
CloudLinux
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Anyone know how to convert .c part of code into .php ?

xrzxrz Barred

This is the code: https://pastebin.com/raw/MDihpbvq

It goes thru folders and update file called dirlog

I only need to convert the part where it writes directory names info file called dirlog

The writing part i think is this:

          log.status = 0;

log.uptime = (time_t) st.st_mtime;
log.uploader = (unsigned short int) st.st_uid;
log.group = (unsigned short int) st.st_gid;
strncpy (log.dirname, temppath, sizeof(log.dirname) - 1);
bytes = 0ULL;
files = 0;
get_dir_size(temppath, &files, &bytes);
log.files = files;
log.bytes = bytes;

            update_log(log);

Anyone know how to convert it? Thx much!

Comments

Sign In or Register to comment.