#!/usr/bin/php -q <?php ... ?>
Is PHP as powerful as perl on the console area yet?
//Simon
John A. Thomason wrote:
Thanks for your help. Also, I checked out your tutorial and Apache and PHP. I have Apache installed, and I am using it for backend work. I have been using Perl, but have discovered PHP, and want to be able to use it on the command line. Another email told me the solution. Replace the shebang line with <?PHP and end the script with ?> And that is how simple the fix was, and now I am going to rewrite all of my batch files and perl scripts using PHP. I do need a little more understanding of Apache and will be studying your Apache tutorial. Thanks again.
John A. Thomason [EMAIL PROTECTED]
----- Original Message ----- From: "Burhan Khalid" <[EMAIL PROTECTED]>
To: "John A. Thomason" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, July 13, 2003 8:08 AM
Subject: Re: [PHP] Need PHP on Win2000 Pro
On Saturday, July 12, 2003, 10:31:14 PM, John wrote:
JAT> Hello,
JAT> I need some advice on getting PHP 4 up and running on my Windows 2000 JAT> Professional. I have followed all of the instructions in the
installation
JAT> file, but when I try to run a PHP as a batch from the command prompt,
all I
JAT> get is the file listed. Help!
You need a web server in order to run the scripts (unless you are strictly doing it command line).
I have a tutorial that shows you how to setup Apache with PHP on Windows (its not OS specific, but it can be applied to any Windows version).
Here is the link <http://www.meidomus.com/archives/000059.php>
Please read the use comments, and if you have any questions, you can email me off-list :)
-- Regards, Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php