Closed Thread
Differences between PHP4 and PHP5
Old 02-10-2008, 04:57 PM Re: Differences between PHP4 and PHP5
Junior Talker

Posts: 1
Name: Jon
Location: United Kingdom
Ok as I understand it PHP5 uses a different hash algorithm from PHP 4

The reason I ask this is because I have just migrated my website from a PHP 4 host to a PHP 5 host and it has broken all my members passwords

Last edited by edjon2000 : 02-10-2008 at 05:03 PM. Reason: clarification
edjon2000 is offline
View Public Profile Visit edjon2000's homepage!
 
Old 02-10-2008, 05:37 PM Re: Differences between PHP4 and PHP5
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,166
Name: Dan
Location: Swindon
I would guess the best way you can remidy this is send out a lost password email to everyone...

to allow them to reset their passwords.

I havent noticed any problems, when i switched to php 5 in my cpanel (i have dual host )
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
View Public Profile Visit dansgalaxy's homepage!
 
Old 04-30-2008, 05:15 AM Re: Differences between PHP4 and PHP5
Novice Talker

Posts: 6
Name: serkan
PHP becoming far more better . Better than equivalents.
Clear and a good article. Thanx a lot
__________________
Fil bilişim
Ankara Web Tasarımı
tutunmayan is offline
View Public Profile
 
Old 06-17-2008, 08:26 AM Re: Differences between PHP4 and PHP5
Junior Talker

Posts: 1
wow. i like with this forum. i hope can learn about php .
------------------

ebooktoyou.co.cc
jacket is offline
View Public Profile
 
Old 07-06-2008, 07:51 PM Re: Differences between PHP4 and PHP5
icanfreelance's Avatar
Junior Talker

Posts: 2
I agree php is becoming better. The code is now more stable then ever. There are still a bit of flaws when it come to pear but a novice user should be fine.
__________________
ICanFreelance.com - Find freelance programmers, post freelance projects and find freelance programming jobs. Best of all "GET $5.00 FREE" when you register a new webmaster account.
icanfreelance is offline
View Public Profile Visit icanfreelance's homepage!
 
Old 07-07-2008, 11:19 AM Re: Differences between PHP4 and PHP5
dansgalaxy's Avatar
Eat, Sleep, Code

Posts: 6,166
Name: Dan
Location: Swindon
PHP can only get better! it is an easy language to learn the basics with and can proform amazingly advanced tasks when you know how and can interact with alot of differant functions etc.

Go PHP Go PHP ...
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk (only for members!)
dansgalaxy is offline
View Public Profile Visit dansgalaxy's homepage!
 
Old 07-22-2008, 09:08 AM Re: Differences between PHP4 and PHP5
Junior Talker

Posts: 1
Object Model
The new OOP features in PHP5 is probably the one thing that everyone knows for sure about. Out of all the new features, these are the ones that are talked about most!
Passed by Reference
This is an important change. In PHP4, everything was passed by value, including objects. This has changed in PHP5 — all objects are now passed by reference.
PHP Code:
$joe = new Person();
$joe->sex = ‘male’;$betty = $joe;
$betty->sex = ‘female’;echo $joe->sex; // Will be ‘female’
The above code fragment was common in PHP4. If you needed to duplicate an object, you simply copied it by assigning it to another variable. But in PHP5 you must use the new clone keyword.Note that this also means you can stop using the reference operator (&). It was common practice to pass your objects around using the & operator to get around the annoying pass-by-value functionality in PHP4.
Class Constants and Static Methods/Properties
You can now create class constants that act much the same was as define()’ed constants, but are contained within a class definition and accessed with the :: operator.
Static methods and properties are also available. When you declare a class member as static, then it makes that member accessible (through the :: operator) without an instance. (Note this means within methods, the $this variable is not available)
Visibility
Class methods and properties now have visibility. PHP has 3 levels of visibility:
  1. Public is the most visible, making methods accessible to everyone and properties readable and writable by everyone.
  2. Protected makes members accessible to the class itself and any subclasses as well as any parent classes.
  3. Private makes members only available to the class itself.

< removed link drops>

Last edited by chrishirst : 08-30-2008 at 07:11 AM.
madhuri_vats is offline
View Public Profile
 
Old 08-20-2008, 08:16 PM Re: Differences between PHP4 and PHP5
Junior Talker

Posts: 2
I could be wrong, but isn't one of the major differences the way that variables are now accessed? You now have to use e.g.

$variable = $_GET['variable'];
$variable = $_POST['variable'];

which increases the security. Maybe I'm dreaming this and it was actually PHP 3 -> 4 that made the change (in which case I'm due for some abuse...)
__________________
www.gameofhot.com - Hot girls and guys compete against each other in the ultimate game of hot.
larabingle is offline
View Public Profile
 
Old 08-30-2008, 06:10 AM Re: Differences between PHP4 and PHP5
Skilled Talker

Posts: 51
There are several differences between PHP4 and PHP5.
1.Unified constructor and Destructor.
2.Exception has been introduced.
3.New error level named E_STRICT has been introduced.
4.Now we can define full method definintions for a abstract
class.
4.Within a class we can define class constants.
5.we can use the final keyword to indicate that a method
cannot be overridden by a child
John_audson is offline
View Public Profile
 
Closed Thread     « Reply to Differences between PHP4 and PHP5

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15081 seconds with 11 queries