The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I've learnt how to make a flashy little form now! (Yay!)
Anyway, how would I manage to create a list of files within a directory?
Say I wanted to print all of the files in the directory
http://members.lycos.co.uk/phi11ip/pics/
What would I do?
Is it easy, or slightly harder than I expect in which I'll just leave it!
Thanks.
I've learnt how to make a flashy little form now! (Yay!)
Anyway, how would I manage to create a list of files within a directory?
Say I wanted to print all of the files in the directory
http://members.lycos.co.uk/phi11ip/pics/
What would I do?
Is it easy, or slightly harder than I expect in which I'll just leave it!
Thanks.
Hopefully this one should work.
I'll just download something to make my PC a server so I can test it.
So, what one should I download!?!?
$Folders = "";
$Folder_Count = 0;
$Files = "";
$File_Count = 0;
print "
print "
FOLDERS | \n";FILES | \n";
\n$Folders\n"; print " | \n";\n$Files\n"; print " | \n";
$Folder_Count $Folder_Text | \n";$File_Count $File_Text | \n";
print "
?>
Fatal error: Maximum execution time of 10 seconds exceeded in listing.php on line 22
I found another one which is OK, it creates a thumbnail of all the images in the folder which could be quite useful.
Oh, and this script doesn't seem to be working no matter how hard I try:
This is the form page:
This is the PHP file:
if ($File_name){
if (copy($FileToUpload, "./photos/$File_name")){
echo 'File Name :' . $File_name .';
echo 'File Size :' . $File_size .';
echo 'The file was successfully uploaded!';}
else
echo 'Your file could not be copied.';
unlink($FileToUpload);
?>
I got a parse error on line 4 I think, my crapy attempt to fix it was this:
if ($File_name){
if (copy($FileToUpload, "./photos/$File_name")){
print ("The name of the file is $File_name");
print ("The size of the file is $File_size");
print ('The file was successfully uploaded!");}
else
print ("File not uploaded");
unlink($FileToUpload);
?>
But then I get a parse error on the last line. The close php tag.
Does anybody have any simple file/image uploading scripts?
I've tried on Freeola to test them but it still doesn't work...
Grrr..