Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2010, 02:49 PM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default Where is php.exe program ?

I am sorry about my english.

I want to know why I can call php.exe in cmd.exe program anywhere

Detail about that:

C:\Documents and Settings\Emlaconga Bebe>php.exe -v
PHP 5.3.2 (cli) (built: Mar 3 2010 20:36:54)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

C:\>php.exe -v
PHP 5.3.2 (cli) (built: Mar 3 2010 20:36:54)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

If I have a program, ex: myprogram.exe, how to I can run it anywhere as php.exe?

Againt... Sorry about my english.
 
Old April 18th, 2010, 03:17 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

From your command window, run
Code:
echo %PATH%
Take a look at the output, you should be able to find your PHP installation directory there.

Search online for something like "set windows environment variable", or grab a book on windows. You should be able to find out how to modify %PATH% (which is an environment variable) through control panel.

Say myprogram.exe is in c:\bar, you just need to make sure that at the end of your %PATH%, add
Code:
;c:\bar
The Following User Says Thank You to PeterPeiGuo For This Useful Post:
emlacongabebe (April 21st, 2010)
 
Old April 19th, 2010, 01:30 AM
Registered User
 
Join Date: Apr 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Your anwser is useful for me.
Thank you so much.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call other program (exe) in Pocket PC using vipvaishu Visual Basic 2005 Basics 0 May 25th, 2007 08:57 AM
How to run another .exe from my program shivendra C++ Programming 1 July 28th, 2006 04:56 AM
running another .exe from my program salhabb C++ Programming 1 January 18th, 2006 06:21 AM
Application popup: Program.exe not24 C# 2 March 22nd, 2005 01:06 PM
PHP5 and php.exe php-cgi.exe php-win.exe freddo Beginning PHP 1 August 16th, 2004 09:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.