Re: [PHP] difference PEAR PECL

2012-07-19 Thread Daniel Brown
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

Re: [PHP] difference PEAR PECL

2012-07-19 Thread Matijn Woudt
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?

Re: [PHP] difference PEAR PECL

2012-07-19 Thread Daniel Brown
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

RE: [PHP] Difference between CURLOPT_URL and wget

2011-01-22 Thread Tommy Pham
> -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

RE: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Dajve Green
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

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
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

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Ian
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)

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Tom Chubb
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:

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
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

RE: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Dajve Green
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

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
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

Re: [PHP] Difference between imagegif/imagejpeg sending to browser <-> saving to file?

2008-05-08 Thread zyro
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

Re: [PHP] difference in time

2008-03-11 Thread Aschwin Wesselius
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

Re: [PHP] Difference between 2 time entries

2006-07-20 Thread tedd
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

Re: [PHP] Difference between 2 time entries

2006-07-20 Thread tedd
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

Re: [PHP] Difference between 2 time entries

2006-07-20 Thread John Meyer
|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

Re: [PHP] Difference between 2 time entries

2006-07-20 Thread nicolas figaro
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

RE: [PHP] difference between require and include

2006-01-20 Thread Weber Sites LTD
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

Re: [PHP] difference between require and include

2006-01-20 Thread Adi
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

Re: [PHP] Difference between php_flag & php_admin_flag

2003-11-26 Thread Gerard Samuel
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

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Ivo Fokkema
"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

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Curt Zirzow
* 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

Re: [PHP] Difference between equal $_SERVER variables?

2003-07-24 Thread Marek Kilimajer
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

Re: [PHP] Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Justin French
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

RE: [PHP] Difference between months

2003-03-25 Thread John W. Holmes
> 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

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread vernon
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

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread Jean-Marc Libs
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

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread DL Neil
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

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread Kevin Stone
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 &

Re: [PHP] Difference between 2 Dates

2002-12-13 Thread Colin Bossen
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.

Re: [PHP] Difference between executable and Apache server

2002-07-08 Thread Chris Wesley
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

Re: [PHP] difference between $foo and isset($foo)

2002-04-18 Thread Miguel Cruz
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

Re: [PHP] Difference between two dates

2002-02-20 Thread Uma Shankari T.
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

Re: [PHP] Difference between two dates

2002-02-20 Thread Steve Werby
"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

Re: [PHP] Difference between two dates

2002-02-19 Thread Uma Shankari T.
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

Re: [PHP] Difference between two dates

2002-02-19 Thread Steven Walker
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"

Re: [PHP] Difference between two dates

2002-02-19 Thread Rasmus Lerdorf
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

Re: [PHP] Difference between two dates

2002-02-19 Thread Uma Shankari T.
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

Re: [PHP] Difference between two dates

2002-02-19 Thread Andrey Hristov
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

Re: [PHP] Difference between two dates

2002-02-19 Thread Daniel Alsén
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, >

Re: [PHP] difference !!??

2002-02-07 Thread bvr
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

Re: [PHP] Difference of queries in PHP/mySQL?

2001-11-18 Thread Jason G.
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

Re: [PHP] Difference of queries in PHP/mySQL?

2001-11-17 Thread Jack Dempsey
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

Re: [PHP] difference between

2001-09-09 Thread nate
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

Re: [PHP] difference between

2001-09-09 Thread Tom Carter
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

RE: [PHP] difference between

2001-09-09 Thread Matthew Loff
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