PDA

View Full Version : upload file via PHP, can you?



icely2000
10-11-2003, 11:48 AM
I have decied to work on my site online so I uploaded all the files off my computer to SimGames.net of course I'm testing to make sure that everything is working and so far so good, I'm just having one small problem. On my site with the wonderful power of PHP i'm going to allow (or so i think) my members to upload files to our site. But as I was trying to upload a file i noticted that it didn't copy the file onto the network so I'm wondering if you can do this, on this network.

icely2000
10-11-2003, 12:16 PM
I'm trying to upload .zip
and .jpg

Allowee
10-15-2003, 11:35 PM
You can upload files using PHP, and move them succesfully using move_uploaded_file()

I would say try reading the manual again and check your script(s) why it doesn't copy...

I wouldd like to say 1 more thing.
When you allow visistors to upload files you must make sure that they don't upload illegal files.

if they do, you are hosting those files on your account and then it might be deleted for hosting illegal files.

icely2000
10-16-2003, 01:54 PM
o! I'm using copy() I will try that one. Also about the ilegal thing, I already know about that going to make "power" accounts and have people with these account to delete files, edit desc and everything we will have site cops :D