MSN Framework Bot

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
Bart
Forum Newbie
Posts: 9
Joined: Sat May 04, 2002 12:12 pm
Location: Ontario Canada

MSN Framework Bot

Post by Bart »

I saw the bot, I know how to use PHP (And pretty good) but one thing I have never done is run a PHP file through Command line, how can I do this?
rats
Forum Newbie
Posts: 21
Joined: Fri May 31, 2002 5:55 am

Post by rats »

http://gtk.php.net/
This has the install for the commandline php.
Bart
Forum Newbie
Posts: 9
Joined: Sat May 04, 2002 12:12 pm
Location: Ontario Canada

Post by Bart »

...I recently got a free shell and I know it's possible to run PHP scripts off it, can anyone guide me in doing this?
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post by EvilWalrus »

i think you people are confused about how to run php via commandline... if you're on windows, just make a batch file with the following contents:


"C:\Your\Location\To\php-cli.exe" -f script.exe
pause


or...

if you're on *nix, just type 'php -f script.php' to run it...
Post Reply