By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,480 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,480 IT Pros & Developers. It's quick & easy.

Which PHP

P: n/a
I am about to download PHP to learn it. All my learning will be on my
local, home machine.

Which release should I download, PHP 5.0.4 or 4.3.11? I assume 5.0.4 but
just checking?

Thanks...
Jul 17 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
NC
Bruce A. Julseth wrote:

I am about to download PHP to learn it. All my learning will be
on my local, home machine.

Which release should I download, PHP 5.0.4 or 4.3.11?


Depends on how soon you plan to write applications that will have
to be hosted. Most hosting companies still operate some version
of PHP 4, so you may want to stick to PHP 4 if you are planning
to deploy soon. If, on the other hand, you plan to stay in your
own sandbox for a while, you might as well install PHP 5.

Also, you can install both versions and configure yor machine
for non-standard extensions. For example, it is possible to
run scripts with *.php4 extension using PHP 4 and scripts with
*.php5 extension using PHP 5.

Cheers,
NC

Jul 17 '05 #2

P: n/a
Bruce A. Julseth wrote:
I am about to download PHP to learn it. All my learning will be on my
local, home machine.

Which release should I download, PHP 5.0.4 or 4.3.11? I assume 5.0.4 but
just checking?


Depends. If you are into OOP then go for PHP5. Otherwise you might
consider PHP4, as most tutorials and examples are for PHP4. Much of it
would most likely work for PHP5, but when you are new and learning, it
would probably be a nuisance if it didn't.

/Bent
Jul 17 '05 #3

P: n/a
Following on from Bent Stigsen's message. . .
Bruce A. Julseth wrote:
I am about to download PHP to learn it. All my learning will be on my
local, home machine.

Which release should I download, PHP 5.0.4 or 4.3.11? I assume 5.0.4 but
just checking?


Depends. If you are into OOP then go for PHP5. Otherwise you might
consider PHP4, as most tutorials and examples are for PHP4. Much of it
would most likely work for PHP5, but when you are new and learning, it
would probably be a nuisance if it didn't.

/Bent

Good advice. If you like OO by having played with another OO language
then you'll get a little frustrated with 4, but there will be more
things to get used to in the meantime and you can move from 4 to 5 with
very little hassle when you are desperate. (But I think it is true to
say that 5 may be better at OO but it's not wildly exciting.) I can't
recall what the one key reason for me doing 4->5 was now.

--
PETER FOX Not the same since the bridge building business collapsed
pe******@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
Jul 17 '05 #4

P: n/a
Thanks for the advice... I think I'll go with PHP 5. I am an OOP's fan. I am
learning. And, I'm sure I can buy a PHP 5 book at my local Barnes & Nobel.

Bruce

"Peter Fox" <pe******@eminent.demon.co.uk.not.this.bit.no.html > wrote in
message news:uy**************@eminent.demon.co.uk...
Following on from Bent Stigsen's message. . .
Bruce A. Julseth wrote:
I am about to download PHP to learn it. All my learning will be on my
local, home machine.

Which release should I download, PHP 5.0.4 or 4.3.11? I assume 5.0.4 but
just checking?


Depends. If you are into OOP then go for PHP5. Otherwise you might
consider PHP4, as most tutorials and examples are for PHP4. Much of it
would most likely work for PHP5, but when you are new and learning, it
would probably be a nuisance if it didn't.

/Bent

Good advice. If you like OO by having played with another OO language
then you'll get a little frustrated with 4, but there will be more things
to get used to in the meantime and you can move from 4 to 5 with very
little hassle when you are desperate. (But I think it is true to say that
5 may be better at OO but it's not wildly exciting.) I can't recall what
the one key reason for me doing 4->5 was now.

--
PETER FOX Not the same since the bridge building business collapsed
pe******@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

Jul 17 '05 #5

P: n/a
"Bruce A. Julseth" <br***********@attglobal.net> wrote in news:426c614d_4
@news1.prserv.net:
I am about to download PHP to learn it. All my learning will be on my
local, home machine.

Which release should I download, PHP 5.0.4 or 4.3.11? I assume 5.0.4 but
just checking?


If you'll be using/writing/parsing XML, that too is another reason to go
with PHP 5.
Jul 17 '05 #6

P: n/a
On Mon, 25 Apr 2005 12:18:12 +0100, Peter Fox
<pe******@eminent.demon.co.uk.not.this.bit.no.html > wrote:
Good advice. If you like OO by having played with another OO language
then you'll get a little frustrated with 4


Probably the number 1 thing to remember with OO in PHP 4 is PHP's
assignment-by-copy semantics for objects - so you have to remember to use =&
liberally instead of = to avoid making copies where you weren't expecting it.

PHP 5 changes that so $obj1 = $obj2 doesn't create a copy; they both stay the
same object. 95% of the time this is what you want - for the other 5% there's
http://www.php.net/manual/en/language.oop5.cloning.php

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #7

P: n/a
Bent Stigsen wrote:
Bruce A. Julseth wrote: <snip>
Which release should I download, PHP 5.0.4 or 4.3.11? I assume 5.0.4 but just checking?


Depends. If you are into OOP then go for PHP5. Otherwise you might
consider PHP4, as most tutorials and examples are for PHP4. Much of

it would most likely work for PHP5, but when you are new and learning, it would probably be a nuisance if it didn't.


Staying with museum versions isn't a right way for any languages,
IMHO. If you're new and unless you do some research, there is no point
in holding older versions.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #8

P: n/a
% which php
/usr/bin/php

Sorry, just being a smartass

--
The future will blow your mind

Jul 17 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.