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) {

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

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

Re: [PHP] File uploading fails

2002-05-01 Thread 1LT John W. Holmes
$HTTP_POST_FILES/$_FILES is provided to contain the uploaded file information. The contents of $HTTP_POST_FILES are as follows. Note that this assumes the use of the file upload name 'userfile', as used in the example script above: $HTTP_POST_FILES['userfile']['name'] The original name of t

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

Re: [PHP] File uploading like hotmail

2002-01-28 Thread Girish Nath
Hi It's in the manual at : http://www.php.net/manual/en/features.file-upload.php Regards Girish -- www.girishnath.co.uk - Original Message - From: "qartis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 2

Re: [PHP] File uploading like hotmail

2002-01-28 Thread Girish Nath
Hi It's in the manual at : http://www.php.net/manual/en/features.file-upload.php Regards Girish -- www.girishnath.co.uk - Original Message - From: "qartis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 2

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

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 using php script in the > browser itself > >

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

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]>

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

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
Fixed... "; } else { if ($filezip== "none") { print "ERROR! - You must specify a zip file to upload."; } else { copy($filezip, "/home/sites/site1/ftp/$FileType/$filezip_name"); unlink($filezip); } if

RE: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Moritz Petersen
$userfile_type contains the MIME-type of the file. This is maybe more relieable then just the extension... Mo. > if(ereg("jpg|jpeg|gif$",$userfile_name)) > { > do something > } > else > { > this file is not allowed > } > This will check that the uploaded file has the correct extensi

RE: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Matt Williams
if(ereg("jpg|jpeg|gif$",$userfile_name)) { do something } else { this file is not allowed } This will check that the uploaded file has the correct extension. Where $userfile is the upload field name in the form M@ > -Original Message- > From: Statbat [mailto:[EMAIL PROTE