Previous Thread
Next Thread
Print Thread
Rate Thread
joeuser #221758 07/29/2002 12:40 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
It is a hassle to use PHP for command-line programs, since it is originally meant for webscripts only, but they are working on making it easier. Since 4.2.0 it has been possible to compile a cli-version binary but it has been experimental. From 4.3.0 (development version) it is no longer experimental and is always built.

I have tried this CLI binary for 4.2.2 once or twice and it seems to work.

With this implicit_flush variable of php.ini is overridden so that nothing is buffered. The max execution time is set to infinite, html_errors is set to false and the $argc and $argv variables are set with the arguments sent to the program. In addition to this, STDIN, STDOUT and STDERR are always opened.

More information can be found here.

Sponsored Links
Entire Thread
Subject Posted By Posted
Console I/O Dave_L_dup1 07/27/2002 8:54 PM
Re: Console I/O Gardener 07/29/2002 8:40 PM
Re: Console I/O Dave_L_dup1 07/30/2002 11:40 PM
Re: Console I/O Gardener 07/31/2002 2:51 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1443
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)