What is PHP really for

Discussion in 'Off-Topic' started by Tester_master, Nov 25, 2016.

  1. Tester_master

    Tester_master Silverfish

    Messages:
    20
    What is PHP really used for not talking about forum pocketmine or any of that although what it was really made for I know it's a scripting language although I don't know what it means by that
    <?php
     
  2. Ad5001

    Ad5001 Silverfish

    Messages:
    16
    GitHub:
    ad5001
    I might not be the best one to answer you but:
    PHP is by it's origins a Web scripting language processed server side (when you make a request to a website, the server where the website is located will process all the PHP code then output the content to the user).
    That's what PHP was meant to do.
    After a while, the PHP devs added a way to do OOP (Object Oriented Programming) and Phars (php archives). After that, some developers, like shogicp, the founder of Pocketmine, choosed PHP to create server side apps (your MCPE server's plugins are processed server side).
    The issue with PHP is that it's reeeaaaallly slow compared to other languages such as Java (Bukkit) or C# (MiNET).
    PocketMine plugin developers such as me or most of the people on those forums are using PHP to create plugins hich afects behaviors of the game.
    If you have any further questions, you can ask me.
     
  3. HimbeersaftLP

    HimbeersaftLP Chicken

    Messages:
    1,840
    GitHub:
    HimbeersaftLP
    At least it isn't as RAM consuming as Java...
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,916
    GitHub:
    sof3
    <?php means that the code after that is PHP code. If you don't put them there, it will just consider it as a normal HTML document and output it directly.
     
  5. Tester_master

    Tester_master Silverfish

    Messages:
    20
    I mean PHP not <?php
     
  6. Primus

    Primus Zombie

    Messages:
    327
    I read somewhere that it was planned to be a template language (correct my sentence) but didn't went that way.
     
  7. archie426

    archie426 Baby Zombie

    Messages:
    127
    GitHub:
    archie426
    PHP is like JS in the way that it is dynamic. However, they are both different (syntax, functions). PHP is like Java and JavaScript into one. It can be used on web server AND on local
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,916
    GitHub:
    sof3
  9. Tester_master

    Tester_master Silverfish

    Messages:
    20
    Java is used for software and other languages I never seen a game use PHP Internet or software
     
  10. archie426

    archie426 Baby Zombie

    Messages:
    127
    GitHub:
    archie426
    I mean the way that you can have it LOCAL. Like I said....
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.