check xml File is OK or not
i have problem with xml processing
I have a ftp server on which somebody is putting XML. By that XML i am parsing the data and fetching in different files as our need.
Now problem is, when the XML is putting on FTP server, meanwhile my script tries to parse the XML, obviously, XML is not ok, so there will be parse error.
Now i want a method, that can check the XML file is fully written on FTP server after then my script should do any action on it, otherwise my php script should not do anything.
I am running all PHP's from a shell script at some seconds interval.
OS is Centos Linux 5.2
Pl. provide/help a script for above requirement.
Thanks in Adv.
Manish
|