Howdy, Stranger!

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


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.