[PHP] Problems with ftp_get

2002-03-18 Thread Ian Wayne
I'm getting an unhelpful error message from my ftp script. It says "Warning, error opening file..." The code in question runs like this. $conn = ftp_connect("ftp.mysite.com"); ftp_login($conn,"user","pass"); ftp_get($conn, $newName, $oldName , FTP_BINARY); I can't see what's causing the error. A

[PHP] combining headers with includes

2002-03-19 Thread Ian Wayne
I'm trying to force the browser to download a movie rather than open it up and play it. Yesterday, Miguel kindly put me onto headers as being the way to do this. Problem is I have an include at the top of the page and that won't let me add in the necessary headers. The PHP manual says to use buffe

[PHP] PHP - Forced header downloads

2002-03-19 Thread Ian Wayne
I'm trying to use some header functions to force the browser to download quicktime movies. I have a small piece of code that takes the relevant file name from the url and then uses that in the header function. This code sits in get.php. Unfortunately, all I download when I click the link is get.ph

[PHP] [PHP-DB] Displaying Floats

2002-03-29 Thread Ian Wayne
Hi all. I can't believe I'm stuck on this - seems to me there ought to be an easy way to do this, but I've been hunting through the literature and I just can't find it. If anyone can point me in the right direction it'd be much appreciated... I have a table of accounts and I want to display all