1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

What is PHP really for

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

  1. Tester_master

    Tester_master Silverfish

    Messages:
    19
    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 Fish

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

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    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:
    19
    I mean PHP not <?php
     
  6. Primus

    Primus Zombie Pigman

    Messages:
    749
    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:
    130
    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,968
    GitHub:
    sof3
  9. Tester_master

    Tester_master Silverfish

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

    archie426 Baby Zombie

    Messages:
    130
    GitHub:
    archie426
    I mean the way that you can have it LOCAL. Like I said....
     
  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.