Hi all,
Im new to the Php world only just having done a 2 day course. Problem I have is my boss expects me to know everything! and to be honest PHP confused me a bit and the book I recieved with the course was rubbish!
Anyway heres what the boss wants me to do by monday!
I need to read in an xml file;
$file = "chart_data.xml"; (is this right?)
then I need to extract a FileName contained as one of the elements heres an eg. of my xml:
<charts>
<AirField>
<name>CYYT ST JOHNS NFLD</name>
<Plate>
<Title>CENTRAL DE-ICING FACILITY</Title>
<FileName>CYYTF1</FileName>
</Plate>
<Plate>
<Title>BURIN 8 (LEXAK,BURIN 8) RNAV STAR</Title>
<FileName>CYYTH2</FileName>
</Plate>
<Plate>
<Title>NDB RWY 29</Title>
<FileName>CYYTP2</FileName>
</Plate>
</AirField>
</charts>
I need to then use the info used within the <FileName> tag and use it to search a folder containing PDFs and see if the required file is there?
do I use the Is_file command?
I then need it to produce a text file of all the missing files?
I may be using the wrong technology here, but it seemed possible to do? basicaly parse the filename add the extention have it look for the full name in the folder if false return a list of "False" file names?
Ive spent 3 days on this now and havent got anywhere! im thinking of looking for another course!
If anyone understands what im on about 🙂 please explain what I have to do as im lost! If you can supply some code for me to learn from it would be handy also!
thanks
Mike