由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - how to upload a local file to web server?
相关主题
Still not working.. Re: 网页编码问题请教[转载] question on Javascript..sorry.
有谁在家里自己host吗?help with making a file downloadable on the site
在CGI程序中有何好方法返回HTMLHow to add the password to a homepage?
请教关于multipart/form-dataHelp!How to post homework scores on webpage?
php新手问个upload file简单问题(谢谢解答,有包子答谢)question on art file
script questionwebserver setup help
web server & application server for UNIXwin2000 webserver question
is IIS server4.0 free download?apache web server under NT4.0?
相关话题的讨论汇总
话题: file话题: upload话题: char话题: server话题: local
进入BuildingWeb版参与讨论
1 (共1页)
o******t
发帖数: 1144
1
After


what code should be?
b****e
发帖数: 985
2
that's all for client side

【在 o******t 的大作中提到】
: After
:
:
: what code should be?

o******t
发帖数: 1144
3
So after I select a file and click the "submit", I can get
the filename, and what should I do next to really get the
file upload to webserver?

【在 b****e 的大作中提到】
: that's all for client side
c***y
发帖数: 16
4
你要编server端程序么?
如果你用的是perl,
那该文件名就是文件句柄,
你可以直接对其操作。
之后,所谓上载,
就只是文件的读存了。

【在 o******t 的大作中提到】
: So after I select a file and click the "submit", I can get
: the filename, and what should I do next to really get the
: file upload to webserver?

t**h
发帖数: 8
5

depends on which tool/language you use in your server-side
programming.

【在 o******t 的大作中提到】
: So after I select a file and click the "submit", I can get
: the filename, and what should I do next to really get the
: file upload to webserver?

f******y
发帖数: 14
6
我从网上扒下来的,语言是perl
#!/usr/local/bin/perl5.003
#
# File Upload Script Version 6.00
# Created by Jeff Carnahan j***[email protected]
# Created on: 4/8/95 Last Modified on: 01/23/98 23:06
# Scripts Archive:
http://www.terminalp.com/scripts/
#
#
f******y
发帖数: 14
7
下面是c语言的,
你不必仔细看,这是cgihtml的一部分,你在网上搜索cgihtml,
保证可以搞到全部代码,
其实上在文件是非常基本的功能,网上肯定有,找就是了
int parse_form_encoded(llist* entries)
{
long content_length;
entrytype entry;
node* window;
FILE *uploadfile;
char *uploadfname, *tempstr, *boundary;
char *buffer = (char *)malloc(sizeof(char) * BUFSIZ + 1);
char *prevbuf = (char *)malloc(sizeof(char) + BUFSIZ + 1);
short isfile,done,start;
int i,j;
int bytesread,prevbytesread;
int buffersize;
int numentries = 0;
#ifdef WINDOWS
setmode(f

【在 t**h 的大作中提到】
:
: depends on which tool/language you use in your server-side
: programming.

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
apache web server under NT4.0?php新手问个upload file简单问题(谢谢解答,有包子答谢)
怎么把webserver和DB装在不同机器上script question
问一个土问题 关于 urlweb server & application server for UNIX
Getting startedis IIS server4.0 free download?
Still not working.. Re: 网页编码问题请教[转载] question on Javascript..sorry.
有谁在家里自己host吗?help with making a file downloadable on the site
在CGI程序中有何好方法返回HTMLHow to add the password to a homepage?
请教关于multipart/form-dataHelp!How to post homework scores on webpage?
相关话题的讨论汇总
话题: file话题: upload话题: char话题: server话题: local