472,351 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

How to run a php script in command line

190 100+
Hi all,

I want to install the horde mail server and am using xampp.

See this


In this installation instruction tells to run the php script in command line, i do not know how to any one can reply?.

To run in command line.

"C:\xampp\php\php.exe C:\xampp\htdocs\horde\scripts\setup.php"
Mar 6 '09 #1
6 17620
6,050 Expert 4TB
Open your command line by going to Run -> then type 'cmd' and hit enter. It'll bring up the terminal.
Mar 6 '09 #2
190 100+
HI ,

Could explain little bit, because am tried with that one but not get succeed,untitled.jpg

only shows its not a external or internal command.

also tried with some php commanda, pls explain how to run...
Mar 7 '09 #3
3,503 Expert Mod 2GB
First, that image is WAY too small for even me with my great eye-sight, to read. Second, if you are getting that error, I would say that the php.exe program is not installed. You need to check that it exists.

Also, next time, please post the actual error(s) and the command line that you used.


Mar 7 '09 #4
190 100+
Hi ,

Yes i have php.exe in my xampp/php folder.

I have the xampp in D:/Program Files/Xampp

and i run the command as below


c: / D:/Program files/xampp/php/exe D:/Program files/xampp/horde/scripts/setup.php
also tried with back slashes

c: / D:\Program files\xampp\php\exe D:\Program files\xampp\horde\scripts\setup.php

but only i got 'D:\Program' is not recognized as an internal or external command,operable program or batch file

and do not know why my attachment looking so small even i have modifed width into 1024 px

See here

Mar 7 '09 #5
190 100+
Hi Guys,

Finally i got, what am missing is "", i must run likw

c:/ "D:/program files/xampp/php/php.exe" "D:/program files/xampp/htdocs/scripts/setup.php"

Thanks for supprting...

May above one is will use some one like me
Mar 7 '09 #6
3,503 Expert Mod 2GB
If you are running windowsXP, then it does support tab-complete on the command line. This is where you would type: d:\Prog and then hit the tab key. You would then see that "Program Files" is enclosed in double quotes. This is the way you have to execute a program that has directories in its path that have spaces in them. If you put the php.exe program in say c:\test\php.exe you wouldn't have needed the double quotes.

Ok, Windows command line lesson done.


Mar 7 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

by: deko | last post by:
In regard to running php scripts with cron - Here is a sample script: <?php //debug.php echo "<br> This is a test"; ?> I can call...
by: James Pittman | last post by:
Hi, I have a PHP script running in a Cron job in Unix, using the "php" command-line command executable. How do I get the path to the script,...
by: Matt | last post by:
I used to execute a command line script in IIS 4 using Dynuexec. This is a third part server object I installed on the server...
by: comp.lang.tcl | last post by:
The TCL command I am using will do a command-line action on a PHP script: set cannotRunPHP I have to do it this way as both the TCL script...
by: sir.linying | last post by:
My php script is to call perl scipt which makes use of Spreadsheet::ParseExcel module to parse Excel file. I am able to launch php script from...
by: Ohmster | last post by:
I am trying to use this cool script that some MIT guy wrote and it just does not work, I get a stream of errors when I try to run it. It is...
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the...
by: jonathan184 | last post by:
Hi I have a perl script, basically what it is suppose to do is check a folder with files. Now the files are checked using a timestamp with the...
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to...
by: mott3510 | last post by:
I wrote a python script and I have copied my file (verification.py) into my http directory. However, when I try to run the script I get many...
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.