[PHP] selecting current month from a database

2006-05-20 Thread Paul Goepfert
Hi all, I know this might be trivial problem but I can't seem to figure it out. Here is my problem I have a drop down menu where I have the months of year as menu items. I want to be able to have the current month be the selected month. I have tried using the date function as the way to set th

Re: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread chris smith
On 5/21/06, Beauford <[EMAIL PROTECTED]> wrote: The following are the errors I am getting - quite lengthy. Thanks $ make gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/freetype2 -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.lo gdft.c:1366:35: font

RE: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread Beauford
The following are the errors I am getting - quite lengthy. Thanks $ make make all-recursive make[1]: Entering directory `/home/beauford/gd-2.0.33' Making all in config make[2]: Entering directory `/home/beauford/gd-2.0.33/config' make[2]: Nothing to be done for `all'. make[2]: Leaving directo

Re: [PHP] Date() finding yesterday

2006-05-20 Thread Rabin Vincent
On 5/21/06, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: I cannot seem to get this right. How can I produce yesterday? $today = date("Y-m-d"); $yesterday = date("Y-m-") . date("d")-1; $yesterday = date("Y-m-d")-1; $yesterday = date("Y-m-"."d"-1); I've been looking at the manual :) ... Use

[PHP] Beta3 of PHPEditIni now available

2006-05-20 Thread Jeremy O'Connor
The latest version of PHPEditIni is now available (Beta3). If fixes a bug in Linux/*nix. Use this script to edit your PHP.INI files in a browser based GUI. Visit http://phpeditini.net . -- The PHP EditIni Project [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Date() finding yesterday

2006-05-20 Thread John Taylor-Johnston
I cannot seem to get this right. How can I produce yesterday? $today = date("Y-m-d"); $yesterday = date("Y-m-") . date("d")-1; $yesterday = date("Y-m-d")-1; $yesterday = date("Y-m-"."d"-1); I've been looking at the manual :) ... Thanks, John -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread chris smith
On 5/21/06, Beauford <[EMAIL PROTECTED]> wrote: Hi, I am trying to get a program, Captcha v1.0, working and not having much luck. The program says I need PHP version 4.3.10 or later or PHP version 5 and GD Library version 2.0 or later with JPEG support. I know I have PHP 5, but not sure about t

[PHP] Captcha v1.0 (http://www.php.meezerk.com/index.php?page=captcha)

2006-05-20 Thread Beauford
Hi, I am trying to get a program, Captcha v1.0, working and not having much luck. The program says I need PHP version 4.3.10 or later or PHP version 5 and GD Library version 2.0 or later with JPEG support. I know I have PHP 5, but not sure about the GD Library. I was reading on one page I was on

Re: [PHP] round behavior changed

2006-05-20 Thread tedd
At 3:17 PM -0500 5/19/06, Richard Lynch wrote: On Fri, May 19, 2006 1:27 pm, Sébastien Guay wrote: I searched the archives but did not found anything. It seem that the round function behavior has changed in php 4.4.x (I don't have 4.4.1 handy for testing). In 4.3.11, the output of round("

Re: [PHP] Running two versions of PHP locally

2006-05-20 Thread Koen Martens
Scott Hurring wrote: > On 5/19/06, John Hicks <[EMAIL PROTECTED]> wrote: [snip] >> It looks like 'application/x-httpd-php' is the default type for php4. >> Does php5 have a different type? Is there a way to explicitly assign a >> new type to a module? [snip] > I'd be interested

Re: [PHP] safe_mode

2006-05-20 Thread tedd
What other obvious thing am I not seeing? php.net/ini says that php.ini in the working directory is only used if PHP is run from the command line. For PHP running on the web server, you should edit the system's php.ini file. You can find the location of this file with phpinfo(). Look for "Confi

RE: [PHP] Encryption Advice

2006-05-20 Thread Kevin Davies
So let's say that I want to integrate a shopping cart with a PSP, right up to the moment they get to the checkout, they see my client's URL. They hit the "Checkout" button and then they will see the URL of the PSP? Then once they place the order then they are redirected back to my client's site a

Re: [PHP] Encryption Advice

2006-05-20 Thread Lawrence Kennon
--- Rory Browne <[EMAIL PROTECTED]> wrote: > It's better if, when it comes to time > to checkout, you redirect your client > to your Payment Service Providers (PSP's) > website, your PSP processes the payment, > and redirects the client back to your > site. The PSP would then contact you > di

Re: [PHP] safe_mode

2006-05-20 Thread Rabin Vincent
On 5/20/06, tedd <[EMAIL PROTECTED]> wrote: At 9:01 PM -0400 5/19/06, John Hicks wrote: >tedd wrote: >>Hi gang: >> >>Please excuse me for asking another dumb-ass question, but here goes. >> >>I'm finding that setting safe_mode to ON is more difficult than I >>first thought. >> >>In my phpinfo, sa

Re: [PHP] safe_mode

2006-05-20 Thread tedd
At 9:01 PM -0400 5/19/06, John Hicks wrote: tedd wrote: Hi gang: Please excuse me for asking another dumb-ass question, but here goes. I'm finding that setting safe_mode to ON is more difficult than I first thought. In my phpinfo, safe_mode is set to OFF -snip- You would think the fine m

[PHP] Re: open_basedir

2006-05-20 Thread David Robley
Nanu Kalmanovitz wrote: > Hi! > > Using Apache 2, MySQL ver. 4.0.15a, PHP 4.2.3 (NW6.5 sp1 - Netware \ > Novell ). > > I'm developing PHP files with Dreamweaver8 (Adobe-Macromedia). > > Trying to view a file (quote_insert.php) in a browser, it displays at: > > > http://www.kalmanovitz.co.il/D

[PHP] open_basedir

2006-05-20 Thread Nanu Kalmanovitz
Hi! Using Apache 2, MySQL ver. 4.0.15a, PHP 4.2.3 (NW6.5 sp1 - Netware \ Novell ). I'm developing PHP files with Dreamweaver8 (Adobe-Macromedia). Trying to view a file (quote_insert.php) in a browser, it displays at:  http://www.kalmanovitz.co.il/DW8_PHP_MySQL_tutorial/admin/quote_insert.php the f