GetDotted Domains

Viewing Thread:
"Shouldn't have tried to learn PHP..."

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.

Tue 29/04/03 at 17:02
Regular
Posts: 787
I knew it, I'll go fine for a few minutes and then crash and burn!

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.
Wed 30/04/03 at 21:49
Regular
"Chavez, just hush.."
Posts: 11,080
Done it.

I've found a script that works!

I'm also quite surprised how much I've learnt in the two days I've tried it too!
Thu 01/05/03 at 22:29
Regular
"Chavez, just hush.."
Posts: 11,080
OK, why doesn't this script allow me to upload swf files...


//user defined variables
$abpath = "./games"; //Absolute path to where games are uploaded. No trailing slash
$sizelim = "no"; //Do you want size limit, yes or no
$size = "2500000"; //What do you want size limited to be if there is one
$number_of_uploads = 3; //Number of uploads to occur

if ($_REQUEST['submitted']){ // Begin processing portion of script

//all file types to upload
$cert1 = "flash/swf"; //swf flash


$log = "";

for ($i=0; $i<$number_of_uploads; $i++) {

//checks if file exists
if ($img_name[$i] == "") {
$log .= "No file selected for upload $i
";
}

if ($img_name[$i] != "") {
//checks if file exists
if (file_exists("$abpath/$img_name[$i]")) {
$log .= "File $i already existed
";
} else {

//checks if files to big
if (($sizelim == "yes") && ($img_size[$i] > $size)) {
$log .= "File $i was too big
";
} else {


//Checks if file is an image
if (($img_type[$i] == $cert1) or ($img_type[$i] == $cert2) or ($img_type[$i] == $cert3) or ($img_type[$i] == $cert4) or ($img_type[$i] == $cert5) or ($img_type[$i] == $cert6) or ($img_type[$i] == $cert7) or ($img_type[$i] == $cert8) or ($img_type[$i] == $cert9) or ($img_type[$i] == $cert10) or ($img_type[$i] == $cert11) or ($img_type[$i] == $cert12) or ($img_type[$i] == $cert13) or ($img_type[$i] == $cert14) or ($img_type[$i] == $cert15) or ($img_type[$i] == $cert16) or ($img_type[$i] == $cert17)) {
@copy($img[$i], "$abpath/$img_name[$i]") or $log .= "Couldn't copy Flash game 1 to server
";
if (file_exists("$abpath/$img_name[$i]")) {
$log .= "File $i was uploaded
";
}
} else {
$log .= "File $i is not an Flash game
";
}
}
}
}


}

?>



Flash game Report


Log:


echo "$log";

?>




exit;
} // End processing portion of script
?>


Files to upload:


for ($j=0; $j<$number_of_uploads; $j++) {
?>


}
?>



---------

It was designed for images but I changed it to allow me to upload swf files...

It hasn't changed that much, only the file types but it still won't work.

If you want to see the original I'll post it.

Thu 01/05/03 at 22:34
Regular
"It goes so quickly"
Posts: 4,083
On Freeola??

They won't allwo it :)
Thu 01/05/03 at 22:38
Regular
"Chavez, just hush.."
Posts: 11,080
Oh, OK.
Thu 01/05/03 at 22:52
Regular
"Chavez, just hush.."
Posts: 11,080
7. The upload of web pages and other files to the Freeola server and the sending of e-mails and attachments from any Freeola1000 address or hosted domain is permitted only via a dial-up networking connection to the official Freeola 0845 Dial-up dial-up numbers. Any other method will be regarded as a hacking attempt with appropriate action taken against the perpetrator.

Ah...

I was all looking forward to that...

Good job none of the files work then isn't it!

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd
Simple, yet effective...
This is perfect, so simple yet effective, couldnt believe that I could build a web site, have alrealdy recommended you to friends. Brilliant.
Con

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.