Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

how to run php file from command line in linux code example

Example 1: php run command line

shell_exec('ls');
// or
exec('ls');

Example 2: php run command terminal

php -r "Print \"Hello, World!\";"

Tags:

Php Example

Related

install .deb terminal code example get post id dynamicaly wordpress code example Unexpected end of JSON input while parsing near '...OZi/Ie1yCDdzX4qqS+/1G' code example delete user UNIX code example form box css code example find duplicates based on specific columns pandas code example check if word is in string python code example how to get query params react router code example measure python execution time code example string to double code example add entry in host file code example update formgroup value angular with json code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy