Re: [PHP] File uploading and saving info on mysql

2007-05-04 Thread Marcelo Wolfgang
Richard Lynch wrote: Browsers will probably NOT populate these reliably... Mac Safari, might, for example, choose "application/x-pdf" for the PDF file. You really can't rely on 'type' to be useful in any way, shape, or form. Thanks for the tips, I've deleted this check, and changed how I ch

Re: [PHP] File uploading and saving info on mysql

2007-05-03 Thread Richard Lynch
On Thu, May 3, 2007 3:23 pm, Marcelo Wolfgang wrote: > I'm developing for my first time an upload file form which will > populate > a sql insert query, I think I got everything working fine, but the > data > isn't been saved on the database. Can someone help me with what I'm > doing wrong here ? >

Re: [PHP] File uploading and saving info on mysql

2007-05-03 Thread Jim Lucas
Marcelo Wolfgang wrote: Hi all, I'm developing for my first time an upload file form which will populate a sql insert query, I think I got everything working fine, but the data isn't been saved on the database. Can someone help me with what I'm doing wrong here ? the code follow: 0) {

[PHP] File uploading and saving info on mysql

2007-05-03 Thread Marcelo Wolfgang
Hi all, I'm developing for my first time an upload file form which will populate a sql insert query, I think I got everything working fine, but the data isn't been saved on the database. Can someone help me with what I'm doing wrong here ? the code follow: 0) { echo "Return Code: "

RE: [PHP] File Uploading Issue

2004-08-05 Thread PHP E-Mail List
day, August 05, 2004 1:34 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] File Uploading Issue On Thursday 05 August 2004 13:42, PHP E-Mail List wrote: > You don't have permission to access /directory uploaded > to/renamed file.txt on this server. What are the permission

Re: [PHP] File Uploading Issue

2004-08-05 Thread raditha dissanayake
PHP E-Mail List wrote: Ok, I figured I'd tackle this since I've been coding php for about 6 months now. And wouldn't ya know, I'm having problems with, what I thought would be the easiest thing to code ever. Yeah well I get the file to upload, and heck I can even take the file and display what tex

Re: [PHP] File Uploading Issue

2004-08-04 Thread Jason Wong
On Thursday 05 August 2004 13:42, PHP E-Mail List wrote: > You don't have permission to access /directory uploaded > to/renamed file.txt on this server. What are the permissions on that file? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

[PHP] File Uploading Issue

2004-08-04 Thread PHP E-Mail List
Ok, I figured I'd tackle this since I've been coding php for about 6 months now. And wouldn't ya know, I'm having problems with, what I thought would be the easiest thing to code ever. Yeah well I get the file to upload, and heck I can even take the file and display what text was uploaded. How

Re: [PHP] File Uploading Question

2002-07-10 Thread Justin French
on 11/07/02 10:10 AM, Nick Oostveen ([EMAIL PROTECTED]) wrote: > I've got a (hopefully) simple question which is indirectly related to php. Very indirectly. Infact, it's completely a HTML/CSS question. Try the comp.infosystems.www.authoring.stylesheets newsgroup. Justin French -- PHP Gene

[PHP] File Uploading Question

2002-07-10 Thread Nick Oostveen
I've got a (hopefully) simple question which is indirectly related to php. I'm currently developing an application which includes functionality to allow users to upload image files. Does anyone here know of a way to customize the look of the HTML "file" input type? By this I mean changing the

Re: [PHP] File uploading fails

2002-05-01 Thread 1LT John W. Holmes
for security and performance reason. Love that manual, ---John Holmes... - Original Message - From: "Tim Decker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 11:13 AM Subject: [PHP] File uploading fails > I have searched high and l

Re: [PHP] File uploading fails

2002-05-01 Thread Pushkar Pradhan
You haven't defined $file_name before trying to echo it, I think you'll have to create it using $HTTP_POST_...['file'] and HTT...['name'] Also check your php.ini to see if file uploads are allowed and if yes the max. limit. > I have searched high and low and done everything > recommended generical

[PHP] File uploading fails

2002-05-01 Thread Tim Decker
I have searched high and low and done everything recommended generically and yet am still having problems uploading files. My script is as follows: \n"; } ?> Output is as follows: Warning: Undefined variable: file_name in addimage.php on line 5 Warning: Undefined index: file i

[PHP] file uploading from browser

2002-03-04 Thread Robert MacCombe
Hi, I'm having trouble with a file upload php script. I can upload a file, but when I try to transfer it from the temporary location to anywhere within my domain, permission is denied. I had exactly the same problem with the same script on another server and tech support fixed it with the followin

[PHP] file uploading

2002-02-13 Thread Uma Shankari T.
Hello, I have written code to upload files from the browser itself.But only specified user can upload files for specific directory.That one also i have done.I have given permission to upload files to a directory.If there are any subdirectory how will write the code to upload files in the ent

Re: [PHP] File uploading like hotmail

2002-01-28 Thread Girish Nath
8, 2002 6:37 PM Subject: Re: [PHP] File uploading like hotmail I think you might be looking for HTML form element. "Duky Yuen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to make something like when you are attaching somet

Re: [PHP] File uploading like hotmail

2002-01-28 Thread Girish Nath
8, 2002 6:37 PM Subject: Re: [PHP] File uploading like hotmail I think you might be looking for HTML form element. "Duky Yuen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to make something like when you are attaching somet

Re: [PHP] File uploading like hotmail

2002-01-28 Thread qartis
I think you might be looking for HTML form element. "Duky Yuen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I want to make something like when you are attaching something to an > email in hotmail. I want to make something that searches your own > computer

[PHP] File uploading like hotmail

2002-01-27 Thread Duky Yuen
I want to make something like when you are attaching something to an email in hotmail. I want to make something that searches your own computer for files on your harddisk that you want to upload to the server. But I don't know if this is possible. If this is possible.Can somebody tell me which fu

Re: [PHP] File Uploading

2002-01-21 Thread Jason Wong
On Monday 21 January 2002 21:17, Uma Shankari T. wrote: > Hello, > > > When i upload the file it is updating only in the document root > directory.It is not updated in some other directory except the root > directory.why is it so? > > Any one tell me the solution for this? The general procedu

Re: [PHP] File Uploading

2002-01-21 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 21-01-02 at 14:24 * Uma Shankari T. said > Hello, > > > When i upload the file it is updating only in the document root > directory.It is not updated in some other directory except the root > directory.why is it so? > > Any one t

Re: [PHP] File Uploading

2002-01-21 Thread Uma Shankari T.
Hello, When i upload the file it is updating only in the document root directory.It is not updated in some other directory except the root directory.why is it so? Any one tell me the solution for this? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] File Uploading

2002-01-21 Thread Jason Wong
On Monday 21 January 2002 18:30, J.F.Kishor wrote: > Solutions for your question is given in the PHP manual, and here's > a part from the manual. [snip] A polite suggestion, please refrain from posting such a large chunk of the manual! After all the manual is freely available online and

Re: [PHP] File Uploading

2002-01-21 Thread Pedja Delic
Try this: - Original Message - From: "Uma Shankari T." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 3:34 AM Subject: [PHP] File Uploading > > > Hello, > > How to upload files in a particular directory usin

Re: [PHP] File Uploading

2002-01-21 Thread J.F.Kishor
hi, Solutions for your question is given in the PHP manual, and here's a part from the manual. Hope this would solve you problem. Example 1. File Upload Form --- Send this file: The _URL_ should point to a PHP file. The MAX_FILE_SIZE

Re: [PHP] File Uploading

2002-01-21 Thread Jason Wong
On Monday 21 January 2002 10:34, Uma Shankari T. wrote: > Hello, > > How to upload files in a particular directory using php script in the > browser itself The gory details can be found in the chapter "Handling File Uploads". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Lo

[PHP] File Uploading

2002-01-21 Thread Uma Shankari T.
Hello, How to upload files in a particular directory using php script in the browser itself Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-m

Re: Re: [PHP] file uploading => dumping into ram?

2002-01-03 Thread David
thanks, i know what u mean, but what if you have to upload bigger files? is it possible that maybe the next php release will have a option to auto write the uploading file to disk(if the file being uploaded is bigger than a certain size) while uploading instead of slurping the entire file int

Re: [PHP] file uploading => dumping into ram?

2002-01-03 Thread Chris Lee
set your max upload file size smaller then. default is 2mb max. I find that too small, I re-set mine to 5mb. I have 2g of ram on our server, 5mb isnt a worry to me. Id rather that then the slow speed of writing the file to the hd. -- Chris Lee [EMAIL PROTECTED] "David" <[EMAIL PROTECTED]>

[PHP] file uploading => dumping into ram?

2002-01-03 Thread David
hi all, I wes doing some file upload stuff with php when i noticed that as the file is being uploaded, the entire file is stored in ram until it\'s finished. obviously, we know the problems associated with this(use up a lot of ram for large files), i\'m just wondering, is this going to be fi

Re: [PHP] File uploading?

2001-01-31 Thread James Smith
Here is the code i'm running for my file upload and it work correctly: // file with submit form // This is the file that you want to use as post // example is postfile.php // That will copy the file. here is the full function I have implemented with my page to store path into mysql. fun

Re: [PHP] File uploading?

2001-01-31 Thread Ben
Lauri, supposing you name the file input tag "myfile" (like ), then $myfile contains the name of the temporary file on the server, while $myfile_name contains the filename on the client's system. See also http://www.php.net/manual/en/features.file-upload.php Drop me a line if you are still stu

[PHP] File uploading?

2001-01-31 Thread Lauri Vain
Hello everybody, I'm trying to do a file upload from the users computer via HTML file form element to a Linux server running Apache. The file is selected by the user from her or his computer, they hit the submit button and the file goes to /print/ folder (dir relative to uploading script on the

Re: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Alex Black
http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] ("Matt Williams") > Newsgroups: php.general > Date: 11 Jan 2001 03:11:21 -0800 > Subject: RE: [PHP] File Uploading Security - Ur

RE: [PHP] file uploading error - can't upload "none"

2001-01-11 Thread WreckRman2
- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 5:45 AM To: 'Php-General@Lists. Php. Net' Subject: [PHP] file uploading error - can't upload "none" Below is my code. I am uploading an image and a zip file only I want to make it insert nop

RE: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Moritz Petersen
hat the uploaded file has the correct extension. > > Where $userfile is the upload field name in the form > > M@ > > -Original Message- > > From: Statbat [mailto:[EMAIL PROTECTED]] > > Sent: 11 January 2001 11:00 > > To: PHP-General > > Subject: [PHP] Fil

RE: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Matt Williams
t [mailto:[EMAIL PROTECTED]] > Sent: 11 January 2001 11:00 > To: PHP-General > Subject: [PHP] File Uploading Security - Urgent please > > > Hello, > > I am doing file uploading of only jpg file format, It first copys > in tmp directory then I copy it in main well you al

[PHP] File Uploading Security - Urgent please

2001-01-11 Thread Statbat
Hello, I am doing file uploading of only jpg file format, It first copys in tmp directory then I copy it in main well you all know the procedure... neways what I am concerned is how can I check that the file in temp is correct file and is safe for me to copy it in the main folder? Regards

[PHP] file uploading error - can't upload "none"

2001-01-11 Thread David Smith
Below is my code. I am uploading an image and a zip file only I want to make it insert nopic.jpg if they don't upload an image. When I change if($fileimage== "none") { to if($fileimage== "none") { $FileImage = 'nopic.jpg'; } else { $FileImage = $fileimage_name; } I get error can'