PHP to XML script

Completed Posted 5 years ago Paid on delivery
Completed Paid on delivery

Here is the current situation.

On server I have one folder that holds my scripts and has certain number of folders in it.

Each folder contains number of JPG images with following naming convention:

[login to view URL] (yyyymmdd is date untill product is walid).

And each folder has one "[login to view URL]" file that tell us where this folder belongs (in our case [login to view URL] contains name either parent A or parent B).

I need a PHP script that will do 2 things:

1. It will be called via CRON on 00 hours to go through all folders and delete each JPG file wich yyyymmdd has expired (where current date is greater that date in JPG name).

2. after that job is done it shud create XML called ([login to view URL]).

currently XML is structured like this:

<?xml version='1.0' encoding='utf-8'?>

<lista>

<kategorija>

<l1>parent A</l1>

<l2>folder X</l2>

<l2>folder Y</l2>

</kategorija>

<kategorija>

<l1>parent B</l1>

<l2>folder Q</l2>

<l2>folder Z</l2>

</kategorija>

</lista>

Now what needs to be done here is that each folder at the end of its name must have a number that says how many JPG files are inside of it.

... and parent (wich is not folder but just level one category in XML) where these folders belong to need to have their cummulative value added to its name.

eg. this XML sample can look like this:

<?xml version='1.0' encoding='utf-8'?>

<lista>

<kategorija>

<l1>parent A (7)</l1>

<l2>folder X (2)</l2>

<l2>folder Y (5)</l2>

</kategorija>

<kategorija>

<l1>parent B (3)</l1>

<l2>folder Q</l2> <--- does not contain any JPG

<l2>folder Z (3)</l2>

</kategorija>

</lista>

Empty folder naming shud be set as double quotes "" so i can easy change it to display zero ("0") if needed.

Notice that i live in Croatia and we have special characters like Č č Š š Ć ć Đ đ Ž ž so everything needs to be UTF-8

JavaScript MySQL PHP Software Architecture XML

Project ID: #16761789

About the project

10 proposals Remote project Active 5 years ago

Awarded to:

vano101

Hello I have about 1,5 years of experience with PHP programming language, it's enough to complete this simple task.

$27 USD in 2 days
(1219 Reviews)
7.7

10 freelancers are bidding on average $27 for this job

rinsadsl

Hi there I clearly understood your requirement. I can write this PHP program to delete the images whose date/time has expired and generate the XML file in UTF-8 format. Looking forward to working with you. Thanks More

$30 USD in 2 days
(1280 Reviews)
9.4
aradadiya163

hello sir i am expert in php to xml script making i am able to do this work you will satisfy with my work i can do this work asap this simple work for me thank you

$25 USD in 1 day
(302 Reviews)
7.3
shayona163

hello sir i am expert php and xml i am able to do this work you will satisfy with my work i can do this work asap this simple work for me thank you

$20 USD in 1 day
(266 Reviews)
7.2
bonyp

I CAN DO IT Hello there, Greetings of the day ! We are a small but excellent team of designer and developer. If you will hire us then I am damn sure that you will be fully satisfied with my expertise. I hav More

$25 USD in 2 days
(0 Reviews)
0.0