Hits: 23202
Absolute path found. Loading as relative.
Try: ca/tecreations/ViewFile.php -- Online
<?php
function exists($path) {
return file_exists($path);
}
function getFilenameOnly($filename) {
$parts = explode('.',$filename);
$name = "";
for($i = 0; $i < count($parts) - 1;$i++) {
if ($parts[0] != "") {
$name .= $parts[$i] . ".";
}
}
$name .= $parts[count($parts) - 1];
return $name;
}
function getModified($path) {
return filemtime($path);
}
function listFiles($subPath) {
return scandir($_SERVER['DOCUMENT_ROOT'] . $subPath,SCANDIR_SORT_ASCENDING);
}