php without a server

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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"

regards - jm

Re: php without a server

On Thu, 12 Jan 2006 00:41:27 -0800, julian_m wrote:

Quoted text here. Click to load it

Yes. There is a command line version ( well certainly for *nix, probably
for windows ) which will allow you to do just that.

I've taken to writing my 3 liners in php and moved away from other
scripting languages, as there's one less language to remember. And some of
them get really annoying when things like the use of a $ change between

My $0.02,


Re: php without a server

Hash: SHA1

julian_m wrote:

Quoted text here. Click to load it


- --  
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.5.0, and PHP
5.1.1-1 generating this signature.
Uptime: 10:13:19 up 14:43,  1 user,  load average: 0.88, 0.41, 0.27

Version: GnuPG v1.4.2 (GNU/Linux)


Re: php without a server

Quoted text here. Click to load it

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.  

Site Timeline