[PHP] Problem with readfile

2003-08-27 Thread French, Alastair
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']);

RE: [PHP] a generic getsql() function

2003-06-25 Thread French, Alastair
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)

[PHP] Problem retrieving URLs

2003-06-11 Thread French, Alastair
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