Re: [PHP] Re: Uploading and creating an email attachment, WITHOUT aDB on server

2012-03-28 Thread tamouse mailing lists
On Tue, Mar 27, 2012 at 8:33 AM, Maciek Sokolewicz wrote: > Also note: checking file extensions has nothing to do with security; relying > on such a crude technique to work is a very very bad idea. It also limits > the possible formats that people would like to send their CV as; for example > I ca

Re: [PHP] Re: Uploading and creating an email attachment, WITHOUT aDB on server

2012-03-27 Thread Maciek Sokolewicz
On 27-03-2012 15:16, Bastien Koert wrote: On Tue, Mar 27, 2012 at 8:41 AM, Christopher Svanefalk wrote: Addendum: what standard functions could I invoke to accomplish the file system view part? On Tue, Mar 27, 2012 at 2:37 PM, Christopher Svanefalk< christopher.svanef...@gmail.com> wrote:

Re: [PHP] Re: Uploading and creating an email attachment, WITHOUT a DB on server

2012-03-27 Thread Bastien Koert
On Tue, Mar 27, 2012 at 8:41 AM, Christopher Svanefalk wrote: > Addendum: what standard functions could I invoke to accomplish the file > system view part? > > On Tue, Mar 27, 2012 at 2:37 PM, Christopher Svanefalk < > christopher.svanef...@gmail.com> wrote: > >> Dear all, >> >> I am rather green

[PHP] Re: Uploading and creating an email attachment, WITHOUT a DB on server

2012-03-27 Thread Christopher Svanefalk
Addendum: what standard functions could I invoke to accomplish the file system view part? On Tue, Mar 27, 2012 at 2:37 PM, Christopher Svanefalk < christopher.svanef...@gmail.com> wrote: > Dear all, > > I am rather green to PHP and web programming in general, and would just > like some pointers h

Re: [PHP] Re: uploading file outside WEB Root [0T]

2008-09-12 Thread Brady Mitchell
On Fri, Sep 12, 2008 at 12:47 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> Microsoft sucks because they didn't make their symbolic linking >> methodology public knowledge and charge additional fees to obtain the >> Win2k system kit they suggest you use to make the links in the first >> place.

RE: [PHP] Re: uploading file outside WEB Root [0T]

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 14:39 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Robert Cummings [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 12, 2008 1:12 PM > > To: Boyd, Todd M. > > Cc: Luke; php-general@lists.php.net > > Subject:

RE: [PHP] Re: uploading file outside WEB Root [0T]

2008-09-12 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 1:12 PM > To: Boyd, Todd M. > Cc: Luke; php-general@lists.php.net > Subject: RE: [PHP] Re: uploading file outside WEB Root > > On Fri, 2008-09-12 at 09:38 -0

RE: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Boyd, Todd M.
> -Original Message- > From: Brady Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 11:44 AM > To: Luke > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] Re: uploading file outside WEB Root > > > On Sep 12,

RE: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Robert Cummings
On Fri, 2008-09-12 at 09:38 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Luke [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 12, 2008 7:16 AM > > To: [EMAIL PROTECTED] > > Cc: php-general@lists.php.net > > Subject: Re: [PHP]

Re: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Brady Mitchell
On Sep 12, 2008, at 516AM, Luke wrote: Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? Not sure how to do this on Windows Windows 2k and up do support symbolic links, take a look at http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx Brady -- PHP General Ma

RE: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Boyd, Todd M.
> -Original Message- > From: Luke [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 7:16 AM > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: uploading file outside WEB Root > > Could you use a symbolic link? If on Linux

Re: [PHP] Re: uploading file outside WEB Root

2008-09-12 Thread Luke
Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? Not sure how to do this on Windows 2008/9/1 Carlos Medina <[EMAIL PROTECTED]> > Angelo Zanetti schrieb: > >> Hi All, >> For security purposes I would like to upload a file outside the webroot. >> >> I have got this to work on

[PHP] Re: uploading file outside WEB Root

2008-09-01 Thread Carlos Medina
Angelo Zanetti schrieb: Hi All, For security purposes I would like to upload a file outside the webroot. I have got this to work on my local dev machine but it doesn't seem to work on the live server. I have tried both the relative path and also the full path (from the $_SERVER[DOCUMENT_ROOT]

Re: [PHP] Re: Uploading PDF

2008-02-15 Thread Aleksandar Vojnovic
Upload error 2 occurs when the file size exceeds the maximum allowed upload size. Aleksander David Robley wrote: Pastor Steve wrote: Greetings, I am getting an error when I am trying to upload a PDF file through a script. When I do a print_r($_FILES) I get the following: Array ( [

[PHP] Re: Uploading PDF

2008-02-14 Thread David Robley
Pastor Steve wrote: > Greetings, > > I am getting an error when I am trying to upload a PDF file through a > script. > > When I do a print_r($_FILES) I get the following: > > Array > ( > [userfile] => Array > ( > [name] => document.pdf > [type] => >

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 8:03 PM +0100 11/21/07, Jochem Maas wrote: tedd wrote: > Well, I wasn't able to get it to work -- I couldn't find where to change the FF settings (Mac). type 'about:config' into the address bar :-) I know I'll get a big argument from all of you about this, but sometimes I can be pretty

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > huh? if I post a file to a script that returns a 204 status and nothing > else then the page should not change in the browser. > [/snip] > > True, the missing piece is that the post cannot move the file up to the > server. I was referring to a standard POST not us

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
tedd wrote: > At 12:23 PM -0600 11/21/07, Jay Blanchard wrote: >> [snip] >> But, take a look at this: >> >> http://www.captain.at/ajax-file-upload.php >> >> They look like their blowing the same wind. >> [/snip] >> >> Yep, look at all of the gotchas. > > > Well, I wasn't able to get it to work --

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Andrés Robinet
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 21, 2007 3:24 PM > To: tedd; Jochem Maas > Cc: Colin Guthrie; php-general@lists.php.net > Subject: RE: [PHP] Re: uploading files... necessary Ajax? > > [snip] &g

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 12:23 PM -0600 11/21/07, Jay Blanchard wrote: [snip] But, take a look at this: http://www.captain.at/ajax-file-upload.php They look like their blowing the same wind. [/snip] Yep, look at all of the gotchas. Well, I wasn't able to get it to work -- I couldn't find where to change the FF

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] But, take a look at this: http://www.captain.at/ajax-file-upload.php They look like their blowing the same wind. [/snip] Yep, look at all of the gotchas. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 11:49 AM -0600 11/21/07, Jay Blanchard wrote: [snip] Ahhh, so that's it. My twitchy little brain was thinking if I can send arguments to the server via ajax, then why can't I send ""multipart/form-data"? After all, data is data right? It might be too cpu intensive, but I can imagine js break

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] Ahhh, so that's it. My twitchy little brain was thinking if I can send arguments to the server via ajax, then why can't I send ""multipart/form-data"? After all, data is data right? It might be too cpu intensive, but I can imagine js breaking down an image file in packets and then sendi

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 11:32 AM -0600 11/21/07, Jay Blanchard wrote: [snip] huh? if I post a file to a script that returns a 204 status and nothing else then the page should not change in the browser. [/snip] True, the missing piece is that the post cannot move the file up to the server. Ahhh, so that's it. My

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] huh? if I post a file to a script that returns a 204 status and nothing else then the page should not change in the browser. [/snip] True, the missing piece is that the post cannot move the file up to the server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > So that I can get my head around this, are all of you saying there is > no Ajax equivalent of: > > > > > > > > We can't in some way use the ajax post method to send the file in the > background without a refresh (other than using iframe) is that > correct?

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] That is correct. Without an IFRAME you cannot upload a file without a refresh. [/snip] Take Two. You could also open another window, but that kinda defeats the purpose. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Andrés Robinet
iframe or a SWF). Hope not to be far from thruth Rob (sorry, top posting, we've all read the rest of it :D) > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 21, 2007 2:13 PM > To: Jochem Maas; Colin Guthrie > Cc: php-general@li

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] So that I can get my head around this, are all of you saying there is no Ajax equivalent of: We can't in some way use the ajax post method to send the file in the background without a refresh (other than using iframe) is that correct? Or am I completely missing something here? [/sn

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
Hi gang: So that I can get my head around this, are all of you saying there is no Ajax equivalent of: We can't in some way use the ajax post method to send the file in the background without a refresh (other than using iframe) is that correct? Or am I completely missing something here?

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Colin Guthrie wrote: > T.Lensselink wrote: >> On Wed, 21 Nov 2007 08:38:18 -0600, "Jay Blanchard" <[EMAIL PROTECTED]> >> wrote: >>> [snip] >>> Seems to me Pere want's to do an upload without reloading the whole >>> page. >>> [/snip] >>> >>> The problem is that you cannot upload files using Ajax alo

[PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Colin Guthrie
T.Lensselink wrote: > On Wed, 21 Nov 2007 08:38:18 -0600, "Jay Blanchard" <[EMAIL PROTECTED]> > wrote: >> [snip] >> Seems to me Pere want's to do an upload without reloading the whole >> page. >> [/snip] >> >> The problem is that you cannot upload files using Ajax alone. But you >> can do it withou

[PHP] Re: Uploading Files into MySQL

2007-05-24 Thread Jared Farrish
I am working on a script to upload files into MySQL db. The following script uploads to a file system how do I go about uploading the file into the DB? Where do I put the SQL statement in the code below? Let's see: script upload file mysql database Hmm, add php and you have Google php scr

Re: [PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 11:00 +0200, clive wrote: > itoctopus wrote: > > I have tried both, and I tell you that I really felt that the filesystem is > > a more convenient way of doing it. > > > I have to agree, filesystems were after all designed to store files. I > reckon reading a file from disk

Re: [PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-22 Thread Tijnema
On 5/22/07, clive <[EMAIL PROTECTED]> wrote: itoctopus wrote: > I have tried both, and I tell you that I really felt that the filesystem is > a more convenient way of doing it. > I have to agree, filesystems were after all designed to store files. I reckon reading a file from disk is much quicker

Re: [PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-22 Thread clive
itoctopus wrote: I have tried both, and I tell you that I really felt that the filesystem is a more convenient way of doing it. I have to agree, filesystems were after all designed to store files. I reckon reading a file from disk is much quicker than reading from a database, maybe only fract

[PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-21 Thread Al
Best of both worlds may be SQLite. ZEND has a nice article on the subject. [EMAIL PROTECTED] wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb. Do you think

[PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-21 Thread Jonathan
[EMAIL PROTECTED] wrote: I am in the process of adding a part to my website which would include pictures, pdf files, txt files, and excel files. The files sizes could be anywhere on average of 100k to 2mb. Do you think I should be uploading the files to a MySQL database or to my server? I have

[PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread itoctopus
I have tried both, and I tell you that I really felt that the filesystem is a more convenient way of doing it. -- itoctopus - http://www.itoctopus.com <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am in the process of adding a part to my website which would include > pictures,

Re: [PHP] Re: Uploading into website directory for Php files

2007-02-26 Thread Edward Vermillion
On Feb 26, 2007, at 12:06 PM, Edward Vermillion wrote: Or you can set a constant to the includes directory: Ooopps... should be define('INCLUDE_DIR', '/files/include/'); forgot the last '/'... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Re: Uploading into website directory for Php files

2007-02-26 Thread Edward Vermillion
On Feb 26, 2007, at 11:22 AM, [EMAIL PROTECTED] wrote: Thanks alot for your response.. your information really was a help. but now knowing that I an use a folder in my root DIR.. how do I let PHP know where to look? For example the location lets say of my include fold is www.example.

[PHP] Re: uploading files

2005-04-13 Thread Matthew Weier O'Phinney
* Marc Serra <[EMAIL PROTECTED]>: > Hi, i want to create a form to upload a file on a server. My problem is > that i want to check the filesize before sending it because if the > filesize is superior than 2 MB it failed and i don't want to wait for a > long time for uploading a file that will fa

[PHP] Re: uploading > remote server

2005-02-22 Thread Jason Barnett
Sebastian wrote: > i have some php forms which uploads files/images and i would like to know if > its possible to upload them to a remote server instead, if so, how? > > cheers Yes it is possible. This is a bit of reading, but it is exactly what you need to read: http://php.net/manual/en/featur

[PHP] Re: Uploading multiple files

2004-07-02 Thread Torsten Roehr
"Gennaro losappio" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear All. Hi. > > I ma trying to write a script that let the user choose > how many languages to upload. Therefore the first > script checks weather the user has choosed to add > images, if not, he'll get a preview o

[PHP] Re: Uploading a file to server behind a firewall

2004-02-26 Thread Andre Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i dont know if that can be fixed using php, it looks like a firewall setup problem? which port is apache running? i got confused with your ponctuation and explanations, maybe some rephrasing and more details, like error message, could help Rick La

[PHP] Re: Uploading Files

2004-02-24 Thread Tom Wollaston
My script now reads: \n"; //$username : contains the name of TMP file, $usrfile_name : it's the real name of file } ?> File to Upload: I now get: Warning: Unable to create '/home/sites/site176/web/makeit/Ski club logo high resolution.jpg': Permission denied in /home/sites/site176/web/admin

[PHP] Re: Uploading by email

2003-08-26 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > I know it's slightly not totally about PHP.. but since I wanna do it with > PHP, i'll post it here. I was wondering if anybody can help me to accomplish > the following: > > - Somebody sends an email to, for example, [EMAIL PROT

[PHP] Re: Uploading by email

2003-08-26 Thread Manuel Lemos
Hello, On 08/25/2003 05:41 PM, Wouter Van Vliet wrote: I know it's slightly not totally about PHP.. but since I wanna do it with PHP, i'll post it here. I was wondering if anybody can help me to accomplish the following: - Somebody sends an email to, for example, [EMAIL PROTECTED] This email has s

[PHP] Re: uploading images

2003-06-24 Thread Misha Peric
fopen() returns FALSE if it fails, and that's probably what happends here. $_POST is superglobal so register_globals doesn't mean anything to it. Just use the proper functions for filename and filesize: $_FILES['userfile']['name'] $_FILES['userfile']['size'] Of course you should move the uploaded

[PHP] Re: Uploading a directory via browser w/ php

2002-12-11 Thread Peter Dotinga
Föíö Öxî‰êójînyóon wrote: Hi I’m wondering if any body has done somthing like uploading a whole directory trough webbrowser using php, or has any Ideas how such a thing can be done, any Ideas appriciated. A serverside-only solution isn't possible. On the clientside, a piece of software (eg.

Re: [PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
Message - > From: "Shaun Thornburgh" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 01, 2002 1:51 PM > Subject: [PHP] Re: uploading files > > > > My apologies, here is the code! > > > > //copy image to server &g

Fw: [PHP] Re: uploading files

2002-11-01 Thread Kevin Stone
Confirm that you're using the proper header information in your HTML tag.. -Kevin - Original Message - From: "Shaun Thornburgh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 1:51 PM Subject: [PHP] Re: uploading files >

[PHP] Re: uploading files

2002-11-01 Thread Shaun Thornburgh
My apologies, here is the code! //copy image to server if ($image != "none") { if (copy ($image, $dir.$image_name)){ echo "File upload successful!"; } else { echo "File upload unsuccessful!"; } //new name of image $new_name = "$property_id-$category_id-$sub_category_id.jpg";

Re: [PHP] Re: uploading files

2002-10-07 Thread Kevin Stone
ginal Message - From: "Jason Young" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 07, 2002 11:24 AM Subject: [PHP] Re: uploading files > How are you handling the transfer of files between its temporary area > and where it's going to be st

[PHP] Re: uploading files

2002-10-07 Thread Jason Young
How are you handling the transfer of files between its temporary area and where it's going to be stored? If you're copying instead of moving, I would imagine the file in the temp directory would still be present. -Jason Donahue Ben wrote: > I am uploading a gif file using > is_upload_file($f

[PHP] Re: Uploading Files

2002-10-04 Thread eriol
"Jason" <[EMAIL PROTECTED]> disgorged: : : : I am able to get rid of this error, but changing the line to: : move_uploaded_file($_FILES['userfile']['tmp_name'], : "../images/$_FILES[userfile][name]"); : : However, the file is then uploaded as Array[name] : : How do I get past this? I'm no

[PHP] Re: Uploading Files

2002-10-04 Thread Jason
Okay, I checked out the link listed below, and tried using what is given there, but I get the following error: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in d:\www_root\locutus\phpman\admin\test.php on line 16 Here's the code t

[PHP] Re: Uploading Files

2002-10-04 Thread eriol
"Jason" <[EMAIL PROTECTED]> disgorged: : I would like to be able to upload files from the client computer to the : server via a form. I know how to build the form, but am not sure of the : best way to process this. I know there are certain ftp functions that can : do this, which I'm not sure

[PHP] Re: Uploading file

2002-09-03 Thread eriol
Definately check out the URL Juan posted first to learn how you can easily do this yourself.. You can also check http://www.hotscripts.com/PHP/Scripts_and_Programs/ and look into the "/File Manipulation/Upload Systems" and "/Form Processors" directorys there for some pre-written upload scripts.. Y

[PHP] Re: uploading problems...please help

2002-08-26 Thread Richard Lynch
>I'm trying to upload files from my PC to my website. The code is a little >nuts, but it's all I got to work locally, butonce I take the code to the web >I get this message. Can anyone tell me what I'm doing wrong? > >I'm trying to upload a file, strip all the information so as to just use the >

[PHP] Re: uploading a file via php - i need some simple code

2002-07-03 Thread Richard Lynch
>I am having the worst trouble trying to write a tiny simple script that >will upload a file. Below is my code - can anyone tell me why it's not >working > >HTML > >enctype="multipart/form-data"> > > > > > >PHP (upload.php) > >$filename = "/test.txt"; >if (!move_uploaded_file($userf

[PHP] Re: uploading a file via php - i need some simple code

2002-07-03 Thread Philip Hallstrom
Read http://www.php.net/manual/en/features.file-upload.php On Wed, 3 Jul 2002, Phil Schwarzmann wrote: > I am having the worst trouble trying to write a tiny simple script that > will upload a file. Below is my code - can anyone tell me why it's not > working > > HTML > > enctype="multipar

[PHP] Re: uploading a file - here is the error message...

2002-07-01 Thread Richard Lynch
>Here is the error I'm receiving when attempting to upload a file > >Warning: Unable to create 'temp/test.txt': Permission denied in >/home/.../www/website/upload3.php on line 11 > > >..could it be that my web host isn't giving me permissions to upload >files ? > Yes. Or at least not where

[PHP] Re: uploading files problem

2002-03-29 Thread andy
put dubble quotes inside your html. I think this is in the spec, as soon as it is no numeric format: Cheers, Andy "Claudio Fedel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi there, > > I'm trying to upload a file using php on an apache server r

[PHP] Re: uploading images

2002-03-09 Thread Filippo Veneri
George Whiffen wrote: > Wierd, sounds like it could be a bug. What's the actual code you use > for the upload? > > I presume you are running vim from the command line of the box to which > the image is > uploaded. Content-Type: image/jpeg is, of course, what Apache would add > if you requested

[PHP] Re: uploading images

2002-03-08 Thread George Whiffen
Filippo Veneri wrote: > When uploading image files to my powerpc linux box (derived > from redhat 7.1) running apache + php4.0.4pl1 something > wierd happen. > Images get corrupted by (IMHO) php itself. It adds the > following 2 lines at the top of the file: > > Content-Type: image/jpeg^M > ^M

[PHP] Re: Uploading Files through PHP

2002-02-27 Thread Andy
maybe your code is inside a function. If this is the case set the var to global. Andy "Georgie Casey" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to let users upload word files through a PHP form but its not > working! The script keeps te

[PHP] Re: uploading files | how to avoid submitting twice?

2002-02-25 Thread George Whiffen
Jim Winstead wrote: > Andy <[EMAIL PROTECTED]> wrote: >> Is there a way to redirect imediatelly to a waiting page? I tryed to >> redirect, but somehow the server is first uploading the file before >> something else happens. > > unfortunately, no. one thing you can do is use javascript to pop up

[PHP] Re: uploading files | how to avoid submitting twice?

2002-02-23 Thread Jim Winstead
Andy <[EMAIL PROTECTED]> wrote: > Is there a way to redirect imediatelly to a waiting page? I tryed to > redirect, but somehow the server is first uploading the file before > something else happens. unfortunately, no. one thing you can do is use javascript to pop up a small window in your form's

[PHP] Re: Uploading Files with PHP

2002-02-22 Thread Lerp
Ammendment: Actually, I was just looking at one of my photoupload processes and I actually removed the MAX_FILE out of the upload form and only tested the file size on the processing page like in the previous message. Cheers, Joe :) "Lerp" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

[PHP] Re: Uploading Files with PHP

2002-02-22 Thread Lerp
Hi Jim, here's how I do it. I test for the file size on the processing page as well, if it's too large I redraw out the upload form. //test for file extension type if needed //determine file size -- if too big ( greater 50kb) then redirect $siz = filesize($userfile); if ($siz >= 51200){ //r

[PHP] Re: Uploading Files with PHP

2002-02-21 Thread Jim Koutoumis
Joe, Do you know when the file size is checked ?? I think it only gets checked after the form is posted and file uploading is finished ?? I don't know how it's possible to catch things before user uploads - now that would be neat :-) Jim. "Lerp" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: Uploading Files with PHP

2002-02-21 Thread Lerp
Hi there :) Did you set a max file size in your upload form? See my form below, notice the 'MAX_FILE_SIZE' value='102400' part within hidden field. This should appear before the rest of the form. You can adjust this value as you wish. Upload Resume:

[PHP] RE: Uploading a file

2002-01-25 Thread Mikusch, Rita
Sorry if this is obvious but . . . have you checked whether your server is running in "safe mode"? I had the same problem and finally realized that it would NEVER work cause the webserver was running in safe mode. (Disclaimer here -- I'm no sysadmin and don't know if Linux even has a safemode!) I

[PHP] PHP] Re: UPLOADING BLUES: Empty form variables when uploading

2001-11-11 Thread Sandra Rascheli
same. Do you think may be I should try the GET method instead of the POST method? Thanks again, Sandra - Original Message - From: "Steven Sullivan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 11, 2001 10:56 AM Subject: [PHP] Re: UPLOADING

[PHP] Re: UPLOADING BLUES: Empty form variables when uploading

2001-11-11 Thread Steven Sullivan
Sandra, I've been trying to get a file upload form to work, but am not having any success. So, I dropped the file part from the form, leaving just text input, and have discovered that when I use the POST method, my variables may or may not be available on the receiving page. GET works fine. I've

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
Hi Sean, Sorry for the delay with this.. Been a rather busy month.. However your help on this project has been very useful.. Sean C. McCarthy wrote: > Mike Gifford wrote: >>Sean C. McCarthy wrote: >>>If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what >>>inserts in the

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Sean C. McCarthy
Mike Gifford wrote: > > Hi Sean, > > Sean C. McCarthy wrote: > > If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what > > inserts in the DB is just the image's name, but not the file itself. > > I had trouble opening up the upload.php3 file in list six, so I couldn't verify >

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Mike Gifford
Hi Sean, Sean C. McCarthy wrote: > If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what > inserts in the DB is just the image's name, but not the file itself. I had trouble opening up the upload.php3 file in list six, so I couldn't verify by looking at the code. Not sure if

Re: [PHP] Re: Uploading Photos to MySQL

2001-09-12 Thread Sean C. McCarthy
Hi all, If you mean http://www.webtechniques.com/archives/1998/02/lerdorf/ what inserts in the DB is just the image's name, but not the file itself. What is exactly the problem you are having with the class? Just a couple days ago I had a problem uploading files into a MySQL DB because the addsl

[PHP] Re: Uploading Photos to MySQL

2001-09-11 Thread Richard Lynch
Rasmus' classic Photo Album is still online with source code. Google: "Rasmus Lerdorf" and "Photo Album" -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://

[PHP] Re: uploading

2001-04-02 Thread Yev
Thank you!!! That fixed it. Best Regards, Yev --- Bill Rausch <[EMAIL PROTECTED]> wrote: > I think your script (where you have the print_r() call) has to copy > or move > the file to a permanent location as Apache and/or PHP discards it > once your > script exits. > > --- > Bill Rausch, Softw