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
- Origi
"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 CURDA
Do it with one preg_match operation, like so:
preg_match("/(?<=Purpose).+?(?=<\/p>)/", $fpRead, $matches_new);
Your string will reside in $matches_new[0].
EXAMPLE:
$fpRead = "blah blah PurposeThis is the string you are after blah
blah blah blah blah";
preg_match("/(?<=Purpose).+?(?=<\/p>
[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 tag and ends before the next tag.
When using preg_match it captures the first tag on the page and not
the one after my starting point.
Here is my starting point:
I am trying to get a string of text in an html page using preg_match. The
text starts after the Purpose tag and ends before the next tag.
When using preg_match it captures the first tag on the page and not
the one after my starting point.
Here is my starting point:
preg_match("/Purpose\<\/p
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 unsubscribe
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
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
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]>
mktime can do this...have a look at the docs...example in there
bastien
From: "Ron Piggott" <[EMAIL PROTECTED]>
To: "PHP DB"
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
stored in a myS
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 em
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 be
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
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 $_
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 thi
15 matches
Mail list logo