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.
How to run php script without the help of xampp or wamp...
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: How to run php script without the help of xampp or wamp...
Choose your weapon - PHP Command Line Interface
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Re: How to run php script without the help of xampp or wamp...
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.