Your job is to create a script in PHP to? parse XML data and determine if a incoming user's first name or Last name is in an entry of the XML feed.
The XML you will use will be the same as the attached XML file.? ?
You will have two incoming parameters to this script:
$FirstName = $_GET['FirstName'];
$LastName = $_GET['LastName'];
Your task will be to verify that either? $FirstName or? $LastName is located in the user_name field of one of the <Network> entries of the XML string.?
For instance, if $FirstName is Sally and an XML element is <user_name>SallySmith</user_name>? then set $Verified =1
another example? if $LastName is Saad and an XML element is <user_name>allySaadSmith</user_name>? then set $Verified =1
Also, you will assign to the variable $image_url the value of the first non-null entry of <image_url></image_url> from any of the network entries
for instance in the attached XML $image_url would be set to
[login to view URL]
after parsing the XML.? The assignment must be done immediately as this is very simple.? ? Must be coded in PHP using simplexml.? ? ? ? You will be provided a file that has an incoming feed from a URL.? Your job is to get the code to import XML from that feed and do the functionality as described above.? The code will be provided to you upon accepting the project.
## Deliverables
You will be provided code that does 90% of the functionality described in this document.? Your job is to modify the code to get the desired functionality to work with minimal changes to the code.? SimpleXMl must be used.