Results 1 to 18 of 18

Thread: Discussion: PHP 5 OOP

  1. #1

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Discussion: PHP 5 OOP

    This thread is for dicussion of the PHP 5 OOP tutorial:

    http://www.vbforums.com/showthread.php?t=378700
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Discussion: PHP 5 OOP

    Just one thing: I disagree that PHP5 was brought in line with Java and C#. Its OO features are a great improvement, yet it's still missing quite a few things, mostly code organization: the lack of packages/namespaces can be extremely irritating. The other big missing thing is a complete rewrite of the standard library in an object-oriented style. (In particular, making string literals be of a proper string type with member operations would be pleasant. Of course, that in turn would require operator overloading.)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Discussion: PHP 5 OOP

    I have changed it to "more in line with Java and C#"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4
    Member
    Join Date
    Jul 2005
    Posts
    35

    Re: Discussion: PHP 5 OOP

    If its not too much work, It would be great if you would add a downloadable Adobe Acrobat or Word Version of it. (Hard to read from a long time off a forum)

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Discussion: PHP 5 OOP

    We tend to lean towards keeping content on this forum, rather than making it downloadable.

    If you prefer, you could always copy and paste it into Word.

  6. #6
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    Re: Discussion: PHP 5 OOP

    I like it. I like to learn new things.

  7. #7
    New Member
    Join Date
    Apr 2008
    Posts
    3

    Re: Discussion: PHP 5 OOP

    Hi,
    first of all I would like to say "ciao" (which means Hi in italian) to everybody on this forum, this is my first message.
    In addition I'm very sorry for my bad English.

    I've read a couple of articles related to the PHP5 OOP.
    In order to test it I would like to download the tutorial attached file but the link seems to be broken
    How or where can I downloade mentioned files?

    Thanks in advance,
    Max

  8. #8

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Discussion: PHP 5 OOP

    Hi Max,

    I will check the web server a bit later and reply back when the issue is fixed.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  9. #9
    New Member
    Join Date
    Apr 2008
    Posts
    3

    Re: Discussion: PHP 5 OOP

    ok...Thanks

  10. #10

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Discussion: PHP 5 OOP

    I have checked all the links in that tutorial and none of them are broken. What is it that you are referring to?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  11. #11
    New Member
    Join Date
    Apr 2008
    Posts
    3

    Re: Discussion: PHP 5 OOP

    Hi,
    I'm referring to the "phpcodefiles.zip" that you can find at http://www.developer.com/lang/php/ar...0941_3604111_2
    and the "query.zip" that you can find using this URL: http://www.developer.com/lang/php/ar...0941_3605221_2

    Max

  12. #12

    Thread Starter
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Discussion: PHP 5 OOP

    Okay, I forgot the articles had been put on developer.com too. I'll give Brad a heads up on those broken links and see if he can find out what happened. In the mean time all the source code is available on this forum, as the article was first published here:

    http://www.vbforums.com/showthread.php?t=378700
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  13. #13
    ex-Administrator brad jones's Avatar
    Join Date
    Nov 2002
    Location
    Indianapolis
    Posts
    6,608

    Re: Discussion: PHP 5 OOP

    Quote Originally Posted by ubuMax
    Hi,
    I'm referring to the "phpcodefiles.zip" that you can find at http://www.developer.com/lang/php/ar...0941_3604111_2
    and the "query.zip" that you can find using this URL: http://www.developer.com/lang/php/ar...0941_3605221_2

    Max

    I've notified the editor on Developer.com so hopefully this will be fixed quickly.

    Brad!
    Have you given out your reputation points today? Select the Rate This Post link to give points for good posts!
    -------------------------------------------------------------
    Brad! Jones
    Lots of Software, LLC
    (I wrote: C Programming in One Hour a Day) (Dad Jokes Book) (Follow me on Twitter)

    --------------------------------------------------------------

  14. #14
    Addicted Member
    Join Date
    Feb 2006
    Location
    Hyderabad, India
    Posts
    233

    Re: Discussion: PHP 5 OOP

    One thing with regard to the escape_string function. Before using mysql_real_escape_string on the variable, it is necessary to check if magic_quotes_gpc is enabled. Otherwise we will be escaping the string twice.

  15. #15
    New Member
    Join Date
    Apr 2010
    Posts
    1

    Re: Discussion: PHP 5 OOP

    What IDE are you using for the PHP OOP example? Thank You signed RichLynn
    Last edited by RichLynn; Apr 8th, 2010 at 07:43 AM.

  16. #16

    Re: Discussion: PHP 5 OOP

    Hi Guys,should
    i am very new for PHP,I am currently learning PHP. So where should I go for learning PHP.

  17. #17
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Re: Discussion: PHP 5 OOP

    Wow... great tutorial..

    I always afraid the word "Interface" ... But this tut help me to understand... and its not that much techie to learn.... thanx

  18. #18
    New Member
    Join Date
    Feb 2012
    Location
    UK
    Posts
    1

    Re: Discussion: PHP 5 OOP

    I realise this is old news, but I only just joined, and saw that nobody had commented on this before..
    There's a typo that occurs in both code samples and text:
    "class SatgeMySqlB extends MySqlDB",
    "return new StageMySqlDB('example');",
    "The SatgeMySqlB, creates an instance of a Log file object .."
    The tutorial is very useful I've only tried a little PHP, and expect to do more..

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