473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how do I tell a browser the name of a file, for download, if the file has open space in its name?


I've got a music studio for a client. Their whole studio is run with
Macintosh computers. Macintosh computers allow file names to have open
white spaces, such as "animal hospital.mp3".

I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):

$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";

if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}

This works fine except when it encounters a file with an open space in
it, and the studio has several thousand mp3s which have open spaces in
their name.

If a file has an open space, the above code seems to truncate the file
name at the first open white space. Instead of "animal hospital.mp3",
the browser starts to download "animal", with no file extension. And
the download fails - instead of 6 megabytes, only 1 kilobyte
downloads.

Any insights?

Oct 20 '07 #1
7 2598
lawrence k wrote:
I've got a music studio for a client. Their whole studio is run with
Macintosh computers. Macintosh computers allow file names to have open
white spaces, such as "animal hospital.mp3".

I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):

$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";

if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}

This works fine except when it encounters a file with an open space in
it, and the studio has several thousand mp3s which have open spaces in
their name.

If a file has an open space, the above code seems to truncate the file
name at the first open white space. Instead of "animal hospital.mp3",
the browser starts to download "animal", with no file extension. And
the download fails - instead of 6 megabytes, only 1 kilobyte
downloads.

Any insights?
Yu are looking n the wrong place.

is what happens before the first line that interests me

$fileToBuy = $_GET["fileToBuy"];

How is that GET variable generated, and what does

echo $filetobuy;

display?

My guess is the name is truncated before it even reaches the part you
showed us.
Oct 20 '07 #2
lawrence k wrote:
>
I've got a music studio for a client. Their whole studio is run with
Macintosh computers. Macintosh computers allow file names to have open
white spaces, such as "animal hospital.mp3".
This works fine except when it encounters a file with an open space in
it, and the studio has several thousand mp3s which have open spaces in
their name.

If a file has an open space, the above code seems to truncate the file
name at the first open white space. Instead of "animal hospital.mp3",
the browser starts to download "animal", with no file extension. And
the download fails - instead of 6 megabytes, only 1 kilobyte
downloads.

Any insights?
A space is %20, IIRC. Try rawurlencode() instead of urlencode().

Bye!
Oct 20 '07 #3
On Oct 20, 6:33 am, The Natural Philosopher <a...@b.cwrote:
lawrence k wrote:
I've got a music studio for a client. Their whole studio is run with
Macintosh computers. Macintosh computers allow file names to have open
white spaces, such as "animal hospital.mp3".
I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):
$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";
if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}
This works fine except when it encounters a file with an open space in
it, and the studio has several thousand mp3s which have open spaces in
their name.
If a file has an open space, the above code seems to truncate the file
name at the first open white space. Instead of "animal hospital.mp3",
the browser starts to download "animal", with no file extension. And
the download fails - instead of 6 megabytes, only 1 kilobyte
downloads.
Any insights?

Yu are looking n the wrong place.

is what happens before the first line that interests me

$fileToBuy = $_GET["fileToBuy"];

How is that GET variable generated, and what does

echo $filetobuy;

display?

My guess is the name is truncated before it even reaches the part you
showed us.

If I echo $fileToBuy to screen, I get the whole the file name. All the
file_exists() tests would fail, if $_GET wasn't returning the whole
file name.

However, I've added an if() test to see if I truly did get a file
handle back from fopen(). The strange thing is, this test does not
fail, meaning PHP was able to find the file. Check out this url:

http://www.monkeyclaus.org/download....ns%20Coins.mp3
The code now looks like this:
$fileToBuy = $_GET["fileToBuy"];
if (!$fileToBuy) $fileToBuy = $_GET["fileToDownload"];

if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";

if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$fh = fopen("$pathToFile", "r");
if ($fh) {
fpassthru($fh);
} else {
echo "Error: can't find file '$fileToBuy' ";
}
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}

Why is the file name getting truncated? Is this an HTTP header issue?
Oct 20 '07 #4
lawrence k <lk******@geocities.comwrote in
news:11**********************@e34g2000pro.googlegr oups.com:
On Oct 20, 6:33 am, The Natural Philosopher <a...@b.cwrote:
>lawrence k wrote:
I've got a music studio for a client. Their whole studio is run
with Macintosh computers. Macintosh computers allow file names to
have open white spaces, such as "animal hospital.mp3".
I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):
$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile =
"site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";
if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type:
application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment;
filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this
file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named
'$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the
URL
(fileToDownload needed in url).";
}
This works fine except when it encounters a file with an open space
in it, and the studio has several thousand mp3s which have open
spaces in their name.
If a file has an open space, the above code seems to truncate the
file name at the first open white space. Instead of "animal
hospital.mp3", the browser starts to download "animal", with no
file extension. And the download fails - instead of 6 megabytes,
only 1 kilobyte downloads.
Any insights?

Yu are looking n the wrong place.

is what happens before the first line that interests me

$fileToBuy = $_GET["fileToBuy"];

How is that GET variable generated, and what does

echo $filetobuy;

display?

My guess is the name is truncated before it even reaches the part you
showed us.


If I echo $fileToBuy to screen, I get the whole the file name. All the
file_exists() tests would fail, if $_GET wasn't returning the whole
file name.

However, I've added an if() test to see if I truly did get a file
handle back from fopen(). The strange thing is, this test does not
fail, meaning PHP was able to find the file. Check out this url:

http://www.monkeyclaus.org/download....ario%20-%20Thi
ngs%20In%20the%20Mirror%20Appear%20Closer%20Than%2 0They%20Are%20-%2004%
20-%20Coins%20Coins%20Coins.mp3
The code now looks like this:
$fileToBuy = $_GET["fileToBuy"];
if (!$fileToBuy) $fileToBuy = $_GET["fileToDownload"];

if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile =
"site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";

if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment;
filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$fh = fopen("$pathToFile", "r");
if ($fh) {
fpassthru($fh);
} else {
echo "Error: can't find file '$fileToBuy' ";
}
} else {
echo "Sorry, but we are unable to process this file at
this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy'
at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}

Why is the file name getting truncated? Is this an HTTP header issue?

I solved a similar problem by making sure all my fields had quotation
marks around them. Your filename field is the most likely to need them,
if allowed in the header.

Puckdropper
--
Wise is the man who attempts to answer his question before asking it.

To email me directly, send a message to puckdropper (at) fastmail.fm
Oct 20 '07 #5
On Oct 20, 12:44 pm, lawrence k <lkrub...@geocities.comwrote:
On Oct 20, 6:33 am, The Natural Philosopher <a...@b.cwrote:
lawrence k wrote:
I've got a music studio for a client. Their whole studio is run with
Macintosh computers. Macintosh computers allow file names to have open
white spaces, such as "animal hospital.mp3".
I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):
$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";
if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}
This works fine except when it encounters a file with an open space in
it, and the studio has several thousand mp3s which have open spaces in
their name.

However, I've added an if() test to see if I truly did get a file
handle back from fopen(). The strange thing is, this test does not
fail, meaning PHP was able to find the file. Check out this url:

http://www.monkeyclaus.org/download....Diario%20-%20T...

The code now looks like this:

$fileToBuy = $_GET["fileToBuy"];
if (!$fileToBuy) $fileToBuy = $_GET["fileToDownload"];

if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";

if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$fh = fopen("$pathToFile", "r");
if ($fh) {
fpassthru($fh);
} else {
echo "Error: can't find file '$fileToBuy' ";
}
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}} else {

echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";

}

Why is the file name getting truncated? Is this an HTTP header issue?

Okay, it was an HTTP header issue. I've changed the code like this:
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
$fileToBuy = rawurlencode($fileToBuy);
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$fh = fopen("$pathToFile", "r");
if ($fh) {
fpassthru($fh);
} else {
echo "Error: can't find file '$fileToBuy' ";
}

Now that $fileToBuy is hit with rawurlencode before getting put into
the HTTP header, the file downloads correctly. I was able to download
a file and play it in iTunes.

However, the file downloads with a bunch of ugly %20 in the file
names. Can anyone think of a way I can get them out of the filenames?

Oct 20 '07 #6
On Oct 20, 11:44 am, lawrence k <lkrub...@geocities.comwrote:
On Oct 20, 6:33 am, The Natural Philosopher <a...@b.cwrote:
lawrence k wrote:
I've got a music studio for a client. Their whole studio is run with
Macintosh computers. Macintosh computers allow file names to have open
white spaces, such as "animal hospital.mp3".
I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):
$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";
if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this fileat this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}
This works fine except when it encounters a file with an open space in
it, and the studio has several thousand mp3s which have open spaces in
their name.
If a file has an open space, the above code seems to truncate the file
name at the first open white space. Instead of "animal hospital.mp3",
the browser starts to download "animal", with no file extension. And
the download fails - instead of 6 megabytes, only 1 kilobyte
downloads.
Any insights?
Yu are looking n the wrong place.
is what happens before the first line that interests me
$fileToBuy = $_GET["fileToBuy"];
How is that GET variable generated, and what does
echo $filetobuy;
display?
My guess is the name is truncated before it even reaches the part you
showed us.

If I echo $fileToBuy to screen, I get the whole the file name. All the
file_exists() tests would fail, if $_GET wasn't returning the whole
file name.

However, I've added an if() test to see if I truly did get a file
handle back from fopen(). The strange thing is, this test does not
fail, meaning PHP was able to find the file. Check out this url:

http://www.monkeyclaus.org/download....Diario%20-%20T...

The code now looks like this:

$fileToBuy = $_GET["fileToBuy"];
if (!$fileToBuy) $fileToBuy = $_GET["fileToDownload"];

if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";

if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$fh = fopen("$pathToFile", "r");
if ($fh) {
fpassthru($fh);
} else {
echo "Error: can't find file '$fileToBuy' ";
}
} else {
echo "Sorry, but we are unable to process this file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy'at
'$pathToFile'. ";
}} else {

echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";

}

Why is the file name getting truncated? Is this an HTTP header issue?

Now our customers are starting to complain. We just got this email:

Thanks again. I'm having problems getting 'Beautys Grace' and 'This
Time It's'.�
When clicking the links for those I get the following:
Sorry, but we can not find a file named 'A Whisper In The Noise - Dry
Land - 04 - This Time It\'s.mp3' at '../httpdocs/site_specific_files/A
Whisper In The Noise - Dry Land - 04 - This Time It\'s.mp3'.
Also might be worth noting that your file names have %20 characters
where your spaces should be.
i.e: A%20Whisper%20In%20The%20Noise%20-%20Dry%20Land%20-%2001%20-%20As
%20We%20Were.mp3
No other music store seems to have this problem, so I imagine the fix
is an easy one. Does anyone know what the fix is?

Nov 16 '07 #7
On Oct 20, 12:01 pm, Puckdropper <puckdrop...@yahoo.comwrote:
lawrence k <lkrub...@geocities.comwrote innews:11**********************@e34g2000pro.google groups.com:
On Oct 20, 6:33 am, The Natural Philosopher <a...@b.cwrote:
lawrence k wrote:
I've got a music studio for a client. Their whole studio is run
with Macintosh computers. Macintosh computers allow file names to
have open white spaces, such as "animal hospital.mp3".
I have a download script, so customers on the website can download
MP3s to their harddrive (rather than merely listen to it in their
browsers):
$fileToBuy = $_GET["fileToBuy"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile =
"site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";
if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type:
application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment;
filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$pathToFile = urlencode($pathToFile);
$fh = fopen("$pathToFile", "r");
fpassthru($fh);
} else {
echo "Sorry, but we are unable to process this
file at this
time.";
}
} else {
echo "Sorry, but we can not find a file named
'$fileToBuy' at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the
URL
(fileToDownload needed in url).";
}
This works fine except when it encounters a file with an open space
in it, and the studio has several thousand mp3s which have open
spaces in their name.
If a file has an open space, the above code seems to truncate the
file name at the first open white space. Instead of "animal
hospital.mp3", the browser starts to download "animal", with no
file extension. And the download fails - instead of 6 megabytes,
only 1 kilobyte downloads.
Any insights?
Yu are looking n the wrong place.
is what happens before the first line that interests me
$fileToBuy = $_GET["fileToBuy"];
How is that GET variable generated, and what does
echo $filetobuy;
display?
My guess is the name is truncated before it even reaches the part you
showed us.
If I echo $fileToBuy to screen, I get the whole the file name. All the
file_exists() tests would fail, if $_GET wasn't returning the whole
file name.
However, I've added an if() test to see if I truly did get a file
handle back from fopen(). The strange thing is, this test does not
fail, meaning PHP was able to find the file. Check out this url:
http://www.monkeyclaus.org/download....ario%20-%20Thi
ngs%20In%20the%20Mirror%20Appear%20Closer%20Than%2 0They%20Are%20-%2004%
20-%20Coins%20Coins%20Coins.mp3
The code now looks like this:
$fileToBuy = $_GET["fileToBuy"];
if (!$fileToBuy) $fileToBuy = $_GET["fileToDownload"];
if ($fileToBuy) {
$pathToFile = "temporary_files/$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile =
"site_specific_files/
$fileToBuy";
if (!file_exists($pathToFile)) $pathToFile = "../httpdocs/
site_specific_files/$fileToBuy";
if (file_exists($pathToFile)) {
$size = @ filesize($pathToFile);
if ($size 1) {
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment;
filename=$fileToBuy");
header("Content-Transfer-Encoding: binary");
$fh = fopen("$pathToFile", "r");
if ($fh) {
fpassthru($fh);
} else {
echo "Error: can't find file '$fileToBuy' ";
}
} else {
echo "Sorry, but we are unable to process this file at
this
time.";
}
} else {
echo "Sorry, but we can not find a file named '$fileToBuy'
at
'$pathToFile'. ";
}
} else {
echo "Sorry, but there doesn't seem to be a file named in the URL
(fileToDownload needed in url).";
}
Why is the file name getting truncated? Is this an HTTP header issue?

I solved a similar problem by making sure all my fields had quotation
marks around them. Your filename field is the most likely to need them,
if allowed in the header.

I tried putting single quotes around it, but they then show up in the
downloaded file name. I don't think quote marks are allowed in this
header.
Nov 16 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dimitri pater | last post by:
Hello, I use the following script to list the files and download files from my website (99% of the code is from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/200131). The problem is...
0
by: microsoft | last post by:
Hi, I have an ASP script that initiates a ADODB.Stream like below first bit gets filename from the database strAbsFile = getfilefromDB(request.querystring("fileid")) '-- create FSO object...
8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
5
by: John Morgan | last post by:
I am using the following link to download a file of about 50k <a target= "_blank" href="http://www.bsecs.org.uk/ExecDocs/documentStore/elfridaWord.doc">open file</a> If I save the file to...
5
by: Brad | last post by:
In several aspx applications I export crytal reports to pdf, xls and doc files and then the aspx page writes the selected export file to the client browser. This all works with one small quirk: ...
2
by: Sam-Kiwi | last post by:
I've spent the last 6 months developing a pay-per-download website using ASP.NET Users purchase documents and then download them. The intention is that users are only charged for documents...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
1
by: Seok Bee | last post by:
Dear Experts, I would like to seek your help on how can I open a document (word, excel, etc) from a browser. I have save the file in the server from another web form. I have created a web form...
1
by: alnino | last post by:
Hi, On a form I have a command button that allows a user to browse for a file (PDF, Word, etc…). This command button then stores a hyperlink to the file within an associated txtfield in the table....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.