473,847 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to run a php script in command line

190 New Member
Hi all,

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

See this

http://www.hmailserver.com/forum/vie...p?f=12&t=13860

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\p hp.exe C:\xampp\htdocs \horde\scripts\ setup.php"
Mar 6 '09 #1
6 17713
Markus
6,050 Recognized Expert Expert
Open your command line by going to Run -> then type 'cmd' and hit enter. It'll bring up the terminal.
Mar 6 '09 #2
maheswaran
190 New Member
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
numberwhun
3,509 Recognized Expert Moderator Specialist
@maheswaran
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.

Regards,

Jeff
Mar 7 '09 #4
maheswaran
190 New Member
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:/

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\hor de\scripts\setu p.php

but only i got 'D:\Program' is not recognized as an internal or external command,operabl e 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
maheswaran
190 New Member
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
numberwhun
3,509 Recognized Expert Moderator Specialist
@maheswaran
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.

Regards,

Jeff
Mar 7 '09 #7

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

Similar topics

5
9208
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 debug.php from a web page on my site like this:
2
1666
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, from within the script? I've tried all the $_SERVER variables to no avail. Jamie
1
8923
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 (http://www.dynu.com/dynuexec.asp). I installed this object onto my Windows 2003 Server and I cannot run the script from an ASP. No error is generated on the screen or in the event log. I think this has something to do with IIS not being able to access cmd.exe from IIS or maybe with COM permissions? Not sure though....
17
7934
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 and the PHP script run as CLI. However, "info.php" requires user input to run; this causes the TCL script calling the PHP script to hose up and die. Is there a way I can do this so that the TCL script can call the PHP
3
4141
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 command line so that perl script can run and properly parse Excel file. However, when I put php script on server side and then launch php through client request, perl program can't run. Anyone has any suggestion re how to fix this problem? Thanks a lot, -Ying
10
4376
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 supposed to visit a URL and snag all of the pictures on the site. Here is the script: http://web.mit.edu/pgbovine/www/image-harvester/image-harvester.py Here is my output when I try to run it on my Fedora 6 machine: $ image-harvester.py http://public.fotki.com/DaGennelman/
51
4189
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 how to know whether the script is running under Command Prompt or Browser or some other application? Ojas.
4
2537
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 command ls -l so the timestamp in this format is checked. Now what the script does is it checks the time stamp and creates a year folder if it does not exist and then creates a month folder if it does not exist and puts the respective files in the month folders. If the files are created this month then it...
1
47511
KevinADC
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 download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
6
31205
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 errors... .. : No such file or directoryline 1: #!/usr/bin/python : command not foundect.py: line 3: ./Verification_Project.py: line 4: from: command not found : command not foundect.py: line 5: ./Verification_Project.py: line 6: from: command not found import: unable to open X server `'. import:...
0
10982
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10645
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10706
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9480
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5718
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5909
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4116
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3160
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.