Page 1 of 1

How to run php script without the help of xampp or wamp...

Posted: Tue Sep 15, 2009 1:33 am
by phphunger
Hi,

As i want to run my php script from command line tool. For example in java, after installation of jdk we need to set the path in the environment variable. So like that in php how to do that? can any one help in this regard?

Thanks & Regards,
phphunger.

Re: How to run php script without the help of xampp or wamp...

Posted: Tue Sep 15, 2009 2:33 am
by John Cartwright
Choose your weapon - PHP Command Line Interface

Re: How to run php script without the help of xampp or wamp...

Posted: Tue Sep 15, 2009 4:05 am
by Ollie Saunders
PHP builds with the CLI interface by default you should just be able to run php -r 'echo "Hello, world!";' no problem as long as it's installed right.