Re: [PHP] File Upload MultiPart

2013-02-24 Thread tamouse mailing lists
On Sun, Feb 24, 2013 at 1:07 PM, user@domain.invalid 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

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 mike.mackint...@angrystatic.com 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:

Re: [PHP] File moving hell on Windows

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

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 br...@briandunning.com 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

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 to

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 ts...@oitc.com This is weird. This statement fails: $tlds =

Re: [PHP] File concurrent file access

2011-07-22 Thread Jonathan Tapicer
On Fri, Jul 22, 2011 at 10:44 AM, Florian Lemaitre florian.lemai...@evolutioncom.eu 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

Re: [PHP] File Upload Problem

2011-04-06 Thread Bastien Koert
On Wed, Apr 6, 2011 at 1:10 PM, tedd t...@sperling.com 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

Re: [PHP] File Upload Problem

2011-04-06 Thread Daniel Brown
On Wed, Apr 6, 2011 at 13:10, tedd t...@sperling.com 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

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 from

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 pa...@quillandmouse.com: I'd like to know (from someone who knows the internals more than I do) whether the following functions lock files and to

Re: [PHP] file upload utility ?

2011-02-07 Thread Daniel Brown
On Mon, Feb 7, 2011 at 10:56, Frank Bonnet f.bon...@esiee.fr 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

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 Bonnetf.bon...@esiee.fr 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

Re: [PHP] file upload utility ?

2011-02-07 Thread Ashley Sheridan
Frank Bonnet f.bon...@esiee.fr wrote: On 02/07/2011 05:01 PM, Daniel Brown wrote: On Mon, Feb 7, 2011 at 10:56, Frank Bonnetf.bon...@esiee.fr 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.

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 Bonnetf.bon...@esiee.fr 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

Re: [PHP] file upload utility ?

2011-02-07 Thread Daniel Brown
On Mon, Feb 7, 2011 at 11:03, Frank Bonnet f.bon...@esiee.fr 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

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 the

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 linux4miche...@tamay-dogan.net 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

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 one

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 daniel.br...@parasane.net 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

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

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. http://www.splitbrain.org/projects/dokuwiki 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

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

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

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

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

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? 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 APseudoUtopia
On Thu, Apr 1, 2010 at 3:47 PM, Paul M Foster pa...@quillandmouse.com 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

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

Re: [PHP] File encryption under PHP

2010-04-01 Thread APseudoUtopia
On Thu, Apr 1, 2010 at 4:05 PM, Ashley Sheridan a...@ashleysheridan.co.uk 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

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.

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 example

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

2010-01-30 Thread Eric Lee
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi arsaj...@khanehjou.comwrote: 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:

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 arsaj...@khanehjou.com wrote: Hello, When uploading a file the variable $_FILES['userfile

Re: [PHP] File Upload

2010-01-30 Thread Ashley Sheridan
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 Upload On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi arsaj

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

2009-12-26 Thread Richard Quadling
Quadling rquadl...@googlemail.com wrote: From: Richard Quadling rquadl...@googlemail.com Subject: Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name'] To: Andrei Iarus poni1...@yahoo.com, PHP General list php-general@lists.php.net Date

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 poni1...@yahoo.com: 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

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 poni1...@yahoo.com: Of course: also tried the is_uploaded_file, exactly like in the manual. And it fails :( --- On Wed, 12/23/09, Richard Quadling rquadl...@googlemail.com wrote: From: Richard Quadling rquadl...@googlemail.com Subject: Re: [PHP] File upload

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 possible

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 other

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

Re: [PHP] File To Blob Corruption

2009-11-16 Thread Bastien Koert
On Mon, Nov 16, 2009 at 8:05 AM, tedd tedd.sperl...@gmail.com 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

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 the

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

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 $filename

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 Subject: Re: [PHP] File

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 mrsqua...@gmail.com wrote in message news:a16da1ff0908281328k641ea332v25d887c4de5b3...@mail.gmail.com... You will need to add some headers to the page to popup

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 mrsqua...@gmail.com wrote in message

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 a...@ashleysheridan.co.uk 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

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: Ashley Sheridan a...@ashleysheridan.co.uk To: Ralph Deffke ralph_def...@yahoo.de Cc: php-general@lists.php.net 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

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: Eric blueray2...@yahoo.com To: a...@ashleysheridan.co.uk; Ralph Deffke ralph_def...@yahoo.de Cc: php-general@lists.php.net Sent: Saturday, August 29, 2009 5:01 PM Subject: Re: [PHP] File Open Prompt? - Original Message - From: Ashley Sheridan

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 image

Re: [PHP] File Open Prompt?

2009-08-28 Thread Andrew Ballard
On Fri, Aug 28, 2009 at 3:03 PM, Dan Shirahmrsqua...@gmail.com 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

Re: [PHP] File Open Prompt?

2009-08-28 Thread Eric
- Original Message - From: Ashley Sheridan a...@ashleysheridan.co.uk To: Dan Shirah mrsqua...@gmail.com Cc: PHP General php-general@lists.php.net 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

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

Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb sebast...@triponthis.net 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

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 in a

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 in a

RE: [PHP] file locking...

2009-03-01 Thread bruce
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.net Subject: Re: [PHP

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,000

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 from the same batch of files

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 handle

Re: [PHP] file locking...

2009-03-01 Thread Stuart
2009/3/1 Robert Cummings rob...@interjinn.com 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

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

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 opening

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

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
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 find is that

Re: [PHP] File Manager

2009-02-05 Thread Yannick Mortier
2009/2/5 Sn!per sni...@home.net.my: 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:

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 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 uploading a file and

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

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

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 of

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

Re: [PHP] File download problem

2008-08-19 Thread Stefano Noffke
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 EFBBBF, and after those three

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 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 ---BeginMessage--- I just add this

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

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); }

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

[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

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 temp

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

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 is

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 upload a

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 upload a File

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 [ownership

Re: [PHP] File Upload Security

2008-04-11 Thread Al
The hack puts this .htaccess in dozens of dirs RewriteEngine On RewriteCond %{HTTP_REFERER}

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

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

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.

[PHP] Re: php file extension

2008-02-09 Thread Nathan Rixham
Often people install php4 and 5 on the same server, then configure .php to use the latest version of php(5) and anything with extension php4 to use the old`e php4. Thus, the file contents remain the same, however the way they are executed depends entirely on the server(s) config. Nathan

  1   2   3   4   5   6   7   8   9   10   >