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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phphunger
Forum Commoner
Posts: 45
Joined: Tue Aug 11, 2009 11:56 pm

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

Post 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.
User avatar
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...

Post by John Cartwright »

Choose your weapon - PHP Command Line Interface
User avatar
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...

Post 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.
Post Reply