Php script and cron job
- or -
Post a project like this2372
€100(approx. $107)
- Posted:
- Proposals: 9
- Remote
- #1726517
- Awarded
PHP/Wordpress/Python/React/Flutter - Web Development,Mobile Development,Data Science
Bay Minette
7+ Yr. | PHP | WordPress | React.JS| React Native | Multilingual Website|Native Android / IPhone Mobile Apps | Flutter|Laravel|Magento | Angular.JS| Vue.JS
Surat
160180696248754815116121613074941457798150401017264901848285
Description
Experience Level: Expert
General information for the website: affiliate site
Kind of development: Customization of existing website
Sorry, tags don't work here, using [] to replace them.
Description of requirements/features: The job, in short consists in:
1-create a php script that will:
-retrieve XML feeds from an array of URLs
-combine these feeds into one XML file, this way:
a. modify retrieved XML files adding an attribute to their root ([offers] must be changed into [offers name="search_query"] - See below to understand what "search_query" is)
b. create a new XML file with his own root
c. append the content of XML files as modified at step a, one after another, inside the root of the new XML file
d. save the new XML file to a location to be specified in my website
2-create a cron job in my website cPanel that executes the above PHP script once per day
DETAILS:
URLs all have the same structure:
http://www.example.com/affiliate-ID/search_query.aspx?category_ID=XXX
The returning XML feeds are like this (simplified version):
[offers]
[product id="xxxx"]more nested stuff here[/product]
[product id="yyyy"]more nested stuff here[/product]
....
....
[/offers]
The result I would like to have is:
[whateverroot]
[offers name="search_query1"]
[product id="xxxx"]more nested stuff here[/product]
[product id="yyyy"]more nested stuff here[/product]
....
....
[/offers]
[offers name="search_query2]
[product id="zzzz"]more nested stuff here[/product]
[product id="vvvv"]more nested stuff here[/product]
....
....
[/offers]
[/whateverroot]
It must be possible for me to simply edit the php script later, adding more URLs to the array.
It's not a difficult job. Fast execution is required (within today, if possible). I know how to do this, in theory, but my limited coding skills do not allow me to put all this together. Skype communication is preferred.
The job winner will be granted full access to my cPanel and more info on the URLs.
Extra notes:
Kind of development: Customization of existing website
Sorry, tags don't work here, using [] to replace them.
Description of requirements/features: The job, in short consists in:
1-create a php script that will:
-retrieve XML feeds from an array of URLs
-combine these feeds into one XML file, this way:
a. modify retrieved XML files adding an attribute to their root ([offers] must be changed into [offers name="search_query"] - See below to understand what "search_query" is)
b. create a new XML file with his own root
c. append the content of XML files as modified at step a, one after another, inside the root of the new XML file
d. save the new XML file to a location to be specified in my website
2-create a cron job in my website cPanel that executes the above PHP script once per day
DETAILS:
URLs all have the same structure:
http://www.example.com/affiliate-ID/search_query.aspx?category_ID=XXX
The returning XML feeds are like this (simplified version):
[offers]
[product id="xxxx"]more nested stuff here[/product]
[product id="yyyy"]more nested stuff here[/product]
....
....
[/offers]
The result I would like to have is:
[whateverroot]
[offers name="search_query1"]
[product id="xxxx"]more nested stuff here[/product]
[product id="yyyy"]more nested stuff here[/product]
....
....
[/offers]
[offers name="search_query2]
[product id="zzzz"]more nested stuff here[/product]
[product id="vvvv"]more nested stuff here[/product]
....
....
[/offers]
[/whateverroot]
It must be possible for me to simply edit the php script later, adding more URLs to the array.
It's not a difficult job. Fast execution is required (within today, if possible). I know how to do this, in theory, but my limited coding skills do not allow me to put all this together. Skype communication is preferred.
The job winner will be granted full access to my cPanel and more info on the URLs.
Extra notes:
Andrea P.
100% (26)Projects Completed
26
Freelancers worked with
15
Projects awarded
16%
Last project
25 May 2020
Italy
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies