00:00
00:00
Newgrounds Background Image Theme

Ectophasm just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

PHP: file uploads

11,259 Views | 65 Replies
New Topic Respond to this Topic

Response to PHP: file uploads 2007-02-10 10:02:35


They don't need to go any where. They are just for your convenience.
They are just different things about the file you might want to display or what not.


Hello, from the past!

[ PHP: Main ]

BBS Signature

Response to PHP: file uploads 2007-02-10 10:58:28


At 1/29/06 12:11 PM, EviLDoG wrote: To see if the directory has write permissions:
if ( !is_writable ( $_SERVER['DOCUMENT_ROOT'] . $upload_path ) ) {
exit ('Directory is not writable, please chmod '.$upload_path.' to 777');
}

I tried that and it says it's not Chmod 777, although in my FTP it says Chmod777

>.<

:They don't need to go any where. They are just for your convenience.
:They are just different things about the file you might want to display or what not.

And thanks, Momo-the-Monkey :)

Response to PHP: file uploads 2007-02-10 16:53:57


Well, I'm currently doing an uploading system with a database. I'm having trouble with the editing the original submission though....I want to make it like Newgrounds, you know, if you have a new version of the flash, you can re-upload it, and it changes it. I'm almost to that point! I can allow the user who created the flash to edit it, but otherwise, I'm gonna try to make it delete the old file, and possibly re-upload the new one if they change the filename...

Here's my source so far...for uploading and editing...
http://pastebin.ca/349536

http://pastebin.ca/349538

Anybody know how I would do this?

Response to PHP: file uploads 2007-02-11 09:15:25


Sorry, but just to make sure, because I have tried almost everything else;

I have a file called 'upload_form.php' with the form script in. I also have a file with the php script placed in, called 'upload.php'. Do I have to have the 'upload.php' file in the 'uploads' folder, and is the 'uploads' folder where the uploads go to?

I'm very confused at this present time with the folder directories and such. I have also chmod 777 on the 'uploads' folder.

This is what I have;

action="upload.php" - In the 'upload_form.php'

$upload_path = '/uploads/'; - In the 'upload.php' file. The 'uploads' folder is in the same place as both of the .php files.

Any help would be appreciated greatly.

Thanks, Andy.

Is the folder path from your upload form

Response to PHP: file uploads 2007-08-14 00:01:23


Awesome man this will really help my graphic site for new tuts and such.


: :::: ::::::::::: ::::::: :::::::: :::::::::: ::::::::::::: :/Sign Jflash8's Blog\: ::::: ::::::::::: ::::::: :::::::: ::::::::: :

BBS Signature

Response to PHP: file uploads 2008-11-15 00:04:18


I know this is a ridiculous bump,but I thought I would post this...

List of Mime types:
http://knoxiusmedia.com/extra/mimetypes.
html

This is a list I found in the cPanel of my host,and I thought it would be useful to post here.

I hope it helps,and does not hurt your eyes.


wat