[PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Ron Piggott
I figured out that the syntax below creates the date in the way it may be stored in a mySQL table: $todays_date=DATE('Y-m-d'); Is there any way to add 21 days to this as an expiry date? For example if the date was March 20th 2005 21 days would be in April --- is there any way of dealing with

Re: [PHP-DB] onClick

2005-03-02 Thread mel list_php
Hi, No you're wrong I'm working with register_global at OFF. What I tried to explain is what you retrieve after your form submission is a $_POST array. I just do a foreach loop in it to retrieve the values. I do additional check to avoid problems with other variables, but then at the end I had

Re: [PHP-DB] onClick

2005-03-02 Thread anirudh dutt
On Wed, 02 Mar 2005 09:52:00 +, mel list_php [EMAIL PROTECTED] wrote: Hi, No you're wrong I'm working with register_global at OFF. What I tried to explain is what you retrieve after your form submission is a $_POST array. I just do a foreach loop in it to retrieve the values. I do

[PHP-DB] php5 session.save_path

2005-03-02 Thread mel list_php
HI, I was trying to set up php5. Everything is fine except the warning can't open /root/tmp to store the seesion file, check your session.save_path. first: why is it trying to store that in /root/tmp? I then wanted to check my php.ini even if I didn't modify that value which by default should

[PHP-DB] email question

2005-03-02 Thread Balwant Singh
can anybody guide me how i can get subscribed to PHP-DEV forum. excuse me, i am asking one off the list question. i want to use PHP to send email. my webserver has linux OS but we are using POP3 for sending emails (on Windows OS). May pls. inform all the setting needs to be done for sending an

RE: [PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Bastien Koert
mktime can do this...have a look at the docs...example in there bastien From: Ron Piggott [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net Subject: [PHP-DB] Expiry Date ($date function) Date: Wed, 2 Mar 2005 04:41:04 -0500 I figured out that the syntax below creates the date in the way it may be

Re: [PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Calvin Lough
The strtotime function should work the best. $add_twentyone = strtotime(+21 days); I dont know if that will work or not. I just found that method in the php doc and it looked interesting. Hopefully it will work for you. Calvin On Wed, 2 Mar 2005 04:41:04 -0500, Ron Piggott [EMAIL PROTECTED]

[PHP-DB] php5-sessions next

2005-03-02 Thread mel list_php
Hi again, I erased and recreated my php.ini file from the php ini recommended. In my application I use a suthentication of the user against a database table, once the user is allowed I set a session variable at true. I test this variable at the beginning of each script. With php4 no problem, in

Re: [PHP-DB] php5-sessions next

2005-03-02 Thread Martin Norland
mel list_php wrote: Hi again, I erased and recreated my php.ini file from the php ini recommended. In my application I use a suthentication of the user against a database table, once the user is allowed I set a session variable at true. I test this variable at the beginning of each script. With

[PHP-DB] user Group Access

2005-03-02 Thread it clown
Hi All, Is it possible to retreive what groups a user belongs to in active directory using php ? Regards __ http://www.webmail.co.za the South African FREE email service -- PHP Database Mailing List (http://www.php.net/) To

[PHP-DB] preg_match html tags

2005-03-02 Thread Kathy_A_Wright
I am trying to get a string of text in an html page using preg_match. The text starts after the Purpose/p tag and ends before the next /p tag. When using preg_match it captures the first /p tag on the page and not the one after my starting point. Here is my starting point:

Re: [PHP-DB] preg_match html tags

2005-03-02 Thread Martin Norland
[EMAIL PROTECTED] wrote: I am trying to get a string of text in an html page using preg_match. The text starts after the Purpose/p tag and ends before the next /p tag. When using preg_match it captures the first /p tag on the page and not the one after my starting point. Here is my starting

[PHP-DB] Re: preg_match html tags

2005-03-02 Thread laurence
Do it with one preg_match operation, like so: preg_match(/(?=Purposep).+?(?=\/p)/, $fpRead, $matches_new); Your string will reside in $matches_new[0]. EXAMPLE: $fpRead = blah blah PurposepThis is the string you are after/p blah blah pblah blah blah/p;

[PHP-DB] Re: Expiry Date ($date function)

2005-03-02 Thread laurence
Ron Piggott [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I figured out that the syntax below creates the date in the way it may be stored in a mySQL table: $todays_date=DATE('Y-m-d'); If you only need date in DB, then (assuming a DATE column in table) you may use CURDATE() in

Re: [PHP-DB] Expiry Date ($date function)

2005-03-02 Thread Ron Piggott
That strtotime is a neat little command. With a bit more searching I found that this works: $expiry_date = strtotime(+21 days); $expiry_date = date('Y-m-d', $expiry_date); echo $expiry_date; The computer couldn't cope with me doing it in just one line --- I got a parse error. Ron -