Re: [PHP] File Upload MultiPart

2013-02-24 Thread tamouse mailing lists
On Sun, Feb 24, 2013 at 1:07 PM, wrote: > Hello, > > I have been looking how to upload big files more than 1GB , with php but it > doesn't work well. I guess php POST multipart method is to memory consuming. > Is there a way , like in the apache.commons to catch the stream and handle > it ? > I'v

Re: [PHP] File moving hell on Windows

2012-07-31 Thread Matt Graham
Mike Mackintosh wrote: >> What protocol are you targeting? FTP, SFTP, SSH, SMB, etc? From: Brian Dunning > Regular Windows networking. If you're using a 'Doze box, and you want to use PHP functions like rename(), then IIRC the only real option that you have is to do something like: system("net

Re: [PHP] File moving hell on Windows

2012-07-31 Thread Mike Mackintosh
On Tuesday, July 31, 2012 at 9:35 PM, tamouse mailing lists wrote: > On Jul 31, 2012 12:12 PM, "Brian Dunning" (mailto:br...@briandunning.com)> wrote: > > > > Regular Windows networking. > > > > On Jul 30, 2012, at 2:29 PM, Mike Mackintosh < > mike.mackint...@angrystatic.com (mailto:mike.mackint

Re: [PHP] File moving hell on Windows

2012-07-31 Thread tamouse mailing lists
On Jul 31, 2012 12:12 PM, "Brian Dunning" wrote: > > Regular Windows networking. > > On Jul 30, 2012, at 2:29 PM, Mike Mackintosh < mike.mackint...@angrystatic.com> wrote: > >> > > What protocol are you targeting? FTP, SFTP, SSH, SMB, etc? > > > > -- > > Mike Mackintosh > > PHP 5.3 ZCE > > > > > -

Re: [PHP] File moving hell on Windows

2012-07-31 Thread Brian Dunning
Regular Windows networking. On Jul 30, 2012, at 2:29 PM, Mike Mackintosh wrote: >> > What protocol are you targeting? FTP, SFTP, SSH, SMB, etc? > > -- > Mike Mackintosh > PHP 5.3 ZCE > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File moving hell on Windows

2012-07-30 Thread Mike Mackintosh
On Monday, July 30, 2012 at 5:19 PM, Brian Dunning wrote: > I'm dealing with a Windows NT network that includes some digital printing > presses that also run Windows. PHP 5.3.8 is running on one NT machine. Its > job is to take CSV files that exist in a directory on one machine, and move > them

Re: [PHP] file url access funniness

2012-03-10 Thread Simon Schick
Hi, TR Shaw I would next try curl as php-extension. If that is working well, and you need it definitely with file() I'd use Wireshark to check which request is sent to the remote machine. Bye Simon 2012/3/10 TR Shaw > This is weird. This statement fails: > >$tlds = file("http://www.su

Re: [PHP] File concurrent file access

2011-07-22 Thread Jonathan Tapicer
On Fri, Jul 22, 2011 at 10:44 AM, Florian Lemaitre wrote: > Hi ! > > I'm developing my new website and I'm worried about concurrent file access. > In fact, I want to suppress a maximum database interactions so I keep > information in files with faster I/O than databases. > But I'm worried by the f

Re: [PHP] File Upload Problem

2011-04-06 Thread Daniel Brown
On Wed, Apr 6, 2011 at 13:10, tedd wrote: > Hi gang: > > I wrote a simple script to upload image files from my desktop to a server -- > the exact same code works on two servers, but fails on a third. > > I suspect there is something set different between the servers, but I can't > find it. > > Odd

Re: [PHP] File Upload Problem

2011-04-06 Thread Bastien Koert
On Wed, Apr 6, 2011 at 1:10 PM, tedd wrote: > Hi gang: > > I wrote a simple script to upload image files from my desktop to a server -- > the exact same code works on two servers, but fails on a third. > > I suspect there is something set different between the servers, but I can't > find it. > > O

Re: [PHP] File locking with PHP functions

2011-04-04 Thread Louis Huppenbauer
It may not be a direct answer to your question, but... You could just use flock() to lock the file while accessing it. louis 2011/4/4 Paul M Foster : > I'd like to know (from someone who knows the internals more than I do) > whether the following functions lock files and to what extent: > > fopen

Re: [PHP] File locking with PHP functions

2011-04-04 Thread Stuart Dallas
On Monday, 4 April 2011 at 15:28, Paul M Foster wrote: I'd like to know (from someone who knows the internals more than I do) > whether the following functions lock files and to what extent: > > fopen($filename, 'w'); > > Does this function lock the file from writes until fclose()? > Does it lock

Re: [PHP] file upload utility ?

2011-02-07 Thread Daniel Brown
On Mon, Feb 7, 2011 at 11:03, Frank Bonnet wrote: > I found nothing that's why I wrote this !!! My point is, you only told everyone what you're trying to do. Not once did you ask a question or mention where you're seeking guidance, other than your ambivalence on file uploads and distribution

Re: [PHP] file upload utility ?

2011-02-07 Thread Jim Lucas
On 2/7/2011 8:03 AM, Frank Bonnet wrote: > On 02/07/2011 05:01 PM, Daniel Brown wrote: >> On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote: >>> Hello >>> >>> I'm searching for a utility that let our users upload a file >>> on a server , then generate a temporary link that point >>> to the real fil

Re: [PHP] file upload utility ?

2011-02-07 Thread Ashley Sheridan
"Frank Bonnet" wrote: >On 02/07/2011 05:01 PM, Daniel Brown wrote: >> On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote: >>> Hello >>> >>> I'm searching for a utility that let our users upload a file >>> on a server , then generate a temporary link that point >>> to the real file. >>> >>> As this

Re: [PHP] file upload utility ?

2011-02-07 Thread Frank Bonnet
On 02/07/2011 05:01 PM, Daniel Brown wrote: On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote: Hello I'm searching for a utility that let our users upload a file on a server , then generate a temporary link that point to the real file. As this is for internal use we don't need security, the fi

Re: [PHP] file upload utility ?

2011-02-07 Thread Daniel Brown
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet wrote: > Hello > > I'm searching for a utility that let our users upload a file > on a server , then generate a temporary link that point > to the real file. > > As this is for internal use we don't need security, the file > can be read by anyone. > > The

Re: [PHP] File-Upload per Drag-N-Drop?

2011-01-05 Thread tedd
At 7:23 PM +0100 12/29/10, Michelle Konzack wrote: Hello, my users have an Online-File-Store with nearly anything they need but one feature is missing: Drag-D-Drop. I like to implement Drag-D-Drop so users can Drag a file from a File- Manager and Drop it on the Upload-Icon in my Webinter

Re: [PHP] File-Upload per Drag-N-Drop?

2010-12-30 Thread Paul M Foster
On Wed, Dec 29, 2010 at 07:23:25PM +0100, Michelle Konzack wrote: > Hello, > > my users have an Online-File-Store with nearly anything they need but > one feature is missing: Drag-D-Drop. > > I like to implement Drag-D-Drop so users can Drag a file from a File- > Manager and Drop it on th

Re: [PHP] File-Upload per Drag-N-Drop?

2010-12-29 Thread a...@ashleysheridan.co.uk
On a slight tangent, but is that signature why I'm not able to read any of michelles emails on my phone? For some reason, only her emails get stuck and won't download, so I have to wait til someone else replies. To answer the question on this, I've not yet seen a cross platform answer to this q

Re: [PHP] File-Upload per Drag-N-Drop?

2010-12-29 Thread Michael Shadle
On Wed, Dec 29, 2010 at 10:30 AM, Daniel P. Brown wrote: >    That's more of a frontend question to which you and your > six-million-line signature should check Google to find the answer. > Don't get me wrong, Michelle, we've always tried to help out even with > off-topic questions, but this is r

RE: [PHP] File-Upload per Drag-N-Drop?

2010-12-29 Thread Tommy Pham
> -Original Message- > From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net] > Sent: Wednesday, December 29, 2010 10:23 AM > To: PHP - General > Subject: [PHP] File-Upload per Drag-N-Drop? > > Hello, > > my users have an Online-File-Store with nearly anything they need but > o

Re: [PHP] File-Upload per Drag-N-Drop?

2010-12-29 Thread Daniel P. Brown
On Wed, Dec 29, 2010 at 13:23, Michelle Konzack wrote: > Hello, > > my users have an Online-File-Store with nearly anything  they  need  but > one feature is missing:  Drag-D-Drop. > > I like to implement Drag-D-Drop so users can Drag a file  from  a  File- > Manager and Drop it on the Upload-Icon

RE: [PHP] File Manager with acl

2010-07-28 Thread Bob McConnell
From: Ricardo Martinez > i want ask to the list, if anyone knows a FIle Manager with ACL, written in > PHP and MySQL. Dokuwiki doesn't require a DBMS, but can use MySQL if you really need to shoehorn it in. Bob McConnell -- PHP General Mailing List

Re: [PHP] File Downloads

2010-05-29 Thread tedd
At 4:41 PM -0500 5/28/10, Karl DeSaulniers wrote: On May 28, 2010, at 4:25 PM, tedd wrote: At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote: Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded b

Re: [PHP] File Downloads

2010-05-28 Thread Karl DeSaulniers
The users will have gone through a registration and login to get to the downloads. The files will be served from MySQL and output to HTML of Flash. This is for a small project of limited edition audio or pictures or scripts, etc. Hens, "I'd like" to limit each user in the allotted 150 to be ab

Re: [PHP] File Downloads

2010-05-28 Thread Karl DeSaulniers
On May 28, 2010, at 4:25 PM, tedd wrote: At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote: Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded by 150 people and thats it.. ever, how can I go

Re: [PHP] File Downloads

2010-05-28 Thread tedd
At 3:39 PM -0500 5/28/10, Karl DeSaulniers wrote: Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded by 150 people and thats it.. ever, how can I go about doing this? Much obliged, Karl DeSauln

Re: [PHP] File Downloads

2010-05-28 Thread Karl DeSaulniers
On May 28, 2010, at 3:54 PM, Marc Guay wrote: How can I go about restricting the number of downloads of a file on my server? Something like this could be triggered every time and then you can do whatever you want once it hits 150... maybe have it send you an email notification or something..

Re: [PHP] File Downloads

2010-05-28 Thread Marc Guay
> How can I go about restricting the number of downloads of a file on my > server? Something like this could be triggered every time and then you can do whatever you want once it hits 150... maybe have it send you an email notification or something... http://www.stevedawson.com/article0007.php -

Re: [PHP] File encryption under PHP

2010-04-01 Thread Adam Richardson
> > Then "one-way encryption" would be something no one would do. I must be using > the wrong term. What I mean is that it needs a password, which is used to > encrypt and decrypt the file. *Symmetric* encryption uses the same key to encrypt and decrypt the text (what you're talking about, and ex

Re: [PHP] File encryption under PHP

2010-04-01 Thread Kevin Kinsey
Paul M Foster wrote: Folks: If I wanted to encrypt a file in PHP and then write it out to disk (one-way encryption, requiring a password), what PHP built-ins might you recommend to encrypt the contents of the file before writing it out to disk? Paul Here's a very generic mcrypt example. IANA

Re: [PHP] File encryption under PHP

2010-04-01 Thread APseudoUtopia
On Thu, Apr 1, 2010 at 4:05 PM, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 16:04 -0400, Paul M Foster wrote: > >> On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: >> >> > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: >> > >> >     Folks: >> > >> >     If I wanted to e

Re: [PHP] File encryption under PHP

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 16:04 -0400, Paul M Foster wrote: > On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: > > > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > > > > Folks: > > > > If I wanted to encrypt a file in PHP and then write it out to disk > > (one

Re: [PHP] File encryption under PHP

2010-04-01 Thread APseudoUtopia
On Thu, Apr 1, 2010 at 3:47 PM, Paul M Foster wrote: > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP built-ins might you > recommend to encrypt the contents of the file before writing it out to > disk? > > Paul

Re: [PHP] File encryption under PHP

2010-04-01 Thread Paul M Foster
On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP built-ins might you >

Re: [PHP] File encryption under PHP

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP built-ins might you > recommend to encrypt the contents of the file before writing it out to > disk? > >

Re: [PHP] File Upload

2010-01-30 Thread Ashley Sheridan
4 this malfunction is now observed. > > Any idea? > > Kind regards > > Ali > > > - Original Message - > From: Eric Lee > To: Ali Reza Sajedi > Cc: phpList list > Sent: Saturday, January 30, 2010 1:21 PM > Subject: Re: [PHP] File

Re: [PHP] File Upload

2010-01-30 Thread Ali Reza Sajedi
- From: Eric Lee To: Ali Reza Sajedi Cc: phpList list Sent: Saturday, January 30, 2010 1:21 PM Subject: Re: [PHP] File Upload On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi wrote: Hello, When uploading a file the variable $_FILES['userfile']['tm

Re: [PHP] File Upload

2010-01-30 Thread Eric Lee
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi wrote: > Hello, > > When uploading a file the variable $_FILES['userfile']['tmp_name'] is not > set and when debugging I get the following error although /tmp folder exists > and the permissions are set to 777: > > $_FILES['userfile']['error'] = 6 >

Re: [PHP] File Upload

2010-01-30 Thread Kim Madsen
Ali Reza Sajedi wrote on 30/01/2010 12:27: UPLOAD_ERR_NO_TMP_DIR Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3. Has anyone encountered such a problem or has a clue as to what the cause could be? What does "print phpinfo()"; tell you about the upload_tmp_dir?

Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']

2009-12-26 Thread Richard Quadling
, Richard Quadling wrote: > > From: Richard Quadling > Subject: Re: [PHP] File upload directive: $_FILES['filename']['name'] instead > of $_FILES['filename']['tmp_name'] > To: "Andrei Iarus" , "PHP General list" > >

Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']

2009-12-23 Thread Richard Quadling
2009/12/23 Andrei Iarus : > Of course: also tried the is_uploaded_file, exactly like in the manual. And > it fails :( > > --- On Wed, 12/23/09, Richard Quadling wrote: > > From: Richard Quadling > Subject: Re: [PHP] File upload directive: $_FILES['filename'

Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']

2009-12-23 Thread Richard Quadling
2009/12/22 Andrei Iarus : > Hello, > > On my production & testing servers (production runs on a centrino and testing > runs on Windows) I can only access the temporary uploaded file using > ini_get( 'upload_tmp_dir' . '/' . $_FILES['filename']['name']; > while the file $_FILES['filename']['tmp_nam

Re: [PHP] File and Directory Ownership Question

2009-12-20 Thread Al
On 12/20/2009 1:06 PM, Ashley Sheridan wrote: On Sun, 2009-12-20 at 12:58 -0500, Al wrote: I've got a PHP script running on a shared host [Blue Host] that creates a directory and writes files in it. The directory and files are "owned" by the site name, not "nobody" as I've always seen on oth

Re: [PHP] File and Directory Ownership Question

2009-12-20 Thread Ashley Sheridan
On Sun, 2009-12-20 at 12:58 -0500, Al wrote: > I've got a PHP script running on a shared host [Blue Host] that creates a > directory and writes files in it. > > The directory and files are "owned" by the site name, not "nobody" as I've > always seen on other shared hosts. > > Anyone have a pos

Re: [PHP] File To Blob Corruption

2009-11-16 Thread Bastien Koert
On Mon, Nov 16, 2009 at 8:05 AM, tedd wrote: > At 10:17 AM + 11/15/09, Ashley Sheridan wrote: >> >> Like someone mentioned on the link you posted; storing the images in the >> database does offer a layer of security, as database access is far >> easier to control than file access. >> >> Thanks

Re: [PHP] File To Blob Corruption

2009-11-16 Thread tedd
At 10:17 AM + 11/15/09, Ashley Sheridan wrote: Like someone mentioned on the link you posted; storing the images in the database does offer a layer of security, as database access is far easier to control than file access. Thanks, Ash http://www.ashleysheridan.co.uk It also offers ease of

Re: [PHP] File To Blob Corruption

2009-11-15 Thread Ashley Sheridan
On Sun, 2009-11-15 at 16:43 +1300, German Geek wrote: > Hi, Could it have something to do with an eof character being encoded or > something like that? Do you really need to store the files in the DB? It > uses more processing power if stored in the DB because on retrieval, you > have to unescape

Re: [PHP] File To Blob Corruption

2009-11-14 Thread German Geek
Hi, Could it have something to do with an eof character being encoded or something like that? Do you really need to store the files in the DB? It uses more processing power if stored in the DB because on retrieval, you have to unescape the string and return it. Modern filesystems are optimised bett

RE: [PHP] File download question

2009-09-06 Thread Andrea Giammarchi
That is for IE and its silly FileName[N] rather than FileName here a good old function to download: http://www.devpro.it/code/72.html Regards > Date: Sun, 6 Sep 2009 15:43:27 -0300 > From: tapi...@gmail.com > To: chris_pa...@danmangames.com > CC: php-general@lists.php.net > Su

Re: [PHP] File download question

2009-09-06 Thread Jonathan Tapicer
I think that your problem in this line: header("Content-Disposition: filename=$file" . "%20"); I don't know what that %20 is for and you should quote the filename, that line should be something like this: header("Content-Disposition: attachment; filename=\"$file\""); Considering that $filenam

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: "Eric" To: ; "Ralph Deffke" Cc: Sent: Saturday, August 29, 2009 5:01 PM Subject: Re: [PHP] File Open Prompt? > > - Original Message - > From: "Ashley Sheridan" > To: "Ralph Deffke" > Cc:

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: "Ashley Sheridan" To: "Ralph Deffke" Cc: Sent: Saturday, August 29, 2009 3:16 PM Subject: Re: [PHP] File Open Prompt? > On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: >> are u shure, u dont send anything out before

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ralph Deffke
even the .tif is valid or not, the file should be downloaded "Ashley Sheridan" wrote in message news:1251530173.27899.135.ca...@localhost... > On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: > > are u shure, u dont send anything out before u send the headers? even one > > space would be t

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ashley Sheridan
On Sat, 2009-08-29 at 09:03 +0200, Ralph Deffke wrote: > are u shure, u dont send anything out before u send the headers? even one > space would be too much. > > ralph_def...@yahoo.de > > "Dan Shirah" wrote in message > news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com... > > > >

Re: [PHP] File Open Prompt?

2009-08-29 Thread Ralph Deffke
are u shure, u dont send anything out before u send the headers? even one space would be too much. ralph_def...@yahoo.de "Dan Shirah" wrote in message news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com... > > > > You will need to add some headers to the page to popup the prompt, at

Re: [PHP] File Open Prompt?

2009-08-28 Thread Dan Shirah
> > You will need to add some headers to the page to popup the prompt, at least > with > these. > > $filename = 'somefile.tif'; > $filesize = filesize($filename); > > header('Content-Type: application/force-download'); > header('Content-disposition: attachement; filename=' . $filename); > header('C

Re: [PHP] File Open Prompt?

2009-08-28 Thread Eric
- Original Message - From: "Ashley Sheridan" To: "Dan Shirah" Cc: "PHP General" Sent: Saturday, August 29, 2009 3:10 AM Subject: Re: [PHP] File Open Prompt? > On Fri, 2009-08-28 at 15:03 -0400, Dan Shirah wrote: > >> Greetings, >&g

Re: [PHP] File Open Prompt?

2009-08-28 Thread Andrew Ballard
On Fri, Aug 28, 2009 at 3:03 PM, Dan Shirah wrote: > Greetings, > > I'm having a problem trying to get a file download prompt. > > Basically I have a page with image links. > > When the link is clicked, the user is directed to another page I have. That > page finds the image path based on the image

Re: [PHP] File Open Prompt?

2009-08-28 Thread Ashley Sheridan
On Fri, 2009-08-28 at 15:03 -0400, Dan Shirah wrote: > Greetings, > > I'm having a problem trying to get a file download prompt. > > Basically I have a page with image links. > > When the link is clicked, the user is directed to another page I have. That > page finds the image path based on the

Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb wrote: Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want to "upgrade" and move the

Re: [PHP] file locking...

2009-03-01 Thread Stuart
2009/3/1 Robert Cummings > On Sun, 2009-03-01 at 10:05 -0800, bruce wrote: > > hi rob... > > > > what you have written is similar to my initial approach... my question, > and > > the reason for posting this to a few different groups.. is to see if > someone > > has pointers/thoughts for something

RE: [PHP] file locking...

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 10:05 -0800, bruce wrote: > hi rob... > > what you have written is similar to my initial approach... my question, and > the reason for posting this to a few different groups.. is to see if someone > has pointers/thoughts for something much quicker... > > this is going to han

RE: [PHP] file locking...

2009-03-01 Thread bruce
@lists.php.net Subject: RE: [PHP] file locking... On Sun, 2009-03-01 at 09:09 -0800, bruce wrote: > hi rob... > > here's the issue in more detail.. > > i have multiple processes that are generated/created and run in a > simultaneous manner. each process wants to get XX number of files f

RE: [PHP] file locking...

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 09:09 -0800, bruce wrote: > hi rob... > > here's the issue in more detail.. > > i have multiple processes that are generated/created and run in a > simultaneous manner. each process wants to get XX number of files from the > same batch of files... assume i have a batch of 50

RE: [PHP] file locking...

2009-03-01 Thread bruce
ere i get rid of the files.. and i use some sort of database as the informational storage. hopefully this provides a little more clarity. thanks -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Sunday, March 01, 2009 2:50 AM To: bruce Cc: php-general@lists.php.n

Re: [PHP] file locking...

2009-03-01 Thread Robert Cummings
On Sat, 2009-02-28 at 21:46 -0800, bruce wrote: > Hi. > > Got a bit of a question/issue that I'm trying to resolve. I'm asking this of > a few groups so bear with me. > > I'm considering a situation where I have multiple processes running, and > each process is going to access a number of files i

Re: [PHP] file locking...

2009-03-01 Thread Ashley Sheridan
On Sat, 2009-02-28 at 21:46 -0800, bruce wrote: > Hi. > > Got a bit of a question/issue that I'm trying to resolve. I'm asking this of > a few groups so bear with me. > > I'm considering a situation where I have multiple processes running, and > each process is going to access a number of files i

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-24 Thread Shawn McKenzie
Jochem Maas wrote: > I read that you already got your script performance up, > but I'd still like to suggest that you shouldn't be reading in > a complete 18Mb file (especially given that you don't know > in advance whether some day(s) this size might be much larger). > > instead you should be ope

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-24 Thread Jochem Maas
I read that you already got your script performance up, but I'd still like to suggest that you shouldn't be reading in a complete 18Mb file (especially given that you don't know in advance whether some day(s) this size might be much larger). instead you should be opening a handle to the file and t

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-23 Thread fschnittke
Hi Shawn: Yes, good idea, I agree Thanks Fred > fschnit...@execulink.com wrote: >> Thanks Paul and Shawn: >> >> I can't answer the Why's in your posts, as this is literally my first >> attempt at PHP, but I will investigate your response and refine my code >> accordingly. >> >> What I did

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-23 Thread Shawn McKenzie
fschnit...@execulink.com wrote: > Thanks Paul and Shawn: > > I can't answer the Why's in your posts, as this is literally my first > attempt at PHP, but I will investigate your response and refine my code > accordingly. > > What I did find is that by replacing the following code: > > $fhandle =

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-23 Thread fschnittke
Thanks Paul and Shawn: I can't answer the Why's in your posts, as this is literally my first attempt at PHP, but I will investigate your response and refine my code accordingly. What I did find is that by replacing the following code: $fhandle = fopen("/ramdrive/import_file.txt", "w"); foreach

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-23 Thread Paul M Foster
On Mon, Feb 23, 2009 at 11:59:20AM -0500, fschnit...@execulink.com wrote: > Hi: > > Newbie here. This is my first attempt at PHP scripting. I'm trying to find > an alternative to Lotus Domino's domlog.nsf for logging web transactions. > Domino does create an Apache compatible text file of the web

Re: [PHP] File Manager

2009-02-05 Thread Yannick Mortier
2009/2/5 Sn!per : > What would you guys recommend as a good and free opensource file management > system? > > TIA. > > > > > -- > Sign Up for free Email at http://ureg.home.net.my/ > I haven't use any up to now. But a quick google search turned out decent results: http://phpfm.sourceforge.net/ -

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Jason Todd Slack-Moehrle
Hi Eric, So do I still use move_uploaded_file? Absolutely. I just didn't see anywhere in your code where you were checking for an error with the file upload itself or that it did exist on the server before moving it. Got it, thanks!! -Jason -- PHP General Mailing List (http://www.php.net

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Eric Butera
On Fri, Dec 5, 2008 at 5:40 PM, Jason Todd Slack-Moehrle <[EMAIL PROTECTED]> wrote: > Hi Eric, > > 'tempUploads/1425182872.xlsUploaded The File.' > > http://us2.php.net/manual/en/function.is-uploaded-file.php > http://us2.php.net/manual/en/features.file-upload.errors.php > > So do I still use move_

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Jason Todd Slack-Moehrle
Hi Eric, 'tempUploads/1425182872.xlsUploaded The File.' http://us2.php.net/manual/en/function.is-uploaded-file.php http://us2.php.net/manual/en/features.file-upload.errors.php So do I still use move_uploaded_file? -Jason

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Eric Butera
On Fri, Dec 5, 2008 at 5:13 PM, Jason Todd Slack-Moehrle <[EMAIL PROTECTED]> wrote: > Here is the output I am printing: > > 'tempUploads/1425182872.xlsUploaded The File.' > > What is the issue? > > -Jason > > > On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote: > >> Hi All, >> >> I am uplo

Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Jason Todd Slack-Moehrle
Here is the output I am printing: 'tempUploads/1425182872.xlsUploaded The File.' What is the issue? -Jason On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote: Hi All, I am uploading a file and it says it worked, but I dont see it in the directory Here is my code so far:

Re: [PHP] File download problem

2008-08-19 Thread tedd
At 3:32 PM +0100 8/19/08, Ashley Sheridan wrote: That bug report makes sense now, in light of your problem. It wasn't something I'd ever seen happen before, as most of my work is done on Linux, and the bug seems to be specific to the way Windows uses the BOM for UTF-8 PHP files. Ash: A probl

Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
That bug report makes sense now, in light of your problem. It wasn't something I'd ever seen happen before, as most of my work is done on Linux, and the bug seems to be specific to the way Windows uses the BOM for UTF-8 PHP files. Ash www.ashleysheridan.co.uk --- Begin Message --- I just add this

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
I just add this comment for reference. I found this bug report on the PHP Web site: http://bugs.php.net/bug.php?id=22108 That bug explains everything :) Stefano Stefano Noffke wrote: Thanks for the reply. I think I found the problem here: The php file was saved with UTF-8 encoding, and for

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
ysheridan.co.uk ---- Subject: Re: [PHP] File download problem From: Stefano Noffke <[EMAIL PROTECTED]> Date: Tue, 19 Aug 2008 15:17:25 +0200 To: php-general@lists.php.net To: php-general@lists.php.net I checked the files with an HEX editor, and I found that each downloaded file starts with "EFBB

Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
I had a similar problem with a script I was using to stream video clips to a user from a directory that was not accessible through the web. Turned out I had already sent some HTML content down to the browser without realising it. I'll go out on a limb here and guess that those three bytes you're se

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
I checked the files with an HEX editor, and I found that each downloaded file starts with "EFBBBF", and after those three bytes follows the regular file. If I delete those three bytes, I can open the files just fine. Now the question is: Why do I get those three extra bytes at the beginning o

Re: [PHP] File download problem

2008-08-18 Thread Stefano Noffke
Hi, Thank you for your reply. I tried your code, but the problem remains. I still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG are still corrupted. I wonder why it works with some files and not with others... Stefano Ashley Sheridan ha scritto: Hi Stefano, You can use th

Re: [PHP] File download problem

2008-08-18 Thread Ashley Sheridan
Hi Stefano, You can use this code instead to read in the file and output it to the browser, as it is binary safe. I've used it for the same reason you require, and it works fine with video clips. $fp = fopen($path, "rb"); while(!feof($fp)) { print(fread($fp, 1024)); flush($fp); } fc

Re: [PHP] Re: php File upload

2008-08-08 Thread Per Jessen
Tom wrote: > "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > Tom wrote: > >> Im very glad to fix this problem, but the next one is here: Other >> machine (but 2 GB Ram), same suse version, same (working now) >> php.ini with limits to 5000M now and i can't uploa

Re: [PHP] Re: php File upload

2008-08-08 Thread Tom
What is set this limit? "Per Jessen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Tom wrote: > Im very glad to fix this problem, but the next one is here: Other > machine (but 2 GB Ram), same suse version, same (working now) php.ini > with limits to 5000M now and i can't up

Re: [PHP] Re: php File upload

2008-08-08 Thread Luke
You could always program in something (perhaps in Ajax) to monitor the progress of the file upload and check for errors periodically. Luke Slater On 8 Aug 2008, at 11:55, Peter Ford <[EMAIL PROTECTED]> wrote: Per Jessen wrote: Tom wrote: Im very glad to fix this problem, but the next one i

Re: [PHP] Re: php File upload

2008-08-08 Thread Peter Ford
Per Jessen wrote: Tom wrote: Im very glad to fix this problem, but the next one is here: Other machine (but 2 GB Ram), same suse version, same (working now) php.ini with limits to 5000M now and i can't upload a File greater than 900MB. A file under 900MB i see the tmp file growing. A File with

Re: [PHP] Re: php File upload

2008-08-08 Thread Per Jessen
Tom wrote: > Im very glad to fix this problem, but the next one is here: Other > machine (but 2 GB Ram), same suse version, same (working now) php.ini > with limits to 5000M now and i can't upload a File greater than 900MB. > A file under 900MB i see the tmp file growing. A File with +1 GB no > t

[PHP] Re: php File upload

2008-08-08 Thread Tom
Problem solved (at one machine)! I can upload a ~ 2 GB File now on a machine with 1 GB Main Memory! No Problem, swap is used but no break now. The answer is, i think, the dramatical overhead for http upload, simply my post_max_size and upload_max_size are to small. If i will upload 1 GB it mus

Re: [PHP] File Upload Security

2008-04-11 Thread Wolf
Al wrote: One of my sites has been hacked and I'm trying to find the hole. The hack code creates dirs with "nobody" ownership, so it's obvious stuff is not via ftp [ownership would be foo] Site is virtual host, Linux/Apache I'm concerned about a file uploader my users use to upload photos.

Re: [PHP] File Upload Security

2008-04-11 Thread Bojan Tesanovic
I would recommend something more strong http://www.php.net/manual/en/function.exif-imagetype.php or if you dont have exif http://www.php.net/manual/en/function.getimagesize.php will do also a trick. One more thing, you are also allowing .txt and .css which may be potential hole, as Apache can

Re: [PHP] File Format

2008-04-11 Thread Bojan Tesanovic
I bet there is no native PHP methods for that kind of file, but you can easily check the headers of wave file , you need to have a specification or at least have 3 wave files of PCM and CCITT , compare the first 100 characters of that file, and you will get the clue and logic how to recogn

Re: [PHP] File Upload Security

2008-04-11 Thread Al
The hack puts this .htaccess in dozens of dirs RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://([a-z0-9_\-]+\.)*(google|msn|yahoo|live|ask|dogpile|mywebsearch|yandex|rambler|aport|mail|gogo|poisk|alltheweb|fireball|freenet|abacho|wanadoo|free|club-internet|aliceadsl|alice|skynet|terra|ya

Re: [PHP] File Upload Security

2008-04-11 Thread mike
How was it "hacked"? That will help determine what kind of exploit might have been used. On 4/11/08, Al <[EMAIL PROTECTED]> wrote: > One of my sites has been hacked and I'm trying to find the hole. The hack > code creates dirs with "nobody" ownership, so it's obvious stuff is not via > ftp [own

  1   2   3   4   5   6   7   8   9   10   >