Re: Asking Sth about PHP

From: Date: Thu, 22 Feb 2001 22:33:48 +0000
Subject: Re: Asking Sth about PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-41225@lists.php.net to get a copy of this message
You can also use PHP for shell scripting - just add #!/path/to/php -q as the first line of your script. Note: You will still need to enclose all PHP scripting in <?php ... ?> tags. Here's an example: file: phpinfo.phpshell <? phpinfo() ?> The preceding information was returned by PHP info. [EOF] Then run the following on your command line: machine$ cd /path/to/phpinfo.phpshell machine$ ./phpinfo --Toby Michael Stearne wrote: > > You can run php from the command line as a standalone app. > > Compole PHP as a stand-alone CGI program (read the INSTALL file) and then > run it like: > > localhost$ /path/to/php -f myFile.php > > Or you can also run it withing a shell or perl script the same way (maybe > through a system() call in perl) > > Michael > > Ng Chun Chi wrote: > > > Dear Sir, > > I have two problems in using PHP. Could you help me? > > I am using Red-Hat to build up my System. > > Could I use Perl to control some PHP program? > > Also, could I run my PHP program in Linux Console? > > > > Sorry to disturb you > > THx! > > Mr Ng > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#41225) next »