473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Which PHP

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
8 1770
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
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
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
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
"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
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
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
% which php
/usr/bin/php

Sorry, just being a smartass

--
The future will blow your mind

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Raymond H. | last post by:
Hello, I create a vb4 project which can also naviger on Internet via the WebBrowser control which I put on my form. My question is: if this program is installed on a station having already...
17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
3
by: Edward | last post by:
ASP.NET / VB.NET SQL Server 7.0 Our client has insisted that we change our established practice of building SQL in-line and move it all to SPROCs. Not a problem for 80% of the app. However,...
133
by: Jane Withnolastname | last post by:
I have a web page that uses an unordered list (<UL>) and the LH (list header) tag. I know LH is a valid tag because it is clearly defined by the W3C here:...
29
by: guru.slt | last post by:
"the c++ standard library, tutorial and reference" book, it says: ++i is faster than i++. the latter involves a temporary object because it must return the old value/object of i. for this reason,...
17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
17
by: clintonG | last post by:
I'm using an .aspx tool I found at but as nice as the interface is I think I need to consider using others. Some can generate C# I understand. Your preferences please... <%= Clinton Gallagher ...
4
by: mflll | last post by:
I am looking into the different techniques of handling arrays of edit boxes in Java Script. The first program below works fine. However, are there better ways of doing this, where the person...
2
by: rn5a | last post by:
A Form has a select list which is populated from a MS-Access database table. The DB table from where the select list is populated has 2 columns - CountryID & CountryName. When the Form is posted,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.