Hi all
I am using the following to pass a file to the client
snip
header(Content-type: . $row['filetype'] );
$path = ROOT_PATH . file_uploads/;
$real_filename = $path . $row['location'] . '/' .$row['filename'];
header(Content-Disposition: attachment; filename= . $row['filename']);
Thomas Hochstetter wrote:
Hi guys,
I wrote a generic getsql() function for my project's class. However, I
only manage to retrieve a single row. What it should really do is:
Read all rows into the array (with multiple results). The code is
below:
function getsql($sql,$conn,$dbase,$arr)
Hi all
I am having a few problems retrieving URLs from within PHP. I am using the
following to get the URL
?
$lines = file($URL);
foreach ($lines as $line_num = $line) {
echo Line #b{$line_num}/b : . htmlspecialchars($line) .
br\n;
}
?
It works fine even for .htaccess protect areas
3 matches
Mail list logo