|
Posted by d on 01/12/06 12:26
"julian_m" <julianmaisano@gmail.com> wrote in message
news:1137055287.901806.281100@g49g2000cwa.googlegroups.com...
> I'm just need to excec a few php scripts that mainly do admin job over
> files, like create folders, rename files, backup them, ....
>
> Is there any way to run the scripts as if they were a sort of ".bat"
> files?
>
> regards - jm
>
If you're on windows, make a small batch file that takes a script as an
argument, and passes it to your PHP executable (also pointing out to it
where your php.ini is, if needed). Then, in Windows, associate an extension
(I do .xphp) with that batch file. Now, when you run a .xphp file (from the
gui or command line) it acts exactly like a batch file, but is executing
PHP. I use this all the time, and it works really well.
[Back to original message]
|