Posted By
|
Message
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
13th June, 2003 at 14:16:36 -
you know those forms that allow a visitor to send a file by clicking a browse button? well, i want one. the problem is i have no idea how they work. i know plenty of hosted CGI things that deal with form processing but i don't know of any that allow you to do this.
so... basically, does anyone know how i can get the file submission form button to work? preferably with hosted, free CGI... because beyond that, i'm in over my head.
thanks.
www.thenatflap.co.uk
|
ShadowCaster Possibly Insane
Registered 02/01/2002
Points 2203
|
13th June, 2003 at 20:00:51 -
In what language? ASP? PHP? Perl?
You mentioned CGI, but CGI isnt a language, it's a way of executing scripts of many different languages (i.e. Perl, C, etc).
PHP is the easiest to do this with, but it's possible with all of the forementioned scripting languages.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
14th June, 2003 at 05:24:03 -
i honestly don't have a clue about what language i want to be using. i was really looking to find some free scripts somewhere that work without explaination.
shadow, if you could tell me where to get started with PHP, i'd be happy to learn the basics, as long as i'd be able to do have a submit file button. thanks.
www.thenatflap.co.uk
|
ShadowCaster Possibly Insane
Registered 02/01/2002
Points 2203
|
14th June, 2003 at 07:42:47 -
I dont really know any sites that teach you PHP...
Just quickly, heres some help files for the commands you'll need in PHP. As I said, it's very easy in PHP so you dont need a huge deal of code unless you want to do something really spiffy...
http://au.php.net/manual/en/reserved.variables.php#reserved.variables.files (files are uploaded automatically when you click submit, this will show you where PHP stores the file data temporarily so that you can save it for later use after the script has finished executing)
http://au.php.net/manual/en/function.fopen.php (shows you how to open a file so that you can save the uploaded data)
http://au.php.net/manual/en/function.fwrite.php (shows you how to write to a file that you've opened)
http://au.php.net/manual/en/function.fclose.php (closing a file once you've finished with it -- IMPORTANT)
If you've programmed before it should be pretty easy to work out how to use all of the above functions and variables, since it's similar to many other languages. If not, you can ask me more specifically what you need help with and I'll help you out, or you can try and find something on the net.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
|
Long John Kickbag
Registered 26/08/2002
Points 148
|
14th June, 2003 at 07:48:22 -
Send a file where exactly? If you want to upload it then look into the copy function, http://www.php.net/manual/en/function.copy.php .
Resize! - www.clicksplat.com/comparison.html
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
14th June, 2003 at 08:41:48 -
thanks for those links shadow. i'll have a go.
i've found plenty of PHP reference books at www.books24x7.com, so i'll have a shifty through some of them as well.
www.thenatflap.co.uk
|
Santa
Registered 19/05/2003
Points 644
|
14th June, 2003 at 09:59:44 -
if your wanting top set something up like the one on my site
http://www.atnas.com/upload/
that allows ya to upload picis i can send u the script if ya give me a e-mail addy
all you have to do is upload it using something like cute FTP, right click it and change the access permisions then ya all done.
SAnTA - www.atnas.com
-------------------
www.create-games.com/download.asp?id=2918
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
15th June, 2003 at 09:04:12 -
thanks, santa, i've dc-mailed you.
www.thenatflap.co.uk
|
|
|