Menggunakan PHP di termux

Instalasi

pkg update -y
pkg upgrade -y
pkg install php curl wget git -y
Contoh Penggunaan PHP (CLI) pada termux

buat file php
<?php

parse_str(implode('&', array_slice($argv, 1)), $_GET);
?>
Usage/penggunaan
php -f namafile.php a=1 b[]=2 b[]=3

//output
//$_GET['a'] to '1' and $_GET['b'] to array('2', '3').

Comments

Popular posts from this blog

Install deb package via Termux

How to Make Blogger Safelink Converter v3

List of weapon buff materials, effects and how it can be durango wild lands