Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-05 Thread Daniel Egeberg
On Tue, Jan 5, 2010 at 10:34, Daniel Egeberg degeb...@php.net wrote:
 On Tue, Jan 5, 2010 at 02:22, Varuna Seneviratna phpiss...@gmail.com wrote:
 Since there are two stable versions 5.3 and 5.2 .What is the difference
 between these two streams and What is the need for maintaining two streams?

 The PHP 5.3.x branch is still pretty new. That is why 5.2.x is still
 maintained to provide bug fixes and security patches seeing as there
 are still a lot of people using that branch.

 If you are going to do a new install, PHP 5.3.1 should be just fine for you.

And that was supposed to have gone to the list as well. Sorry. Hit the
wrong button.

-- 
Daniel Egeberg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-04 Thread Varuna Seneviratna
Since there are two stable versions 5.3 and 5.2 .What is the difference
between these two streams and What is the need for maintaining two streams?


Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-04 Thread viraj
5.3.1 is what we call 'current release'. for those who do not like to
sit on the edge, the latest is 5.2.12.

both get bug fixes (checkout the home page release announcements), so
they are 'still supported'. that means those versions earlier to
5.2.11 do not get bug fixes hence 'not supported but stable'

http://en.wikipedia.org/wiki/PHP

~viraj


On Tue, Jan 5, 2010 at 7:22 AM, Varuna Seneviratna phpiss...@gmail.com wrote:
 Since there are two stable versions 5.3 and 5.2 .What is the difference
 between these two streams and What is the need for maintaining two streams?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-04 Thread Lester Caine

Varuna Seneviratna wrote:

Since there are two stable versions 5.3 and 5.2 .What is the difference
between these two streams and What is the need for maintaining two streams?


PHP5.3 introduced a number of 'improvements' that require many third party 
packages to be re-worked. Something which has still to be completed in many 
cases. In addition a number of key parts are not now available in Windows builds 
of PHP5.3, so many of us do not have the option as yet to switch TO the 5.3 
branch in production. Until PHP5.3 is fully supported and complete, 5.2 still 
needs to be maintained!


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
What is the difference as in... why one or the other?

include('somefile.php');

include(somefile.php);

Just wondering...

- ck

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What is the difference: include()

2003-03-17 Thread Pete James
Only that you can embed vars in the second one.

if $foo='bar';

include('somefile_{$foo}');
will include the file 'somefile{$foo}', where
include(somefile_{$foo});
will include the file 'somefile_bar'
HTH.

Charles Kline wrote:
What is the difference as in... why one or the other?

include('somefile.php');

include(somefile.php);

Just wondering...

- ck




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
perfect. thanks for the explanation.

cheers,
charles
On Monday, March 17, 2003, at 02:01 PM, Pete James wrote:

Only that you can embed vars in the second one.

if $foo='bar';

include('somefile_{$foo}');
will include the file 'somefile{$foo}', where
include(somefile_{$foo});
will include the file 'somefile_bar'
HTH.

Charles Kline wrote:
What is the difference as in... why one or the other?
include('somefile.php');
include(somefile.php);
Just wondering...
- ck




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
 What is the difference as in... why one or the other?

 include('somefile.php');

 include(somefile.php);

 Just wondering...

No difference as far as include() goes.

Read the manual on strings to see how PHP treats strings in single and
double quotes differently.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is the difference: include()

2003-03-17 Thread Kevin Stone
- Original Message -
From: Charles Kline [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 11:57 AM
Subject: [PHP] What is the difference: include()


 What is the difference as in... why one or the other?

 include('somefile.php');

 include(somefile.php);

 Just wondering...

 - ck

There is no difference in functionality of your example.  Single quotes
assumes a litteral string.  Double quotes assumes variables within the
string are parsed.  In other words:

$myvar = 'foo';
echo '$myvar bar';  // prints $myvar bar
echo $myvar bar; // prints foo bar

HTH,
Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price


Charles Kline wrote:
What is the difference as in... why one or the other?

include('somefile.php');

include(somefile.php);

Just wondering...
If you had a constant named somefile or php and you use the second 
syntax, the constant would be interpolated/evaluated to the value of the 
constant.

Generally I always use single quoted strings unless there's some need 
for double-quoted strings (like if I want to embed a variable) so 
something like this can't happen.

Also good idea to only use capital letters for constants.



Erik

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price


Erik Price wrote:

If you had a constant named somefile or php and you use the second 
syntax, the constant would be interpolated/evaluated to the value of the 
constant.

Generally I always use single quoted strings unless there's some need 
for double-quoted strings (like if I want to embed a variable) so 
something like this can't happen.
BTW, I'm talking out my butt here, but it might be true.  The advice is 
still sound, regardless.



Erik

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What is the difference: include()

2003-03-17 Thread John Nichel
Erik Price wrote:
snip
BTW, I'm talking out my butt here.
/snip

I was wondering what that smell was. :o

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] What is the difference: include()

2003-03-17 Thread CPT John W. Holmes
  If you had a constant named somefile or php and you use the second
  syntax, the constant would be interpolated/evaluated to the value of the
  constant.
 
  Generally I always use single quoted strings unless there's some need
  for double-quoted strings (like if I want to embed a variable) so
  something like this can't happen.

 BTW, I'm talking out my butt here, but it might be true.  The advice is
 still sound, regardless.

Well, the first part is out your butt... :)

but the second part is sound advice.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is the difference: include()

2003-03-17 Thread Erik Price


CPT John W. Holmes wrote:

Well, the first part is out your butt... :)

Yep.  I tested it after making the assumption, sure enough I was WRONG. 
 I've got to keep my butt under control, it's getting a little out of hand.

To the OP, sorry 'bout that.

Erik

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] what is the difference between function and language construct?

2002-03-21 Thread bob

why this get wrong?

?php

if (empty($a=5)) {
echo 'ok';
} else {
echo 'bad';
}
?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] what is the difference between function and language construct?

2002-03-21 Thread Matthew Walker

Because $a=5 is not 'empty'.

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: bob [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 21, 2002 5:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] what is the difference between function and language
construct?

why this get wrong?

?php

if (empty($a=5)) {
echo 'ok';
} else {
echo 'bad';
}
?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.332 / Virus Database: 186 - Release Date: 3/6/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.332 / Virus Database: 186 - Release Date: 3/6/2002
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] What is the difference?

2001-09-20 Thread Jay Paulson

What's the difference between these two variable?

$HTTP_POST_FILES[imageFile][name][0]
$HTTP_POST_FILES[imageFile][name][1]

$imageFile[name][0]
$imageFile[name][1]

The reason why I ask this is I get this error below when I echo out
$imageFile[name][0] etc.

Warning: Undefined index: name in
/home/lbjs/lbjs.com/htdocs/user_admin/redirect.php on line 1787

Thanks,
jay


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] What is the difference between session_unset() and session_destroy()?

2001-03-29 Thread Yasuo Ohgaki

Anyway, session_unset() only unset session vars in memory, but session_destroy()
deletes session vars from storage.
i.e. You can free storage with session_destroy() without waiting garbage
collection.
Unless programmer discards session id, session data will be created with the
same session id, though.

--
Yasuo Ohgaki


"Carfield Yim" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 From the manual,
 session_unset X Free all session variables
 session_destroy X Destroys all data registered to a session

 What do this document exactly mean?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] What is the difference between session_unset() and session_destroy()?

2001-03-28 Thread Carfield Yim

From the manual,
session_unset X Free all session variables 
session_destroy X Destroys all data registered to a session

What do this document exactly mean?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]