Ave,
Which page do you give this code in?
For example, I have a page admin.php Therein is the link on which, when
a user clicks, a window admin_dl.php opens. The admin_dl.php contains my
force-download code and it is that window that I'm trying to close.
If I specify this following code in
From: PHP Junkie [EMAIL PROTECTED]
Which page do you give this code in?
For example, I have a page admin.php Therein is the link on which,
when
a user clicks, a window admin_dl.php opens. The admin_dl.php contains
my
force-download code and it is that window that I'm trying to close.
If I
Ave,
Oh My Gosh! You did it!! Gosh! I can't believe you solved it.
And well, I don't know when this was explained to everyone but if you
actually search the internet and try and lookup what I was trying to do,
you'll find, as I found, a lot, and I mean a LOT of people with the exact
same
From: PHP Junkie [EMAIL PROTECTED]
But anyhow, thanks a ton, I needed this real bad and now that I got it I
feel stupid that I didn't make this sense myself. But then again, once in
a
while you need a hit on the head with a mallet just like this.
Well, someone did say the same thing as I did
Ave,
I hear you... Even I feel it's a different problem but I don't know what.
My first thought was that HTML or anything doesn't work after the
Force-Download script in general But since you seem to use it, I guess
it does.
Now I don't know what to do, how to make it work. I can't
Ave,
I didn't quite understand what you meant.
The kind of files being saved by this script range from ZIP files to DBF
files to JPG files etcetera. Where will the HTML be in those saved files?
Any suggestions on what I need to do to make this work?
On 8/30/04 8:31 PM, Curt Zirzow [EMAIL
try this, after you force download of the file, use:
header(Location: close_window_script.php);
where the only code in that file is something like this:
script language=javascript
!--
window.close();
//--
/script
this is a total workaround, but since its the only thing in the document,
its
* Thus wrote Jasper Howard:
try this, after you force download of the file, use:
header(Location: close_window_script.php);
where the only code in that file is something like this:
script language=javascript
!--
window.close();
//--
/script
this is a total workaround, but since
Ave,
Indeed, it didn't work. Anymore suggestions?
On 8/31/04 2:09 PM, Jasper Howard [EMAIL PROTECTED] wrote:
try this, after you force download of the file, use:
header(Location: close_window_script.php);
where the only code in that file is something like this:
script
On Tue, 31 Aug 2004 16:56:18 -0400, PHP Junkie [EMAIL PROTECTED] wrote:
Indeed, it didn't work. Anymore suggestions?
I've got a couple of ideas, but I really think you're making life too
hard for yourself. You might want to rethink what you're trying to do
rather than creating a clunky solution.
Ave,
It still doesn't work. Not only that, I put up a close window button in
the page and even that doesn't show up. Although that's still not what I
want. What I want is the window to close automatically.
Here's my page:
?php
$file = $P/$F;
header(Content-Description: File Transfer);
if you're not getting any html after your php script, then there's a
different problem. I do the same thing and all I use is:
?php
...
?
script language=javascript
!--
window.close();
//--
/script
and I've never had a problem with it not closing...
--
* Thus wrote PHP Junkie:
Ave,
It still doesn't work. Not only that, I put up a close window button in
the page and even that doesn't show up. Although that's still not what I
want. What I want is the window to close automatically.
Here's my page:
?php
$file = $P/$F;
Ave,
Trust me John, I would not post here without trying out many javascript
functions first. In fact, the reason I posted here is because I began to
think that a PHP script like that won't allow the window to close, because
from window.close() to self.close() to various Timeout Close scripts,
At 09:14 AM 8/26/2004, PHP Junkie wrote:
Ave,
Trust me John, I would not post here without trying out many javascript
functions first. In fact, the reason I posted here is because I began to
think that a PHP script like that won't allow the window to close, because
from window.close() to
Ave,
I use the PHP Header directives to create a page which would force-download
the file for the user...
?php
$file = $P/$F;
header(Content-Description: File Transfer);
header(Content-Type: application/force-download);
header(Content-Disposition: attachment; filename=.basename($file));
From: PHP Junkie [EMAIL PROTECTED]
Anyone's got any tips for me?
Find a JavaScript list?
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP Junkie wrote:
Ave,
I use the PHP Header directives to create a page which would force-download
the file for the user...
?php
$file = $P/$F;
header(Content-Description: File Transfer);
header(Content-Type: application/force-download);
header(Content-Disposition: attachment;
Ave,
The browser window which launched the Save As window...
On 8/24/04 1:41 PM, John Nichel [EMAIL PROTECTED] wrote:
PHP Junkie wrote:
Ave,
I use the PHP Header directives to create a page which would force-download
the file for the user...
?php
$file = $P/$F;
PHP Junkie wrote:
Ave,
The browser window which launched the Save As window...
PHP cannot do this. You'll have to use JavaScript in the browser
window. Something like
?php
$file = $P/$F;
header(Content-Description: File Transfer);
header(Content-Type: application/force-download);
20 matches
Mail list logo