So I have this line in .txt
file:
<strong>Position Id:</strong> P0001
<strong>Title:</strong> Sale Clerks
<strong>Description:</strong> do something
<strong>Closing Date:</strong> 25/09/2013
<strong>Position:</strong> Full-Time
<strong>Contract:</strong> On-Going
<strong>Applicated by:</strong> Post
<strong>Location:</strong> NSW
I want to compare the closing date in text file with current server date.this is what i have so far and strtotime wouldn't print out anything.
P.S:
I have to explode the file for other reason too.
if(isset($_GET["title"])){
$title = $_GET["title"];
$cri = $_GET["criteria"];
$err1 = "";
$err2 = "";
if(strlen($title) == 0){
$err1 = "Please Enter Title For Searching";
echo"<p> ",$err1,"</p>";
return;
}
$file = "../data/jobs.txt";
if(! file_exists($file)){
$err2 = "The Job Text File Is not Exist!!!";
echo"<p> ",$err2,"</p>";
return;
}
if($err1 == "" && $err2 == ""){
$count = 0;
$alljobs = file($file);
for($i = 0;$i < count($alljobs);$i++){
$collumns = explode("\t",$alljobs[$i]);
$colTit = explode(":",$collumns[1]);
$colPos = explode(":",$collumns[4]);
$colCon = explode(":",$collumns[5]);
$colApp = explode(":",$collumns[6]);
$colLoca = explode(":",$collumns[7]);
$timeValue = explode(":",$collumns[3]);
echo strtotime($timeValue[1]);