[PHP] Number of days between two dates

2003-06-10 Thread LeTortorec, Jean-Louis
Hello everyone, Do you know how to calculate the number of days between 2 dates? So far, I used that function: $a=mktime("","","",$month1, $day1, $year1); $b=mktime("","","",$month2, $day2, $year2); $c=($a-$b)/(60*60*24); The problem is one date is prior to 01/01/1970, t

RE: [PHP] Self-filling login form

2003-04-03 Thread LeTortorec, Jean-Louis
A few days ago, I found a way to stop the autocomplete feature. It's more html coding that php actually. Try Jean-Louis Jean-Louis -Original Message- From: Alberto Brea [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 10:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Self-fi

RE: [PHP] Redirect

2003-04-03 Thread LeTortorec, Jean-Louis
To work around that "headers already sent" problem, I use: if ($condition == true) { echo "location.href=('http://...');"; } That works great all the time (unless the javascript has been disabled at the browser side, but usually it's enabled). Jean-Louis At 15:55 3-4-2003, you wrote: >Hi, >

[PHP] RE: Need help with ?> vs. php?>

2003-03-05 Thread LeTortorec, Jean-Louis
- > From: LeTortorec, Jean-Louis > Sent: Wednesday, March 05, 2003 11:59 AM > To: '[EMAIL PROTECTED]' > Subject: Need help with ?> vs. php?> > > Hello everyone, > > I've installed the Apache v2.0.44 with PHP4.3.1., under Windows. > > My pa

[PHP] Need help with ?> vs. php?>

2003-03-05 Thread LeTortorec, Jean-Louis
Hello everyone, I've installed the Apache v2.0.44 with PHP4.3.1., under Windows. My pages starting and ending with "" don't work anymore. I would have to change them to "". Do you know if there is a way for keeping "

RE: [PHP] How to know if we're using http or https

2002-07-11 Thread LeTortorec, Jean-Louis
Thanks to all for your prompt replies! It works just fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to know if we're using http or https

2002-07-11 Thread LeTortorec, Jean-Louis
Hello all! Is there a flag that would tell me if the page requested is using SSL, by https, or regular http? I'm not sure I could get that from PHP, or from Apache/PHP. Thanks for your help. Jean-Louis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] PHP-PDB: Create files for PALM Pilot

2002-07-02 Thread LeTortorec, Jean-Louis
Hi all: I'm trying to write files for PDAs (pdb type) from a PHP script. I've tried to use PHP-PDB from SourceForge but can only give a name to the database, I cannot add any record (pretty bad for a database, no?). Is someone could help with, that'd be fantastic! Either with that library or w

[PHP] Imagecreate and/or GD library not activated

2002-05-28 Thread LeTortorec, Jean-Louis
Hello everyone. I wrote a little code creating PNG images under Apache/PHP windows. As the code works fine, I need to transfer it onto the Linux platform. When I execute the code, PHP replies "Fatal error: Call to undefined function: imagecreate()". I had libgd installed. I just added GD 1.8.4.

[PHP] PHP & Excel

2002-05-20 Thread LeTortorec, Jean-Louis
Hello every one: I'm trying to create XLS files on the fly. I found BiffWriter. Looks great for adding texts and numbers, but not formulas. Has anyone implemented something about formulas? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] Emails sent out twice

2002-04-29 Thread LeTortorec, Jean-Louis
Hello all: I have a script that looks like: ... $name="Project #1"; ... $title="NEW PROJECT: ".$name; $a=mail("[EMAIL PROTECTED], [EMAIL PROTECTED]",$title,$body, "From:[EMAIL PROTECTED]"); ... When I execute this code (there is no loop anywhere), ALL the recipients receive 2 emails: - the f

[PHP] Need help on current working directories

2001-11-29 Thread LeTortorec, Jean-Louis
Hi: I'm coding pages that need to include some general functions. File1 is an example of those pages. I also need to use the very same function file across several web sites. So, I created an additional file, where I have listed all the options for a particular site (which is then included into