/* * This file is part of the Symfony package. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\String; if (!\function_exists(u::class)) { function u(?string $string = ''): UnicodeString { return new UnicodeString($string ?? ''); } } if (!\function_exists(b::class)) { function b(?string $string = ''): ByteString { return new ByteString($string ?? ''); } } if (!\function_exists(s::class)) { /** * @return UnicodeString|ByteString */ function s(?string $string = ''): AbstractString { $string = $string ?? ''; return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string); } } How to install php in termux – OWASP Jakarta

How to install php in termux

 Php is a popular scripting language for web development; Php is easy to use and has a simple syntax. In this article, we will show you how to install PHP in termux

To install PHP in termux, follow the below steps carefully

1. Install Termux from F-Droid

2. Type the Below command to update the termux packages

pkg update && apk upgrade -y

3.  type the below command to install PHP

pkg install php

4. After successful installation, you can check the PHP version by typing 

php –version

php version

5. Install nano, a text editor for terminal

pkg install nano

 6. Now Create a file test.php using nano and execute

nano test.php

Using nano

Save the file by CTRL +X , Then execute it,

php test.php

php output

You will see the output. 

hope you guys learnt how to install and use PHP in termux. Also, read termux commands

[ad_2]




Categories: News

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *