Re: [PHP] a download limitation script that defies logic!

2008-06-26 Thread szalinski
Daniel Brown-5 wrote: > > On Thu, Jun 26, 2008 at 8:38 AM, szalinski <[EMAIL PROTECTED]> > wrote: >> >> I thought I'd take the time to make a download limitation script, but >> even >> though the idea of this script is 'simple', it

[PHP] a download limitation script that defies logic!

2008-06-26 Thread szalinski
I thought I'd take the time to make a download limitation script, but even though the idea of this script is 'simple', it 'simply' refuses to work entirely properly. Basically I setup a real quick timelimit, $time_limit should mean 'within the last 20 seconds'. What I am looking for is the follow

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-05 Thread szalinski
ame=one.gif"); //Strip the text headers in the file and print it out. print preg_replace("/^.*\r\n/m", "", getFile("wisdomleaf.com", "images/logo.gif", 80)); Anyway, the core of the script is download the file as a string, print it out as a

[PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread szalinski
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote server, a

[PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread szalinski
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote server, a

[PHP] How to download a file (with browser) using fsockopen() ?

2008-02-04 Thread szalinski
Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on how to use fsockopen() to fetch a file on a remote se

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-04 Thread szalinski
keep working on it, i think i have to start from scratch though to see where i made the mistake exactly. :) On Mon, 04 Feb 2008 21:13:42 -, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, February 1, 2008 7:45 pm, szalinski wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jes

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-03 Thread szalinski
l in a text editor or a hex editor to see what happened. You might have some PHP warnings or notices at the front of the file, or at the end, messing the file contents up. On Thu, January 31, 2008 12:11 pm, szalinski wrote: On Thu, 31 Jan 2008 00:02:55 -, Richard Lynch <[EMAIL PROTECTED]

[PHP] Re: Server to client file transfer with authorization: file always corrupt

2008-02-03 Thread szalinski
On Sat, 02 Feb 2008 23:08:43 -, Nathan Rixham <[EMAIL PROTECTED]> wrote: szalinski wrote: Hi I am having trouble with a file transfer script, as you can see, I am trying trying to keep the code as simple as possible. But everytime I download a file with it, it is corrupt. For e

[PHP] Server to client file transfer with authorization: file always corrupt

2008-02-02 Thread szalinski
Hi I am having trouble with a file transfer script, as you can see, I am trying trying to keep the code as simple as possible. But everytime I download a file with it, it is corrupt. For example, when I download a small .rar file, just to test, it is always corrupt ('Unexpected end of archive').

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-01 Thread szalinski
On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded the whole [bleep] file into RAM in $tmp, you just echo it out, right