On Thu, Jul 19, 2012 at 2:26 PM, Matijn Woudt wrote:
>
> Is this really the recommended way on distros' which package the pecl
> packages?
> It seems to me it would be better to use the distros' version, so it
> has the required patches (if any) for them to work correctly on the
> distro, and the
On Thu, Jul 19, 2012 at 6:58 PM, Daniel Brown wrote:
> On Thu, Jul 19, 2012 at 12:18 PM, Mihamina Rakotomandimby
> wrote:
>> Hi all,
>> Wondering about the difference between PECL and PEAR, I found:
>> http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear
>>
>> Is it a suitable answer?
On Thu, Jul 19, 2012 at 12:18 PM, Mihamina Rakotomandimby
wrote:
> Hi all,
> Wondering about the difference between PECL and PEAR, I found:
> http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear
>
> Is it a suitable answer?
It's close.
PECL (sometimes pronounced "pickle") sta
> -Original Message-
> From: Ashim Kapoor [mailto:ashimkap...@gmail.com]
> Sent: Saturday, January 22, 2011 5:09 AM
> To: php-general@lists.php.net
> Subject: [PHP] Difference between CURLOPT_URL and wget
>
> Dear All,
>
> I am a beginner at PHP. I was studying the curl library and I came
June 2009 15:55
To: Matthew Croud
Cc: Dajve Green; PHP General list
Subject: Re: [PHP] difference between two times? Date_diff and
DateTime::diff
The first example here may help:
http://us3.php.net/manual/en/function.time.php
2009/6/16 Matthew Croud
Hi
om
PHP 5.3, which is currently in release candidate stage, meaning
unless you
have your own server running PHP, it won't be available to use
(hopefully -
I would be sceptical of any webhost which rolls out RCs on
production
servers).
If you need to know what version of PHP you're runn
5.3, which is currently in release candidate stage, meaning
> > unless you
> > have your own server running PHP, it won't be available to use
> > (hopefully -
> > I would be sceptical of any webhost which rolls out RCs on production
> > servers)
fully
>> -
>> I would be sceptical of any webhost which rolls out RCs on production
>> servers).
>>
>> If you need to know what version of PHP you're running, use:
>> phpversion() or phpinfo()
>>
>> -Original Message-
>>> From:
From: Matthew Croud [mailto:m...@obviousdigital.com]
Sent: 16 June 2009 12:42
To: Tom Chubb
Cc: PHP General list
Subject: Re: [PHP] difference between two times? Date_diff and
DateTime::diff
Hi Tom,
Thanks for the reply, I believe I have a fair understanding of
functions, and I have followed the example
out RCs on production
servers).
If you need to know what version of PHP you're running, use:
phpversion() or phpinfo()
> -Original Message-
> From: Matthew Croud [mailto:m...@obviousdigital.com]
> Sent: 16 June 2009 12:42
> To: Tom Chubb
> Cc: PHP General list
> Subj
Hi Tom,
Thanks for the reply, I believe I have a fair understanding of
functions, and I have followed the example on the PHP manual page ( http://uk3.php.net/manual/en/function.date-diff.php
), ideally I want to know how to use the class DateTime::diff, how
can I use the DateTime::diff to
Lo again,
found my mistake.. in fact, it was the hex-to-rgb conversion not working
properly in some cases.
[SUBJECT CLOSED]
zyro wrote:
>
> Hello together,
>
> I stumbled onto a curious problem:
> i am generating a jpeg/gif with the imagejpeg/imagegif functions (type
> does not alter the res
Lamp Lists wrote:
hi to all!
on one eZine site, I have to show when the article is posted but as difference from NOW. like
"posted 32 minutes ago", or "posted 5 days ago".
is there already sucha php/mysql function?
thanks.
Hi,
I don't know about existing functions but you can us
At 12:41 PM +0200 7/20/06, Chris Grigor wrote:
>Morning all,
>
>I am looking to get the differnce in hours / minutes between 2 values.
>
>Currently I have 2 time entries being retruned from mysql, one which is a
>start time and
>the other which is a finish time.
>
>So
>
>$start = '13:12:17';
>$fini
At 1:51 PM +0200 7/20/06, nicolas figaro wrote:
>IMHO, the best is to generate a timestamp using mktime for each date.
>you can the calculate the difference of timestamps and convert it back using
>date.
>
>$tm_start = mktime(substr($start,0,2),substr($start,3,2), substr($start,5,2));
>$tm_finish
|Found this on the PHP web site,
you can add the conversions as the first lines in the functions.
function callDuration($dateTimeBegin,$dateTimeEnd) {
$dif=$dateTimeEnd - $dateTimeBegin;
$hours = floor($dif / 3600);
$temp_remainder = $dif - ($hours * 3600);
$minutes
Chris Grigor a écrit :
Morning all,
I am looking to get the differnce in hours / minutes between 2 values.
Currently I have 2 time entries being retruned from mysql, one which is a
start time and
the other which is a finish time.
So
$start = '13:12:17';
$finish = '23:12:17';
How would one g
Check out some info here :
http://www.weberdev.com/ViewArticle/440
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
PHP code examples : http://www.weberdev.com
PHP Web Logs : http://www.weberblog.com/
PHP & MySQL Forums : http://www.weberforums.c
http://ca.php.net/manual/en/function.include.php
On 1/20/06, balachandar muruganantham <[EMAIL PROTECTED]> wrote:
>
> Can anyone tell me the exact differeneces between require and include?
>
> --
> balachandar muruganantham
> mbchandar
> mbchandar
> http://chandar.blogspot.com
> http://www.ba
On Wednesday 26 November 2003 05:21 pm, Gerard Samuel wrote:
> That is not explained in the manual
> As far as I can tell, the difference (according to the manual) is that one
> can be overridden by an .htaccess file, while the other cannot
>
> Im testing to see how my script is behaving in
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
> > Hi list,
> >
> > Just out of curiosity I would like to know if anyone can tell me the
> > difference between some $_SERVER variables that generate the same output
(in
> > my
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
> Hi list,
>
> Just out of curiosity I would like to know if anyone can tell me the
> difference between some $_SERVER variables that generate the same output (in
> my test-file at least).
>
> For instance, what is the difference between $_SERVER['HTT
server name - real name of the server, ie when you do a reverse dns
lookup you get (usualy) this
http host - content of the Host: header, that is virtual host
Ivo Fokkema wrote:
Hi list,
Just out of curiosity I would like to know if anyone can tell me the
difference between some $_SERVER variabl
on 17/06/03 6:09 PM, Jarmo Järvenpää ([EMAIL PROTECTED]) wrote:
> Hi
>
> A quickie, how does the $_POST[foo] and $_POST['foo'] differ?
> Both do work.
$_POST[foo] will look for a pre defined constant foo.
Under certain error-reporting levels, this will generate an notice/warning,
and it assumes
> How do I subtract the difference of months between two dates?
>
> For instance, if one date is 2003-12 and the other is 2002-08, I need
to
> know that there are 16 months between them. If one date is 2003-04 and
the
> other is 2003-01, I need to know that there are 3 months between them.
How
> c
I'm trying to do a mail function where if the date the email was posted was
today then a "new message" would display, otherwise not.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 13 Dec 2002, Colin Bossen wrote:
> I have a similar problem. I am trying to figure out which of two dates
> is greater. Both are in the -mm-dd format. Is there any easy
> function that allows this sort of comparison or am I missing something?
You have a simpler problem. -mm-dd i
Colin,
> I have a similar problem. I am trying to figure out which of two dates
> is greater. Both are in the -mm-dd format. Is there any easy
> function that allows this sort of comparison or am I missing something?
Treat the dates as strings not numbers:
$DateOne = "2002-12-13";
$DateTw
ts2)
{
// .. blah blah blah.
}
-Kevin
- Original Message -
From: "Colin Bossen" <[EMAIL PROTECTED]>
To: "vernon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 13, 2002 2:50 PM
Subject: Re: [PHP] Difference between 2 Dates
&
I have a similar problem. I am trying to figure out which of two dates
is greater. Both are in the -mm-dd format. Is there any easy
function that allows this sort of comparison or am I missing something?
On Friday, December 13, 2002, at 01:43 PM, vernon wrote:
I found this code on the php.
On Mon, 8 Jul 2002, Jay Blanchard wrote:
> We have some cases where we run PHP as a standalone executable for scripting
> certain processes that can be called from CRON, and we also have PHP for
> Apache. Does the php.ini affect both? Specifically script times?
Check the output of phpinfo() for
On Thu, 18 Apr 2002, Norman Zhang wrote:
> I am looking at some codes. Some authors use $foo and isset($foo)
> interchangeably. Just to want to make sure that the statement,
>
> if ($foo) { ... }
>
> is different from
>
> if (isset($foo)) { ... }
>
> Right? if ($foo) means variable exists and
Hello,
I got the solution for the date difference problem..,,
Thankyou very much.
-Uma
"Uma Shankari T." <[EMAIL PROTECTED]> wrote:
> If i gave the str date as "31-01-2001"; and $str1="04-02-2001"; then it
> is displaying the wrong result
>
> Plz tell me how can i rectify this p
"Uma Shankari T." <[EMAIL PROTECTED]> wrote:
> If i gave the str date as "31-01-2001"; and $str1="04-02-2001"; then it
> is displaying the wrong result
>
> Plz tell me how can i rectify this problem...
Uma,
I wrote a function last year that calculates the time between 2 dates in
whatever unit i
If i gave the str date as "31-01-2001"; and $str1="04-02-2001"; then it
is displaying the wrong result
Plz tell me how can i rectify this problem...
-Uma
On Tue, 19 Feb 2002, Rasmus Lerdorf wrote:
RL>This will give you the difference between the two dates in seconds:
RL>
RL>$diff
You can convert the time into seconds using mktime(), subtract one from
the other, and then reformat it using gmstrftime:
//int mktime ( int hour, int minute, int second, int month, int day, int
year [, int is_dst])
//string gmstrftime ( string format [, int timestamp])
";
echo "$time2"
This will give you the difference between the two dates in seconds:
$diff = strtotime(str_replace('-','/',$str1)) - strtotime(str_replace('-','/',$str));
-Rasmus
On Wed, 20 Feb 2002, Uma Shankari T. wrote:
>
>
>
> Hello,
>
> How can i find out the difference between two dates.
>
> I am h
Hello,
If i executed code then nothing will be displayed...
-Uma
On Tue, 19 Feb 2002, Andrey Hristov wrote:
AH>Try this :
AH>$d1=strtotime('d-m-Y',$str);
AH>$d2=strtotime('d-m-Y',$str1);
AH>var_dump($d2-$d1);
AH>
AH>
AH>Best regards,
AH>Andrey Hristov
AH>
AH>- Original Message
Try this :
$d1=strtotime('d-m-Y',$str);
$d2=strtotime('d-m-Y',$str1);
var_dump($d2-$d1);
Best regards,
Andrey Hristov
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 10:50 AM
Subject: [PHP] Difference between two
Read this article at PHPbuilder:
http://www.phpbuilder.com/columns/akent2610.php3
- D
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 9:50 AM
Subject: [PHP] Difference between two dates
>
>
> Hello,
>
Ok,
1 is IMO not correct, a string should be quoted.
2 and 3 make no practical difference in this situation,
although 2 is probably somewhat faster because PHP
doesn't substitute variables with their value when they're
within single quotes.
for code readability it is probaby best if you alwa
Check the return value of mysql_query(). It should either evaluate to
false, or true. If false, then output some error messages using
mysql_error() and mysql_errno().
-JasonGarber
IonZoftDotCom
At 01:29 PM 11/17/2001 -0500, Jeff Lewis wrote:
>I am wondering if there are any difference betwee
are you actually doing anything with $request? that just gets a mysql result
back in a variable, you then have to extract the data from it...
Jeff Lewis wrote:
> I am wondering if there are any difference between using PHP and using the
> command line for mySQL. Entering this at the comman line
Though i'm a bit of a newbie myself, I believe the only difference between
the 2 is that some servers require
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2001 11:43 AM
Subject: [PHP] difference between Hi,
>
> I am a newbie at this PHP thing and I have been working from information
> on
The problem comes if you use php to generate xml documents in xml you
use the tag
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2001 8:05 PM
Subject: RE: [PHP] difference between
> There isn't any difference, if your php.ini settings allow
There isn't any difference, if your php.ini settings allow it
(short_tags, I believe), you can use mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 09, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] difference between http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
46 matches
Mail list logo