How to install PHP in Android using Termux



What is PHP ? 

PHP is a server-side scripting language designed for Web development, but also used as ageneral-purpose programming language. It was originally created by Rasmus Lerdorf in 1994, the PHP reference implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.

How to install PHP in Android :


Open termux app and type following commands to install php in android phone.
$ pkg update
$ pkg install php
it will install the latest version of php in your phone.

How to run php in Termux :


Write a php script and run php code in termux.
<?php 
  echo "Hello, world!";
?>
To run php code type following command :

$ php hello.php
Hello, world!
$
Now you can run any php code in your android phone.

Comments

  1. To run an external (third party, copied) "WORKING" php script :


    First save your (executable) script.php in /storage/
    example : in /storage/emulated/0/Documents/...FULL...PATH.../
    (and other files.txt used by the script, if necessary)


    Then in Termux App,
    >
    cd /storage/emulated/0/Documents/...FULL...PATH.../
    >
    php script.php


    BUT ... before,
    "It is necessary to grant storage permission for Termux on [your device with] Android 6 and higher.
    Use 'Settings>Apps>Termux>Permissions>Storage' and set to true."

    ReplyDelete
    Replies
    1. Thank you so much. This way is still working nowadays. Upvote

      Delete
  2. my termux sais "php" has no installation candidate

    ReplyDelete
  3. Please help! It's showing "E: Unable to locate package php"

    ReplyDelete
    Replies
    1. è necessário instalar o pacote em PHP no termux https://parzibyte.me/blog/en/2019/04/28/install-apache-php-7-android-termux/

      Delete
    2. U must write first command in console: pkg update
      pkg install php

      Delete
  4. SSN FULLZ AVAILABLE

    Fresh & valid spammed USA SSN+Dob Leads with DL available in bulk.

    >>1$ each SSN+DOB
    >>3$ each with SSN+DOB+DL
    >>5$ each for premium fullz (700+ credit score with replacement guarantee)

    Prices are negotiable in bulk order
    Serious buyer contact me no time wasters please
    Bulk order will be preferable

    CONTACT
    Telegram > @leadsupplier
    ICQ > 752822040
    Email > leads.sellers1212@gmail.com

    OTHER STUFF YOU CAN GET

    SSN+DOB Fullz
    CC's with CVV's (vbv & non-vbv)
    USA Photo ID'S (Front & back)

    All type of tutorials available
    (Carding, spamming, hacking, scam page, Cash outs, dumps cash outs)

    SMTP Linux Root
    DUMPS with pins track 1 and 2
    WU & Bank transfers
    Socks, rdp's, vpn
    Php mailer
    Sql injector
    Bitcoin cracker
    Server I.P's
    HQ Emails with passwords
    All types of tools & tutorials.. & much more

    Looking for long term business
    For trust full vendor, feel free to contact

    CONTACT
    Telegram > @leadsupplier
    ICQ > 752822040
    Email > leads.sellers1212@gmail.com

    ReplyDelete
  5. Mind-blowing writeup! Hiring with physical research via google or other search engines was not effective for me. Then, one of my friends advised me to hire via portals, and I got Eiliana.com, luckily.
    I chose to Hire flutter developer from here, and I am quite happy with my decision.

    ReplyDelete

Post a Comment