[PHP] Problem with readfile

2003-08-27 Thread French, Alastair
Hi all I am using the following to pass a file to the client header("Content-type: ". $row['filetype'] ); $path = ROOT_PATH . "file_uploads/"; $real_filename = $path . $row['location'] . '/' .$row['filename']; header("Content-Disposition: attachment; filename= " . $row['filename']); readfile($r

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,

[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 $line) { echo "Line #{$line_num} : " . htmlspecialchars($line) . "\n"; } ?> It works fine even for .htaccess protect areas unless I need to change ports i.e I need to get some data