ok, I have one page that is listing files. Now recersive of it there is a file with a function in it. I cann't get the main page to finish listing files if I include the function.
File Struct:
Main folder
|
|Secure- main page here
|Files- files and PHP file with function here.
now the files list fine, I can even link to them and DL them easy. But where ever I include the function call on the main page the lopp end and will ntpo list anymore files. (Usually only the 1st file is listed).
Here's the code.:
Main.php:
<?php
require("login.php");
require("config.php");
require("ipaccess.php");
chdir("apache/websites/temp/ssd/files/");
include("filesize.php");
chdir("apache/websites/temp/ssd/secure/");
echo"$top $top2";
#gets the global upload DIR path
global $the_remote_path;
#sets variable $handle as for th DIR path
$handle = dir($the_path);
#txt printing
print "<font class=\"words2\">Uploaded files:</font><br><br>";
#LOOPS= set $file equal to a read DIR path
while ($file = $handle->read())
{
if (($file != ".") && ($file != ".."))
{
print "<a href=\"".$the_remote_path.$file."\"target=\"_new\" class=\"links\">".$file."</a>-";
//works till here...
FilesSize();
//function checker
if (function_exists('FilesSize()'))
{
echo "FilesSize() functions <font color=\"#33ff33\">online.<br></font>";
}
else
{
echo "FilesSize() functions are <font color=\"#ff3333\">offline.<br></font>";
}
//end checker
//BR
print "<br>";
}
}
echo"$bottom";
?>
Function page:
<?php
function FilesSize()
{
print "<b>I will be the FilesSize</b>";
}
//FilesSize();
?>