php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20107 Good way to know if the php-script was started from shell or webserver.
Submitted: 2002-10-26 12:47 UTC Modified: 2002-10-26 12:59 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ragnar at lysator dot liu dot se Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.3 OS: Any
Private report: No CVE-ID: None
 [2002-10-26 12:47 UTC] ragnar at lysator dot liu dot se
I want a good way to know how the php-script was started, i.e. if it was started via shell or from a webserver.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-26 12:59 UTC] msopacua@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

There are many ways already (isset($_SERVER['REMOTE_ADDR'}) for one).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 13:00:02 2025 UTC