Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Danny Shepherd
Firstly, I assume you mean "Y-m-j H:i:s" for the date format. To get the difference between 2 time strings : HTH Danny. - Original Message - From: "Ron Allen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 1:08 PM Subject: [PHP] Determine the difference bet

Re: [PHP] .inc over .php

2002-04-19 Thread Danny Shepherd
A third way could be to append .php onto those files too, giving .inc.php, .class.php etc. Danny. > There are two ways to counter this: > > 1) have the .inc files in a directory outside the scope of the webserver > directory. > > 2) set the webserver to treat .inc files as php files. > -- PH

Re: [PHP] Date function

2002-04-19 Thread Danny Shepherd
MySQL (I assume that's the database you're inserting into) requires dates to be sent in -MM-DD format. You appear to be sending a unix timestamp. Try: date("Y-m-d",time()) // Sends a MySQL style date. or even: $SQL = "INSERT INTO orders (Customer_Id, Order_Date) VALUES($CustID,NOW())"; //

Re: [PHP] Discarded extension on file download

2002-04-19 Thread Danny Shepherd
Hi, I recently had this problem and, after hours of hair pulling, found that it seems to work best if you send the words Content-Type and Content-Disposition in **lower case**. Not sure why it has to be like that but it was the only way I found. HTH, Danny. - Original Message - From:

<    1   2