[thelist] [php] running scripts via command line

Aleem Bawany aleem.bawany at utoronto.ca
Mon Dec 9 23:53:04 CST 2002


> Kevin wrote:
>
> >Yea, at the commandline just run php myscript.php
> >
> nope - not under win2k, (as pointed out by  Stéphane Deschamps), you
> have to make a file association.

file association only if you want to call the script directly like so
c:\> myscript.php

if you are calling the PHP interpreter then you don't need any
associatins, just make sure it's in your path (Win -> Right click
MyComputer -> Properties -> Advanced -> Environment Variables -> Path
(edit) and at the end append   ;c:\phpfolder\php.exe

aleem

http://members.evolt.org/aleem/





More information about the thelist mailing list