Re: [PHP] file upload script

2003-06-08 Thread Rodney Green
anks again, Rod - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Rodney Green" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, June 08, 2003 1:21 AM Subject: Re: [PHP] file upload script > > By no errors, do you mean

Re: [PHP] FILE UPLOAD Q

2003-06-08 Thread Philip Olson
That article is pretty old, and the code sucks. Read this instead: http://www.php.net/features.file-upload It will explain everything. Regards, Philip On Sun, 8 Jun 2003, nabil wrote: > Please help me , I want to make any user on my website to submit his CV , or > any file to a temp fold

Re: [PHP] file upload script

2003-06-07 Thread Philip Olson
By no errors, do you mean you have a PHP version greater than PHP 4.2.0 and checked the ['error'] code, and it has a value of 0? Are you sure you want the filename to be $file_name? I doubt you do. Regards, Philip ref: http://www.php.net/features.file-upload On Sat, 7 Jun 2003, Rodney Green w

Re: [PHP] file upload

2003-04-02 Thread anders thoresson
Am I making any obvious mistakes here, in my upload script? I want to upload text-files only, they should end up in the directory from which the script is executed and be names __traningsmatcher.txt. Further details: Everything works, but I'm just curious if there is some hidden mistakes. This i

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Hugh Danaher
fp); $destination_file="./directory/".$photo2; $upload = ftp_fput($conn_id, $destination_file, $fp, FTP_BINARY); // check upload status if (!$upload) { print "FTP upload has failed!"; } // close the FTP stream //@ftp_close($conn_id); ftp_quit($conn_id); } php?> - Ori

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Hugh Danaher
Thanks Jason, I'll try that, and let you know the results. Hugh - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 27, 2003 11:48 AM Subject: Re: [PHP] File Upload and ftp transfer problem > On Fr

Re: [PHP] File Upload and ftp transfer problem

2003-03-27 Thread Jason Wong
On Friday 28 March 2003 03:16, Hugh Danaher wrote: > I'm trying to get the following script to ftp transfer an uploaded image > file so as to get around a file permission problem. The upload portion of > this works without problem, the ftp portion doesn't spit out any errors > either, but the file

Re: [PHP] File upload Stuff ... well kinda.

2003-03-15 Thread Charles Kline
Check the permissions on the directory you are trying to upload your files. The host I am using required me to either chmod the upload directory to 777 (not what I wanted to do) or run PHP with cgi-wrap enabled - this allowed my PHP application to run as the user and therefore had permission to

Re: [PHP] File upload and permissions

2003-03-06 Thread Nik Makepeace
On Fri, 2003-03-07 at 07:24, Charles Kline wrote: > I have played with it - changing permissions and the only > one that works is chmod 777 - not sure if this is good or not - pretty > new to unix administration stuff. If you don't want to make a new directory to store them, you should make sure

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread 1LT John W. Holmes
Message - From: "Niklas Lampén" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 9:07 AM Subject: RE: [PHP] File upload problem - permission denied On linux you can do it in shell with chmod command. Do 'chmod 766 direc

RE: [PHP] File upload problem - permission denied

2003-02-27 Thread Niklas Lampén
3 16:03 To: [EMAIL PROTECTED] Subject: Re: [PHP] File upload problem - permission denied All right then. ¿Where do I set that permission for PHP? On my local Windows machine it is usually in IIS. However the whole ..\inetpub\wwwroot\.. directory already has read and write permissions. Apart from PHP

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread Frans Bakker
All right then. ¿Where do I set that permission for PHP? On my local Windows machine it is usually in IIS. However the whole ..\inetpub\wwwroot\.. directory already has read and write permissions. Apart from PHP I use Cold Fusion. With Cold Fusion I don't have any permission problems... "Niklas la

RE: [PHP] File upload problem - permission denied

2003-02-27 Thread Niklas Lampén
Seems that php does not have write access to that directory. Set it right and it should work. Niklas P.S. Tip: It's much quicker to create plain html without echo. Just do it like , not like "; ?> :) -Original Message- From: Frans Bakker [mailto:[EMAIL PROTECTED] Sent: 27. helmikuuta

Re: [PHP] file upload and a browse for file box

2003-02-26 Thread Ernest E Vogelsinger
At 02:32 26.02.2003, Sunfire said: [snip] >i looked in the manual about file uploads and basically know how it works >other than a little playing around with it but was wondering how you could >make a browse for file button that opens a box on the users compu

Re: [PHP] file upload and a browse for file box

2003-02-25 Thread Joshua Moore-Oliva
plain html On February 25, 2003 08:32 pm, Sunfire wrote: > hi.. > > i looked in the manual about file uploads and basically know how it works > other than a little playing around with it but was wondering how you could > make a browse for file button that opens a box on the users computer so > t

RE: [PHP] File upload problem

2003-02-18 Thread Chris McCluskey
Ochoa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 7:04 AM To: John M; [EMAIL PROTECTED] Subject: Re: [PHP] File upload problem There may be several reasons why it doesn't work but the first thing I noticed is that "action" is blank. You need to have this defined. John M

Re: [PHP] File upload problem

2003-02-18 Thread Manuel Ochoa
There may be several reasons why it doesn't work but the first thing I noticed is that "action" is blank. You need to have this defined. John M <[EMAIL PROTECTED]> wrote:Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an echo

RE: [PHP] File upload???

2003-02-11 Thread David Freeman
> Can anybody help me with file uploading, again... Have you tried using the fairly simple example that is given at http://www.php.net/manual/en/features.file-upload.php yet? I've found that starting with this example and then adding all the extras tends to work well when you've got problems.

Re: [PHP] File upload???

2003-02-11 Thread Kenneth Suralta
Can anybody help me with file uploading, again... I tried uploading a file through... but, on project_save.php, the $HTTP_POST_FILES["project_file"]["size"] is zero(0) , and $HTTP_POST_FILES["project_file"]["tmp_name"] is an empty string. i checked, $HTTP_POST_FILES["project_files"]["error"

Re: [PHP] File upload???

2003-02-11 Thread Francesco Leonetti
You need to check the following variables: $_FILES["userfile"]["tmp_name"]; $_FILES["userfile"]["size"]; $_FILES["userfile"]["name"]; $_FILES["userfile"]["type"]; Ciao Francesco - Original Message - From: "Kenneth Suralta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Febru

Re: [PHP] File upload problem

2003-02-10 Thread Pag
Which sounds like it has to be there to me? I just checked a working file upload form without MAX_FILE_SIZE field, and it worked.. I guess i misunderstood what was on the tutorials ? Or i wonder if this was a must in the earlier versions of PHP? Anyone? I have an upload feature on my a

RE: [PHP] File upload problem

2003-02-10 Thread Dennis Cole
e, however, cannot be fooled. " -Original Message- From: Gurhan Ozen [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 9:50 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File upload problem On Sun, 2003-02-09 at 19:43, Jason Wong wrote: > On Monday 10 F

Re: [PHP] File upload problem

2003-02-10 Thread Gurhan Ozen
On Sun, 2003-02-09 at 19:43, Jason Wong wrote: > On Monday 10 February 2003 05:56, Gurhan Ozen wrote: > > > You need to specifye the MAX_FILE_SIZE value as a hidden argument to the > > form.. > > See: http://www.php.net/manual/en/features.file-upload.php > > You don't. > > If you can show other

Re: [PHP] File upload problem

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 05:56, Gurhan Ozen wrote: > You need to specifye the MAX_FILE_SIZE value as a hidden argument to the > form.. > See: http://www.php.net/manual/en/features.file-upload.php You don't. If you can show otherwise please post details to the list. -- Jason Wong -> Gremlins

Re: [PHP] File upload problem

2003-02-09 Thread David Rice
Hi John: Well actually I believe that you don't have to set MAX_FILE_SIZE...(I don't) but you might want make sure that you are not trying to send a file larger than the post_max_size directives in php.ini and ensure that file_uploads is set to allow http uploads. On Sunday, February 9, 2003, a

Re: [PHP] File upload problem

2003-02-09 Thread Gurhan Ozen
Hi, You need to specifye the MAX_FILE_SIZE value as a hidden argument to the form.. See: http://www.php.net/manual/en/features.file-upload.php Gurhan On Mon, 2003-06-30 at 15:05, John M wrote: > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. > Before the line

Re: [PHP] File upload problem

2003-02-01 Thread David Rice
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote: I tried but I can't upload any file. My form and code are as following: Try looking at: http://www.php.net/manual/en/features.file-upload.php There is a working example there. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] file upload question

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:34, Andrew Rench wrote: > When you say you need to include a filename, do you mean the > $_FILES['userfile']['tmp_name'] or the variable name identified in the > input tag? (name="userfile") ANY filename which makes sense to you, so most likely the latter. -- Jason

RE: [PHP] file upload question

2003-01-24 Thread Andrew Rench
When you say you need to include a filename, do you mean the $_FILES['userfile']['tmp_name'] or the variable name identified in the input tag? (name="userfile") --- Mark Heintz PHP Mailing Lists <[EMAIL PROTECTED]> wrote: > > You have to include a filename along with the path when you're using >

RE: [PHP] file upload question

2003-01-24 Thread Mark Heintz PHP Mailing Lists
You have to include a filename along with the path when you're using move_uploaded_file(); if you're only specifying '/usr/local/etc/httpd/htdocs/blast/images' as your destination string, php is trying to create a file named 'images' in '/usr/local/etc/httpd/htdocs/blast'. If there's still a prob

RE: [PHP] file upload question

2003-01-24 Thread Andrew Rench
thanks for the advice- this makes sense as to why I'm not seeing the file. I added the move_uploaded_file() to the script to see what happens and I end up getting the following error: PHP Warning: Unable to move '/var/tmp/phpfcwVyC' to '/usr/local/etc/httpd/htdocs/blast/images' in /usr/local/etc/

RE: [PHP] file upload question

2003-01-24 Thread Ford, Mike [LSS]
> -Original Message- > From: Andrew Rench [mailto:[EMAIL PROTECTED]] > Sent: 24 January 2003 17:05 > > the following code: > > > > ="post"> > > Send this file: > > > echo $_FILES['userfile']['tmp_name']; > ?> > > > > produces the following after upload: > > /var/tmp/phplSTEVp

Re: [PHP] file upload question

2003-01-24 Thread Adam Voigt
This may just be me but I've never gotten upload to work where the form is posting to the same page, try moving it to two pages. On Fri, 2003-01-24 at 12:05, Andrew Rench wrote: the following code: " method ="post">

Re: [PHP] File upload security

2003-01-23 Thread peter a
Files in web folders should usually be 755 /peter a At 2003-01-23 11:15, Marco Alting wrote: >Hi, I have a php script which uploads file to a webserver. The idea is that >anyone can upload files, but only another php script can read the files. At >this moment I think someone is deleting file

RE: [PHP] File upload problem

2003-01-21 Thread Matt Schroebel
> -Original Message- > From: John M [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 30, 2003 3:05 PM > To: [EMAIL PROTECTED] > Subject: [PHP] File upload problem > > > Hello, > > I have the code below. It's a simple file upload. But it doesn't work. > Before the line if(isset( $Submit )

RE: [PHP] File upload problem

2003-01-21 Thread Edward Peloke
John, I have Win 98 with Apache 2 and it worked fine for me, once I commented out the file type check, didn't seem to like any file I tried, even gifs. I also had to create a folder named 'files' under my htdocs folder in apache. Eddie -Original Message- From: John M [mailto:[EMAIL PRO

RE: [PHP] File Upload

2003-01-18 Thread John W. Holmes
> Every body , I want to make a provision for the suer , by which , they can > select number of files from a list box and upload them to the server in > PHP. They have to select each file individually. Each file must be uploaded through it's own input element. The details of how to do these t

Re: [PHP] File Upload

2002-12-14 Thread Paul Roberts
what version of php are you using? - Original Message - From: "Miro Kralovic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 14, 2002 3:52 AM Subject: RE: [PHP] File Upload Thanks Tom, but still no luck.. it seems like it doesn't reco

Re: [PHP] File Upload

2002-12-13 Thread Jason Wong
On Saturday 14 December 2002 11:35, Tom Rogers wrote: > You are missing this bit: > > I am curious as to why so many people say this in response to file upload problems? In practice, none of my upload forms have that "missing bit" but they work perfectly well using a diverse range of browser

RE: [PHP] File Upload

2002-12-13 Thread Miro Kralovic
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile variable at all in PHP script, even thought the globals are ON... You are missing this bit: -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:03:05 PM, you wrote: MK> Hi everybody, MK> I'm trying to upload a file using the following scripts, but it doesn't MK> work, it actually doesn't get through the first line of PHP script at all MK> and displays "a problem has occured" message. I'm running the scr

RE: [PHP] File upload on Win2k ...

2002-11-26 Thread Rich Gray
Don't bother to respond people... worked out the issue - the double backslashes in the name... Cheers Rich -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 21:14 To: [EMAIL PROTECTED] Subject: [PHP] File upload on Win2k ... PHP v4.2.3 Win2K Sp2 Apache v

Re: [PHP] File Upload: Help Needed

2002-11-13 Thread Marek Kilimajer
The directory must exists prior to copy, and must be writeable by the server process. Also note this is a filesystem path. Pushpinder Sngh Garcha wrote: Hi I am trying to upload a file using php. This is the code that I am using for the php script called "upload.php" if(!empty($userfile)) {

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Vogelsinger Cc: [EMAIL PROTECTED] Subject: RE: [PHP] File Upload problem It was a typo. Sorry. -Original Message- From: Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload p

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Vogelsinger [mailto:ernest@;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload problem At 00:25 13.11.2002, Van Andel, Robert said: [snip] >encType=multipart/form-data&g

Re: [PHP] File Upload problem

2002-11-12 Thread Ernest E Vogelsinger
At 00:25 13.11.2002, Van Andel, Robert said: [snip] >encType=multipart/form-data>name=MAX_FILE_SIZE> > > } >?> >When I submit the form at the bottom of the script, the $user_file variable >equals "none". I am unable to figure out what is going on. The var

Re: [PHP] file upload broken in my case?

2002-11-07 Thread sam clanton
That's it --- that will teach me not to read the last line in the documentation! argh... Thanks Sam On 7 Nov 2002, Marco Tabini wrote: > When are you checking that the file actually exists? PHP deletes the > temporary file once the script has finished executed. This means you > have to copy it

Re: [PHP] file upload broken in my case?

2002-11-07 Thread Marco Tabini
When are you checking that the file actually exists? PHP deletes the temporary file once the script has finished executed. This means you have to copy it somewhere else if you need to manipulate (or even to look at it after you posted), or you'll never find anything. I went nutz with this the first

Re: [PHP] File upload problem...

2002-10-29 Thread Marek Kilimajer
Try print_r($_FILES) and see if you really get what you should. And also check if you have your form set as David Russell wrote: Hi all, I have a form with a file upload section. The target script contains the following: if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) { Ad

Re: [PHP] File upload and php... not a beginner question...

2002-10-16 Thread Marek Kilimajer
Well, you can use Baroiller Pierre-Emmanuel wrote: >Hi, > >everyone know how to upload files from the browser to your web server using >multipart-form method with move_downloaded_file() php function. > >But... It's a slow method for multiple files & huge files transfert. > >I'm currently workin

RE: [PHP] File upload and php... not a beginner question...

2002-10-15 Thread David Freeman
> I'm currently working on a big photo album tool, and I want > to provide user > the ability to upload a lot of jpeg files in one time... > The big problem with form is it's too slow... > > Does anyone know how to by-pass this ( with java or other > tools )? It's primarly slow bec

Re: [PHP] file upload > 2 MB

2002-09-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I have not tested this but I think the correct syntax is: php_value upload_max_filesize 50M If the above doesn't work my next bet would be: php_admin_value upload_max_filesize 50M Hope that helps! ~Pauly On Monday 09 September 2002 07:04 am, an

RE: [PHP] File Upload size limit

2002-08-13 Thread RPS Internet
You can also do this all in a php file without changing the directives in either .htaccess or the httpd.conf file. Here is a sample: Hope that helps, Josh Thomas RPS Internet Services -Original Message- From: Oliver Schonrock [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 1

Re: [PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
> No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only. > None of the changes for the past couple of months, including this one, is > in it. OK, but you said originally > post_max_size and upload_max_filesize could not be set in your .htaccess > file until recently. It was chang

Re: [PHP] File Upload size limit

2002-08-13 Thread Rasmus Lerdorf
> Thanks for quick response. Just a couple of silly questions: > > - changed where? in php or apache? My host is running the "three week old" > v 4.2.2 of php so I guess you mean apache? No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only. None of the changes for the past couple

Re: [PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
Thanks for quick response. Just a couple of silly questions: - changed where? in php or apache? My host is running the "three week old" v 4.2.2 of php so I guess you mean apache? - If I can in fact get them to change it in http.conf for my virtual host block then I will have these huge (!) set

Re: [PHP] File Upload size limit

2002-08-13 Thread Rasmus Lerdorf
post_max_size and upload_max_filesize could not be set in your .htaccess file until recently. It was changed about 3 weeks ago, so unless your provider is running a recent snapshot, you won't be able to get this to work. Ask your provider to add those lines to your virtualhost block in the httpd

Re: [PHP] File upload memory usage.

2002-07-24 Thread Reid Sutherland
Jason Wong wrote: > Apparently that is how it will work in a _future_ version of PHP. But for now > it's all stuffed in RAM until the complete file is received. That's crazy. Maybe I don't understand enough of how PHP deals with various web servers and maybe that's why this is the way it is.

Re: [PHP] File upload memory usage.

2002-07-24 Thread Jason Wong
On Wednesday 24 July 2002 21:48, Reid Sutherland wrote: > Hi, > > I'm currently locked in a battle with PHP and file uploads. I've > searched the list to no avail. I actually found a guy with the same > problem who ended up using perl to make this work. I'm trying to avoid > that. > > The probl

Re: [PHP] File Upload

2002-05-30 Thread Edward Marczak
On 5/30/02 8:13 AM, "Ford, Mike [LSS]" [EMAIL PROTECTED] pressed the keys forming the message: >> -Original Message- >> From: Edward Marczak [mailto:[EMAIL PROTECTED]] >> Sent: 30 May 2002 03:27 >> >> OK - I've read the manual, looked at sample codeand I sadly am >> mis

Re: [PHP] File Upload

2002-05-30 Thread Edward Marczak
On 5/29/02 10:39 PM, "Gerard Samuel" [EMAIL PROTECTED] pressed the keys forming the message: > A guess, but is the tmp dir set in php.ini?? Yeah - sorry, I should have said that in the first place. -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] File Upload

2002-05-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Edward Marczak [mailto:[EMAIL PROTECTED]] > Sent: 30 May 2002 03:27 > > OK - I've read the manual, looked at sample codeand I sadly am > missing something. > > I'm doing (basically) this in my form: > > method="post" > name="replysub" id="replysub"> >

Re: [PHP] File Upload

2002-05-29 Thread Gerard Samuel
A guess, but is the tmp dir set in php.ini?? Edward Marczak wrote: > OK - I've read the manual, looked at sample codeand I sadly am > missing something. > > I'm doing (basically) this in my form: > > method="post" name="replysub" id="replysub"> > > > > On the page it's submitted to, just

RE: [PHP] file upload problem

2002-05-18 Thread Rodney Davis
PROTECTED]] Sent: Saturday, May 18, 2002 7:31 PM To: Rodney Davis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] file upload problem On Sat, 18 May 2002, Rodney Davis wrote: > I am trying to use the move_uploaded_file() function to upload files to > a specific directory. It works fine with small .jpg

Re: [PHP] file upload problem

2002-05-18 Thread Miguel Cruz
On Sat, 18 May 2002, Rodney Davis wrote: > I am trying to use the move_uploaded_file() function to upload files to > a specific directory. It works fine with small .jpgs .txt etc etc but > won't work with a large .mp3 file. Is this because it is too large? > What can I do? You can tell us what "

Re: [PHP] File upload problem

2002-05-07 Thread Jason Soza
- Original Message - From: Jason Wong <[EMAIL PROTECTED]> Date: Tuesday, May 7, 2002 8:49 am Subject: Re: [PHP] File upload problem > On Tuesday 07 May 2002 19:09, David Freeman wrote: > > > -Original Message- > > > Hmm, after a bit of testing I

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 19:09, David Freeman wrote: > > -Original Message- > > Hmm, after a bit of testing I find that the MAX_FILE_SIZE > > tag is useless to say the least (probably because no browsers support > > it?) > > That's somewhat of a shame I guess but I can hardly claim to be

Re: [PHP] File upload problem

2002-05-07 Thread Linn Kubler
I put the max file size tag into my code but that didn't help either. What looks like is happening is that the php file can't be found. I'm using phpscriptcenter's upload.php program and it is all in one script, if you know what I mean. What I'm seeing now is that, depending on the size of the

RE: [PHP] File upload problem

2002-05-07 Thread David Freeman
> -Original Message- > Hmm, after a bit of testing I find that the MAX_FILE_SIZE > tag is useless to say the least (probably because no browsers support it?) That's somewhat of a shame I guess but I can hardly claim to be surprised - especially as I've just spent much of my time in th

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 14:14, David Freeman wrote: > I guess that anything that causes this sort of thing to happen on the > browser is going to help. I know I'd be fairly unimpressed if I sat > waiting for a 2MB file to upload only to find that the limit is 1.5MB or > some such. At least if a

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 15:22, Miguel Cruz wrote: > On Tue, 7 May 2002, Jason Wong wrote: > >>> > >> > >> You actually _need_ that hidden tag set AFAIK. > > > > I'm curious, I keep seeing people say that that tag is /necessary/, but > > I've never had to use it in the upload forms that I've built

Re: [PHP] File upload problem

2002-05-07 Thread Miguel Cruz
On Tue, 7 May 2002, Jason Wong wrote: >>> >> >> You actually _need_ that hidden tag set AFAIK. > > I'm curious, I keep seeing people say that that tag is /necessary/, but I've > never had to use it in the upload forms that I've built and they work just > fine in Opera, NN & IE. Don't feel ba

RE: [PHP] File upload problem

2002-05-06 Thread David Freeman
> -Original Message- > I'm curious, I keep seeing people say that that tag is > /necessary/, but I've never had to use it in the upload forms > that I've built and they work just fine in Opera, NN & IE. Good question. To be honest it's been a while since I looked, I built a file

Re: [PHP] File upload problem

2002-05-06 Thread Jason Wong
On Tuesday 07 May 2002 09:01, David Freeman wrote: > > -Original Message- > > D'oh! You're right, I went back and checked php.ini and > > found upload_max_filesize but it's already set to 200M, I'm > > assuming that means 200 MegaBytes. So I don't think that's > > the problem. I do

RE: [PHP] File upload problem

2002-05-06 Thread David Freeman
> -Original Message- > D'oh! You're right, I went back and checked php.ini and > found upload_max_filesize but it's already set to 200M, I'm > assuming that means 200 MegaBytes. So I don't think that's > the problem. I don't have the hidden tag set in the page > code so that

Re: [PHP] File upload problem

2002-05-06 Thread Linn Kubler
D'oh! You're right, I went back and checked php.ini and found upload_max_filesize but it's already set to 200M, I'm assuming that means 200 MegaBytes. So I don't think that's the problem. I don't have the hidden tag set in the page code so that shouldn't be a factor either, right? I'm a real ro

Re: [PHP] File upload problem

2002-05-06 Thread Francesc Leveque
I can remember there is an option on the php config file to set the max file size when uploading... I think you can also limit the size with a hidden input on the form... like this: the value corresponds to the number of bytes. so this would be for 2 MB.. -- Fr

Re: [PHP] file upload / no tmp name or size?

2002-05-01 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then 1LT John W. Holmes declared > Say it with me... "Show me the code!" No, louder! Yeah...that's good... Sorry, i figured it would be something someone would spot immediately. here is the form /* add_teacher_form() */ function add_

Re: [PHP] file upload / no tmp name or size?

2002-05-01 Thread 1LT John W. Holmes
Say it with me... "Show me the code!" No, louder! Yeah...that's good... What's my name? ---John Holmes... - Original Message - From: "Nick Wilson" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 3:24 PM Subject: [PHP] file upload / no tmp name or

RE: [PHP] File Upload

2002-03-27 Thread Joel Caturia
This sounds similar to what I am having, but not exactly. What version of PHP are using, and on what platform? My problem is the files don't actually appear on the filesystem, yet all of the internal functions in PHP that allow me to manipulate the files appear to "work". I'm using v4.1.2, and I

Re: [PHP] File Upload

2002-03-11 Thread ayukawa
I guess, you don't specify the enctype in the form you wrote. Do you write like this? . Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload

2002-03-11 Thread Faisal Abdullah
> > Warning: Unable to open 'C:\\Documents and > > Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such > > file or directory in /var/www/kulchitski/btl/_talkroom_submit.php on > > line 15 Well it says "Unable to open". My guess is the file u want to upload doesn't exist. What d

Re: [PHP] File Upload

2002-03-11 Thread Faisal Abdullah
> if(!userfile) >echo "ERROR"; > > $filelocation="/tmp"; Does C:\tmp exist? > > copy($userfile, $filelocation) > > The message I get in my browser is: > Warning: Unable to open 'C:\\Documents and > Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such > file or directory in

RE: [PHP] File Upload.

2002-03-05 Thread Dan Vande More
This is exactly how I solve the problem as well, good to know I'm not the only one with that idea. That must mean it wasn't that bad of an idea. Dna -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:52 AM To: Php-General Subject

RE: [PHP] File Upload.

2002-03-05 Thread Niklas Lampén
I've solved this kind of problems with three pages: 1. Form 2. Insert / Update data 3. Information about insert / update Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 15:34 To: [EMAIL PROTECTED] Subject: [PHP] File Upload. Hi

Re: [PHP] File Upload Performance

2002-02-10 Thread Vincent Stoessel
Linn Kubler wrote: > I've setup an upload form for uploading files to my server. It seems to > work well except the performance is pretty sad. For example it took 20 > minutes to upload a 50MB file over a 100Mb LAN. This is running on Linux > w/Apache. > > At the heart of the script is the cop

RE: [PHP] File upload

2002-02-06 Thread Jason Murray
Hi Balaji, > I am trying to upload a file from remote machine. > Could you please help out me. Two things: > upload.html > - > This also needs to have a maximum file size specified: > upload.php > In this script, you'll want to copy $file to "/pa

RE: [PHP] file upload with story

2002-01-21 Thread Martin Towell
I'm assuming all this data is coming in from a form - somewhere in the manual (too lazy at the monent to look where) there's a section on how to upload files. Once a file is uploaded (in your case, an image), just move it to somewhere accessable. Have field in the database that contains the name o

Re: [PHP] file upload with story

2002-01-21 Thread Jason Wong
On Tuesday 22 January 2002 07:00, will hives wrote: > Please can someone help, I can't find any answers anywhere > > I have this code: > [snip] > > it's really just an online contacts book, what I want to do as have the > ability to upload an image with the record. > > Then when the contact d

Re: [PHP] File upload

2002-01-21 Thread Bogdan Stancescu
The official way to do this would be using the "accept" attribute: accept = content-type-list [CI] This attribute specifies a comma-separated list of content types that a server processing this form will handle correctly. User agents may use this information to filter out non-conforming files when

Re: [PHP] File upload

2002-01-21 Thread JSheble
you could write a bit of JavaScript to run on the form's onSubmit event or even the fields onBlur event. Then in your JavaScript, parse out the file name and extension to validate. It's not 100% accurate since users could rename any file to have a JPG extension, but it works for the majority.

Re: [PHP] File upload

2002-01-21 Thread val petruchek
> How can I, using: > > specify the file extension. > I want the user only to upload *.jpg. You can only check $userfile_type to detect the type of uploaded file. You can specify nor extension to browse dialog neither default path for browsing... Security, you know Valentin Petruchek (aki Zliy

Re: [PHP] File Upload Question - Previewing .jpgs

2002-01-03 Thread Bogdan Stancescu
That's a browser/image type issue. If you're trying it with a JPEG image (as the message title suggests) then it's a browser issue -- your browser doesn't handle JPEG files due to local settings, and starts up the paint program instead. If you're trying with some other image type (such as TIFF for

Re: [PHP] File upload memory useage.

2001-12-29 Thread Jim Lucas [php]
Well, I just finished a ftp program that originally used php to catch the uploaded file, but soon realized the it did load it into memory then dump it into a file. I finally ended up using perl running with xinetd to capture the uploaded file and drop it into a file. then let php play with it fr

RE: [PHP] file upload troubles

2001-11-23 Thread fitiux
Hi :-) could you post your code? regards, --Patricio - Original Message - From: Nikola Veber <[EMAIL PROTECTED]> To: php forum <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 10:01 PM Subject: [PHP] file upload troubles > Hi ! > I'm having terrible troubles with the file upload pr

RE: [PHP] File Upload Form

2001-11-14 Thread Sharat Hegde
Hello, I found the solution to my problem here it is. Adding the following line in the HTML seems to make the PHP code work well with the Upload Form. Don't know why but, I guess this makes the document HTML compliant. Regards, Sharat -Original Message- From: Sharat Hegde [mailt

Re: [PHP] file upload problem

2001-10-18 Thread SafeV
I've run into the same problem, I had to 'chmod 777 images' to be able to create dirs or files, which is BAD security! Brian Aitken wrote: > Hiya > > I promise I won't keep perstering you after this question :-) > > My problem is this - I've got a complete system that works perfectly on > Lin

RE: [PHP] File Upload Problem

2001-09-03 Thread Johan Vikerskog (ECS)
Perhaps someone from your Network group(or similiar) have put a restriction towards that site for some strange reason. Ask your administrator and he probobly will know the answer. //Johan -Original Message- From: Tim Grubb [mailto:[EMAIL PROTECTED]] Sent: den 3 september 2001 09:55 To:

Re: [PHP] File Upload Problem Solving?

2001-09-01 Thread Marc Davenport
On Fri, 31 Aug 2001, Jeff Oien wrote: > I have a user who is unable to upload files but I don't know where > to start with the troubleshooting process. I have this: > > @copy("$img1", "/blah/$username/$img1_name") > or die("File upload didn't work."); > > and they are getting the die

RE: [PHP] File Upload Problem Solving?

2001-08-31 Thread Jeff Oien
I found the problem. A user was logged in under their username with a different case (capital/small letters) and that caused a problem. Jeff Oien > I have a user who is unable to upload files but I don't know where > to start with the troubleshooting process. I have this: > > @copy("$img1", "/bl

<    1   2   3   4   >