由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - a simple question about php
相关主题
script question[转载] 应该怎么实现
php新手问个upload file简单问题(谢谢解答,有包子答谢)Help in building a web site
[转载] HOW TO UPLOAD A FILE INTO DATABASElink dependency
How to upload file/files via web pages?help with making a file downloadable on the site
Re: How to upload file/files via web pagquestion on art file
JQuery and Master Pages in ASP.NETHow to get CGI files of a server
Using a new domain namehelp! how to read/write file in server-side with javascript in IE?
Re: [求助] 如何在自己主页上建立能让别人浏览时上传文件的功能?[转载] Perl CGI and Excel files
相关话题的讨论汇总
话题: thefile话题: name话题: file话题: php话题: machine
进入BuildingWeb版参与讨论
1 (共1页)
a*********a
发帖数: 22
1
I was trying to create php page to upload files. in the form, I have:

but in the php script called by this form, I can only access $thefile, while
$thefile_name is undefined. And what's strange also is the $thefile is the
file name on the remote machine (where the file is from), but it should be the
file name on the local machine, according to some turoials. Can anyone tell me
what's wrong? Thanks.
s**********i
发帖数: 711
2

file name on local machine? why there's a file name
on local machine?

【在 a*********a 的大作中提到】
: I was trying to create php page to upload files. in the form, I have:
:
: but in the php script called by this form, I can only access $thefile, while
: $thefile_name is undefined. And what's strange also is the $thefile is the
: file name on the remote machine (where the file is from), but it should be the
: file name on the local machine, according to some turoials. Can anyone tell me
: what's wrong? Thanks.

a*********a
发帖数: 22
3
The local machine I mean here is the machine runs the php upload script. The
script will save the uploaded file with the name $thefile_name?

while
the
tell me

【在 s**********i 的大作中提到】
:
: file name on local machine? why there's a file name
: on local machine?

j*****o
发帖数: 320
4
Try:
$_FILES['thefile']['name']
Details at:
http://www.php.net/manual/en/features.file-upload.php

【在 a*********a 的大作中提到】
: I was trying to create php page to upload files. in the form, I have:
:
: but in the php script called by this form, I can only access $thefile, while
: $thefile_name is undefined. And what's strange also is the $thefile is the
: file name on the remote machine (where the file is from), but it should be the
: file name on the local machine, according to some turoials. Can anyone tell me
: what's wrong? Thanks.

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
[转载] Perl CGI and Excel filesRe: How to upload file/files via web pag
Urgent help -- How to transfer the web info to the pdf fileJQuery and Master Pages in ASP.NET
how to add bookmarks to an PDF file?Using a new domain name
a question about printing html fileRe: [求助] 如何在自己主页上建立能让别人浏览时上传文件的功能?
script question[转载] 应该怎么实现
php新手问个upload file简单问题(谢谢解答,有包子答谢)Help in building a web site
[转载] HOW TO UPLOAD A FILE INTO DATABASElink dependency
How to upload file/files via web pages?help with making a file downloadable on the site
相关话题的讨论汇总
话题: thefile话题: name话题: file话题: php话题: machine