php connection
Hello everyone,
I have a simple HTML page that prints on screen the date of last update of a file as follows (I have little knowledge of PHP):
<HTML>
<HEAD> </ HEAD>
<BODY>
<? php
$ filename = 'nameFile.xml';
if (file_exists ($ filename)) {
echo "$ filename Was Last modified:". date ("F d Y H: i: s.", filemtime ($ filename));
}
?>
</ BODY>
</ HTML>
I would like to make a request through NSURLConnection in Objective C, and would like me to return the date in a variable, how can I do this?
Do I have to parse the HTML page, or can I get the value directly of the last modification?
Thanks for your help.
|