[PHP] File Upload MultiPart

2013-02-24 Thread user
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've looked at the rfc1867.c file implementation and

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

[PHP] same php file, different day...worked 3-4 times in the past in the past

2013-01-20 Thread Fred Silsbee
Fatal error: Call to undefined function mysqli__connect() in /var/www/html/log_book_MySQLnew_i.php on line 116 phpinfo.php shows mysqli Additional .ini files parsed /etc/php.d/curl.ini, /etc/php.d/fileinfo.ini, /etc/php.d/json.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini,

Re: [PHP] same php file, different day...worked 3-4 times in the past in the past

2013-01-20 Thread Sebastian Krebs
2013/1/20 Fred Silsbee fredsils...@yahoo.com Fatal error: Call to undefined function mysqli__connect() in /var/www/html/log_book_MySQLnew_i.php on line 116 There is an underscore _ to much: 'mysqli_connect()' phpinfo.php shows mysqli Additional .ini files parsed /etc/php.d/curl.ini,

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

[PHP] File moving hell on Windows

2012-07-30 Thread Brian Dunning
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 a directory on the digital presses. All the source and

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

[PHP] file url access funniness

2012-03-10 Thread TR Shaw
This is weird. This statement fails: $tlds = file(http://www.surbl.org/tld/three-level-tlds;, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); Warning: file(http://www.surbl.org/tld/three-level-tlds): failed to open stream: HTTP request failed! HTTP/1.0 502 Bad Gateway also tried the

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 =

[PHP] File upload in map drive with PHP

2012-01-26 Thread Mehmet YAYLA
Hello everyone, I've a question. I'm using map drive for file upload but dos'nt work. How can i do file upload map drive with php? Best Regards.

[PHP] File concurrent file access

2011-07-22 Thread Florian Lemaitre
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 fact that an error can occur when someone try to access a file

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

[PHP] File Upload Problem

2011-04-06 Thread tedd
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. Oddly enough, I can upload image files directly to the

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

[PHP] File locking with PHP functions

2011-04-04 Thread 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($filename, 'w'); Does this function lock the file from writes until fclose()? Does it lock from reads as well? fopen($filename, 'r+'); Does this function

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

[PHP] file upload utility ?

2011-02-07 Thread Frank Bonnet
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 goal is to distribute the file to our users by sending them an

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
luck in your Google search. I found nothing that's why I wrote this !!! Frank, Not sure what words you used, here was mine php file upload examples Those words resulted in these two at the top of the list http://www.tizag.com/phpT/fileupload.php http://www.w3schools.com/PHP

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] which php file is sending emails?

2011-01-16 Thread Marc Guay
There can be nothing more simpler than this!!! I thought that this quote needed some revisiting. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which php file is sending emails?

2011-01-16 Thread Mujtaba Arshad
Nilesh's note to self: don't sound condescending when suggesting untested code. On Sun, Jan 16, 2011 at 10:56 AM, Marc Guay marc.g...@gmail.com wrote: There can be nothing more simpler than this!!! I thought that this quote needed some revisiting. Marc -- PHP General Mailing List

Re: [PHP] which php file is sending emails?

2011-01-16 Thread David Hutto
On Sun, Jan 16, 2011 at 11:19 AM, Mujtaba Arshad mujtab...@gmail.com wrote: Nilesh's note to self: don't sound condescending when suggesting untested Now define 'self'. Is it a remembrance(i.e. a string of molecular structures), or a google(google 'Rich formatting' says google isn't actually a

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Jim Lucas
On 1/14/2011 9:53 PM, Nilesh Govindarajan wrote: On 01/15/2011 06:21 AM, Mesut GULNAZ wrote: is it possible to see which php file(s) is/are sending emails on my server by php.ini or with any other way? coz i have a server and i have many domains and subdomains. on my smtp systems i saw

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail $(find -name *.php) find: unknown option -- n find: unknown option -- a find: unknown option -- m find: unknown option -- e formmail.php $ grep -l mail $(find ./ -name *.php)

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Daniel Brown
On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajan nil...@itech7.com wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail $(find -name *.php) find: unknown option -- n find: unknown option -- a find: unknown option --

Re: [PHP] which php file is sending emails?

2011-01-15 Thread tedd
At 11:23 AM +0530 1/15/11, Nilesh Govindarajan wrote: On 01/15/2011 06:21 AM, Mesut GULNAZ wrote: is it possible to see which php file(s) is/are sending emails on my server by php.ini or with any other way? coz i have a server and i have many domains and subdomains. on my smtp systems i saw

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
On 01/15/2011 11:13 PM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail $(find -name *.php) find: unknown option -- n find:

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Daniel Brown
On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajan nil...@itech7.com wrote: hahaha, that command wasn't broken. It works on Linux. But certain commands have to be changed to work on *BSD. For example, chmod u=rwx,g=rwx,o= directory -R will work on linux, but will not on FreeBSD. It has to be

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
On 01/16/2011 12:45 AM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajannil...@itech7.com wrote: hahaha, that command wasn't broken. It works on Linux. But certain commands have to be changed to work on *BSD. For example, chmod u=rwx,g=rwx,o= directory -R will work on

Re: [PHP] which php file is sending emails?

2011-01-15 Thread David Hutto
On Sat, Jan 15, 2011 at 10:32 PM, Nilesh Govindarajan nil...@itech7.com wrote: On 01/16/2011 12:45 AM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 13:51, Nilesh Govindarajannil...@itech7.com  wrote: hahaha, that command wasn't broken. It works on Linux. But certain commands have to be

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Jim Lucas
On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote: On 01/15/2011 11:13 PM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command gives me an error or two... $ grep -l mail

Re: [PHP] which php file is sending emails?

2011-01-15 Thread Nilesh Govindarajan
On 01/16/2011 12:33 PM, Jim Lucas wrote: On 1/15/2011 10:51 AM, Nilesh Govindarajan wrote: On 01/15/2011 11:13 PM, Daniel Brown wrote: On Sat, Jan 15, 2011 at 12:21, Nilesh Govindarajannil...@itech7.com wrote: On 01/15/2011 10:22 PM, Jim Lucas wrote: Um, I use OpenBSD and that command

[PHP] which php file is sending emails?

2011-01-14 Thread Mesut GULNAZ
is it possible to see which php file(s) is/are sending emails on my server by php.ini or with any other way? coz i have a server and i have many domains and subdomains. on my smtp systems i saw that many random mails are being sent from www server which has RELAY permission. I know i must

Re: [PHP] which php file is sending emails?

2011-01-14 Thread Nilesh Govindarajan
On 01/15/2011 06:21 AM, Mesut GULNAZ wrote: is it possible to see which php file(s) is/are sending emails on my server by php.ini or with any other way? coz i have a server and i have many domains and subdomains. on my smtp systems i saw that many random mails are being sent from www server

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

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

2010-12-29 Thread Michelle Konzack
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 Webinterface. Can someone tell me HOW THIS WORKS? Thanks,

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
to this question; only several different platform dependent solutions from one vendor to handle each main OS. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Michael Shadle mike...@gmail.com Date: Wed, Dec 29, 2010 21:38 Subject: [PHP] File-Upload per Drag-N-Drop? To: Michelle

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

[PHP] File Manager with acl

2010-07-27 Thread Ricardo Martinez
Hi! i want ask to the list, if anyone knows a FIle Manager with ACL, written in PHP and MySQL. thanks! -- Ricardo ___ IT Architect website: http://www.rjmc.es

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

[PHP] File encryption under PHP

2010-04-01 Thread Paul M Foster
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 -- Paul M. Foster -- PHP General Mailing List

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

[PHP] File Upload

2010-01-30 Thread Ali Reza Sajedi
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 which says UPLOAD_ERR_NO_TMP_DIR Value: 6; Missing a temporary

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

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

2009-12-22 Thread 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_name'] simply does not exist (checked

[PHP] File and Directory Ownership Question

2009-12-20 Thread Al
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 explanation for this? Thanks, Al. -- PHP

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

[PHP] File To Blob Corruption

2009-11-14 Thread Don Wieland
Hello, I am trying to create an UPLOAD page to Update a Images and PDFs into a BLOB field in mySQL. The image keeps getting corrupted (it draws a portion of the image and the rest is GRAY) We tried it with Safari and Firefox with bad results. Here is the form that is used to browse and

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

[PHP] File download question

2009-09-06 Thread Chris Payne
Hi Everyone, I've setup a filedownload which works but i'm having an issue, i've left out but when it downloads it, while it has the correct file it doesn't have a file extension associated with it, I need the .7z extension associated with the filename, can anyone see why that would do this

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

[PHP] File Open Prompt?

2009-08-28 Thread Dan Shirah
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 ID from the previous page. Once the image path is found I

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

[PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread nashrul
-to-know-from-which-php-file-the-request-comes-fromtp25003587p25003587.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Ashley Sheridan
this message in context: http://www.nabble.com/is-there-a-better-way-to-know-from-which-php-file-the-request-comes-fromtp25003587p25003587.html Sent from the PHP - General mailing list archive at Nabble.com. Neither GET or POST is more secure, it's just that POST requires a tiny bit more work

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread kranthi
HTTP_REFERRER is transparent, but if can be messed with very easily. I prefer use of $_SESSION vars if security is needed in my application (epically when a page is shown after a POST request) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Ben Dunlap
This is a newbie question... Let's say there are 3 php files, page1.php, page2.php and page3.php. Form submission from page1.php or page2.php will take user to page3.php. I know that we can use parameter that is appended in the action attribute of the form (e.g FORM METHOD=POST

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Tom Worster
??.). So which one is most secured and better ?? Thanks.. -- View this message in context: http://www.nabble.com/is-there-a-better-way-to-know-from-which-php-file-the-r equest-comes-fromtp25003587p25003587.html Sent from the PHP - General mailing list archive at Nabble.com. Neither GET

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Tom Worster
On 8/17/09 5:17 AM, nashrul anas_a...@yahoo.com wrote: This is a newbie question... Let's say there are 3 php files, page1.php, page2.php and page3.php. Form submission from page1.php or page2.php will take user to page3.php. I know that we can use parameter that is appended in the action

  1   2   3   4   5   6   7   8   9   10   >