~ /. Bashrc configuration alias command Alias can you count the number of entries?

nano ~/.bashrc

I use this to build Alias

for example

alias testserver="php /Applications/apache/testserver.php"

which php file will be executed in this way
, but suppose I want to give a reference to php?
is assumed to be "testserver abc"
so that I can input parameters to testserver.php and be caught by php? Is this possible?

Mar.01,2021

just take parameters directly. Note that you need to leave a space after alias. As follows

alias testserver='php /Applications/apache/testserver.php '
testserver abc

just take parameters directly:

php myfile.php abc

// :
if (count($argv) == 0) exit;
foreach ($argv as $arg)
    echo $arg; // 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36d15-2b7bf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36d15-2b7bf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?