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
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:
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
--
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
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
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
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 =
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
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
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
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
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
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
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
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.
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
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
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
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
-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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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.
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
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?
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:
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
- 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
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
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
- 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
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);
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
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
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
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
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
@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
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
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
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
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
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
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);
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 =
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
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:
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:
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
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
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
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
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
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
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
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
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
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
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);
}
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
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
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
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
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
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
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
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
The hack puts this .htaccess in dozens of dirs
RewriteEngine On
RewriteCond %{HTTP_REFERER}
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
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
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.
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 - 100 of 938 matches
Mail list logo