Em Andamento

Need a PHP script to read folder names, and sub folder names and file names

I have hundreds of folders on my site.

root/public_html/files/abc

root/public_html/files/abcd

root/public_html/files/abdc

and so on ...

each has at least one subfolder

root/public_html/files/abc

root/public_html/files/abc/xyz

this sub folder has some files ...

I need a script that I could execute at the root / public_html ... and it goes through the list of folders in the folder `files`, copies the folder name, and adds it to my mysql_database table, then goes in and gets the name of the subfolder and enters that in the same row of the table as the parent folder, and the same for the rest of the files.

I am on a short deadline, so need this done ASAP.

If you have any questions, feel free to email me.

G

The script must be well commented and use functions wherever possible.

- P.S. The number of folders can vary. The script must count the folders and then loop accordingly.

- The script must be crash proof. This means that let's say the script processed 200 folders and then crashed, when we re-execute it it should start from where it left it (to avoid duplicate entries in the database).

Habilidades: Engenharia, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: proof read this, sub, root folder, names and, duplicate table, php script execute, php script read table, loop table, duplicate file, list sub list, email count read script, php folder list, loop table php, loop list database, read email php script, need email database free, list number names, duplicate php script, loop row php, script adds, short adds, script php read file, rest php script, php script crash, php read folder

Acerca do Empregador:
( 49 comentários ) Toronto, Canada

ID do Projeto: #3014070

Premiar a:

nuhmanvw

See private message.

$7 USD em 2 dias
(7 Avaliações)
1.1

12 freelancers estão ofertando em média $14 para este trabalho

phpguru2012

See private message.

$17 USD in 2 dias
(200 Comentários)
6.4
rylkov

See private message.

$17 USD in 2 dias
(63 Comentários)
5.6
dexter1502

See private message.

$17 USD in 2 dias
(49 Comentários)
5.2
devbavi

See private message.

$12.75 USD in 2 dias
(66 Comentários)
5.0
w3developers

See private message.

$12.75 USD in 2 dias
(8 Comentários)
4.5
engmalaa

See private message.

$17 USD in 2 dias
(22 Comentários)
4.4
ebagrov

See private message.

$17 USD in 2 dias
(16 Comentários)
4.1
theotheronevw

See private message.

$13.6 USD in 2 dias
(21 Comentários)
4.1
bestflancer

See private message.

$12.75 USD in 2 dias
(7 Comentários)
3.5
sabasoftisb

See private message.

$17 USD in 2 dias
(10 Comentários)
2.4
sebbz0rer

See private message.

$10.2 USD in 2 dias
(3 Comentários)
0.8
sullyhelenavw

See private message.

$15.3 USD in 2 dias
(0 Comentários)
0.0