ping

ping checks HTTP reachability from the current PHP hosting environment, including status, final URL, resolved addresses, response time and optional TLS diagnostics.

NetworkVersion 1.2.7Stable
lil-terminal

Overview

Use ping for the question “can this hosting account reach the web endpoint?” It does not use ICMP: the check follows the same HTTP path that a PHP application can use.

This is an HTTP check, not ICMP ping

-i exposes resolved addresses, -4 and -6 isolate address-family problems, and -t adds timing and the final URL. -k is only a trust diagnostic: success with it shows reachability, not a valid certificate.

Syntax

lil-terminal
ping <host|url|me> [options]

Reference

ping me

use the current host

ping example.com

show the HTTP status code

ping https://example.com -k

check HTTPS without verifying the TLS certificate (diagnostics)

-f

show the final HTTP response headers

-i

show resolved IPv4 and IPv6 addresses

-t

show HTTP status, final URL and response time

-4

force the HTTP request over IPv4 when cURL is available

-6

force the HTTP request over IPv6 when cURL is available

-k

disable TLS certificate verification for an explicit HTTPS diagnostic

Current host

ping me is the single special form for the host serving the current lil-terminal request. Any other target is interpreted as a normal host name, IP address or HTTP/HTTPS URL.

Diagnostics

-4 and -6 are useful on dual-stack hosting when one address family is broken but the other still works. They require cURL because PHP streams cannot reliably force the address family. -k is deliberately narrow: it helps distinguish TLS trust failures from basic HTTPS reachability, but a successful result with -k does not mean the certificate is valid or safe.

Predictable DNS inspection

ping -i respects IPv4/IPv6 selection and works without cURL; unsupported URL schemes are rejected.

Interactive sandbox preview

Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.

Check the current host and response time

Install and manage

Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.

Base and Minimum are two packages of the same current module release, not separate command versions.

Base package

Install the complete package with local command reference and every published mode.

install ping
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install ping -m
Exact public version

Install exactly this published version.

install ping -v 1.2.7
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade ping
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install ping -u

Examples

Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.

Check the current host and response time
ping example.test
Offline training example — no live HTTP, mail or TLS request
200
Show HTTP status, final URL and response time
ping example.test -t
Offline training example — no live HTTP, mail or TLS request
HTTP:		200
Time:		14.8 ms
URL:		https://example.test/
Show the final HTTP response headers
ping example.test -f
Offline training example — no live HTTP, mail or TLS request
HTTP/2 200
content-type: text/html; charset=UTF-8
cache-control: max-age=60
Show resolved IPv4 and IPv6 addresses
ping example.test -i
Offline training example — no live HTTP, mail or TLS request
Host:		example.test
IPv4:		192.0.2.80
IPv6:		2001:db8::80
Show resolved IPv4 and IPv6 addresses
ping example.test -i -4
Offline training example — no live HTTP, mail or TLS request
Host:		example.test
IPv4:		192.0.2.80
IPv6:		-
Show resolved IPv4 and IPv6 addresses
ping example.test -i -6
Offline training example — no live HTTP, mail or TLS request
Host:		example.test
IPv4:		-
IPv6:		2001:db8::80
Show resolved IPv4 and IPv6 addresses
ping 192.0.2.80 -i
Offline training example — no live HTTP, mail or TLS request
Host:		192.0.2.80
IPv4:		192.0.2.80
IPv6:		-
PTR:		-
Reject an invalid host
ping https://example.test/health
Offline training example — no live HTTP, mail or TLS request
200
Show HTTP status, final URL and response time
ping https://example.test/health -t
Offline training example — no live HTTP, mail or TLS request
HTTP:		200
Time:		14.8 ms
URL:		https://example.test/health
Disable TLS certificate verification for an explicit HTTPS diagnostic
ping https://example.test -k
Offline training example — no live HTTP, mail or TLS request
200
Force the HTTP request over IPv4 when cURL is available
ping example.test -4
Offline training example — no live HTTP, mail or TLS request
200
Force the HTTP request over IPv6 when cURL is available
ping example.test -6
Offline training example — no live HTTP, mail or TLS request
200
Use the current host
ping me
Offline training example — no live HTTP, mail or TLS request
200

ping me takes the host from the current HTTP request, so you can test the site that is actually serving this terminal without retyping its domain.

Show HTTP status, final URL and response time
ping me -t
Offline training example — no live HTTP, mail or TLS request
HTTP:		200
Time:		14.8 ms
URL:		https://example.test/
Show the HTTP status code
ping example.test -4 -6
Offline training example — no live HTTP, mail or TLS request
Choose either IPv4 or IPv6
Show the HTTP status code
ping example.test -z
Offline training example — no live HTTP, mail or TLS request
?
Ping · 17
ping "bad host"
Offline training example — no live HTTP, mail or TLS request
Invalid host
Ping · test
ping ftp://example.test
Offline training example — no live HTTP, mail or TLS request
Invalid host
Ping · 19
ping nonexistent.invalid
Offline training example — no live HTTP, mail or TLS request
Host not found
Ping · 20
ping
Offline training example — no live HTTP, mail or TLS request
?
Show the HTTP status code
ping example.test unexpected
Offline training example — no live HTTP, mail or TLS request
?
Show resolved IPv4 and IPv6 addresses
ping https://example.test -i -k
Offline training example — no live HTTP, mail or TLS request
Host:		example.test
IPv4:		192.0.2.80
IPv6:		2001:db8::80
Show resolved IPv4 and IPv6 addresses
ping 192.0.2.80 -i -6
Offline training example — no live HTTP, mail or TLS request
Host:		192.0.2.80
IPv4:		-
IPv6:		-
PTR:		-
Show resolved IPv4 and IPv6 addresses
ping example.test -i -4 -6
Offline training example — no live HTTP, mail or TLS request
Choose either IPv4 or IPv6

Related documentation

Current public release

v1.2.72026-10-31

Documented HTTPS diagnostic flag

Adds the already supported ping -k TLS diagnostic to built-in Help.