CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Php

  1. #1
    Join Date
    Dec 2009
    Posts
    8

    Php

    Hey,

    Do webpages developed with PHP usually use the object-oriented approach, or the procedural approach? What is the main focus of PHP?...code with classes or without classes?

    Most people who use C++, use it for object oriented development. What about PHP? What is it used mostly for?

    Jack

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Php

    I think whatever others use (which I believe is a procedural approach), we should encourage people to go for OOPS, that's the most reasonable way to go for.
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Jun 2009
    Posts
    35

    Re: Php

    PHP is server side scripting lang
    i don;t like it, I like ASP.nut

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: Php

    [ moved ]
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    May 2002
    Posts
    10,943

    Re: Php

    Development methods depend on a lot of things. Two main points determine which approach will be used: expertise level of the developer and size/intensity of the project. Beginner tend to use procedural methods because they cannot understand object-oriented methods as clearly as the experienced developer.

    Personally, I use OOP as often as possible. But, if the project is a simple script, sometimes it's a waste to bother with object-oriented methodology.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  6. #6
    Join Date
    Nov 2009
    Posts
    31

    Re: Php

    I use OOP in PHP when I'm working with DOM especially with XML because I'm already interacting with object it easier to keep that mode.

    but small things as Peej said it a waste to both with

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured