Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website
Menu Close

web server

  1. Home>
  2. Blog>
  3. web server>
Read more about the article Determine PHP script Invocation: CLI or by the Web Server
Credits

Determine PHP script Invocation: CLI or by the Web Server

  • Post author:Christos Pontikis
  • Post published:September 13, 2013
  • Post category:Web Development
  • Reading time:2 mins read

In most cases you can distinguish if a PHP script was invoked from the command line (or Cron) or by the web server, using php_sapi_name(). php_sapi_name() will return cli on…

Continue ReadingDetermine PHP script Invocation: CLI or by the Web Server

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!


Say Hello to Gutenberg with my new Free WordPress Plugin Boilerplate for Developers!

Star it on Github!


  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2025
Close Menu