Ok i have this script to read a tar.gz file that contains the sql for my database. I am trying to read that file and open up a folder in the file and display the files in that folder. This is what i have so far.
set_time_limit(180);
if ($compression ==1) $file=gzread(gzopen($path.$file, "r"), 10485760);
else $file=fread(fopen($path.$file, "r"), 10485760);
//open directory in file here
//display contents in the directory
echo "<a href=$page.php?sqlfile=$watever>";
Then on the next page i wish to open up the .sql file and print out the info. Please Help. Thanks