require_once("doclibrary/class.doccounter.php"); $countDocx = ""; $sqlCheck = $connect->query("SELECT * FROM temp WHERE email = '".$_SESSION["email"]."' ORDER BY tempid DESC LIMIT 1"); if($sqlCheck->num_rows > 0){ while($loops = $sqlCheck->fetch_assoc()){ $countDocx = $loops["file"]; $_SESSION["docx"] = $loops["file"]; $_SESSION["title"] = $loops["title"]; } $fileDir = "AuthorReport/".$countDocx; $doc = new DocCounter(); $doc->setFile("$fileDir"); $words = ($doc->getInfo()->wordCount); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)