Current location: Hot Scripts Forums » Programming Languages » PHP » Can we make it from PHP4 to PHP5?


Can we make it from PHP4 to PHP5?

Reply
  #1 (permalink)  
Old 04-28-05, 10:30 PM
weilies weilies is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Can we make it from PHP4 to PHP5?

i m scripting my code in some sort of style like

class CORE {
function CORE() {
$this->h_COREG = new COREG // create instence for COREG class
}

function mehtod1() {
... $this->h_COREG->coreg_method() ...
}
}

i heard that PHP5 is more OO programming and i m worried it cant be support in it. will it? since OO style means create a relationship in parent/child class but since from the code above we know that there are no such parent/child relationship exist.

so, is this mean that my programming style got problems?

moreover, PHP5 don support "$this->" anymore?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-29-05, 05:41 AM
dennispopel dennispopel is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 263
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

What do you mean? The code should work...
__________________
onPHP5.com - PHP5: Articles, News, Tutorials, Interviews, Software and more
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-29-05, 06:24 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
you can migrate to PHP5 without any problems if your OO design was simple and not complex..
$this-> is still there
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 Hosting account for FREE w/ any purchase! mxhub General Advertisements 0 10-07-04 12:52 PM
can't make php5 on mac osx 10.2 rkstar PHP 2 03-24-04 08:30 AM


All times are GMT -5. The time now is 10:13 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.