Where is php exe file?

I'm currently developing a couple of plugins for Sublime Text 2 on OS X and I would like to make them cross platform, meaning I have to find out if and where php.exe is installed.

Right now I call /usr/bin/php in Python, which obviously works only on OS X and Linux:

phppath = '/usr/bin/php'
pluginpath = sublime.packages_path() + '/HtmlTidy/tidy.php'
retval = os.system( '%s "%s"' % ( phppath, scriptpath ) )

But on Windows, there seems to be no definitive default path for php.exe. The more I googled for it, the more possibilities showed up. So far I think I would have to check each of the following paths for existence:

c:\php\php.exe
c:\php5\php.exe
c:\windows\php.exe
c:\program files\php\php.exe
c:\wamp\bin\php\php5\php.exe
c:\xampp\php\php.exe

That's already quite a collection, but what I'm asking for is either a complete list covering all possibilities - or another way to figure it out that should be as robust as checking each possible path.

So if you have php.exe installed in some place other than these, please leave a comment with your path and I will add it to the list above.

Besides, there seems to be php.exe and php-cli.exe. I guess it would be OK to loop through each possible path. Check first for php-cli.exe, check for php.exe, and take the first match. Is that correct or is there a better practice?

The genuine php.exe file is a software component of PHP Thread Safe Command Line Interface by .
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994, the reference implementation of PHP (powered by the Zend Engine) is now produced by The PHP Group. PHP originally stood for Personal Home Page. The canonical PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge.

PHP stands for PHP Script Interpreter

The .exe extension on a filename indicates an executable file. Executable files may, in some cases, harm your computer. Therefore, please read below to decide for yourself whether the php.exe on your computer is a Trojan that you should remove, or whether it is a file belonging to the Windows operating system or to a trusted application.

Click to Run a Free Scan for php.exe related errors

Php.exe file information

Where is php exe file?
Php.exe process in Windows Task Manager

The process known as CLI or php0 belongs to software PHP php.exe or Wampserver64 by The PHP Group.

Description: Php.exe is not essential for the Windows OS and causes relatively few problems. Php.exe is located in a subfolder of the user's profile folder—common is C:\Users\USERNAME\AppData\Local\php7\. Known file sizes on Windows 10/8/7/XP are 28,739 bytes (57% of all occurrences) or 106,496 bytes.

Where is php exe file?
 
The program has a visible window. It is not a Windows system file. There is no file information. The application starts when Windows starts (see Registry key: Run, User Shell Folders). php.exe appears to be a compressed file. Therefore the technical security rating is 60% dangerous, however you should also read the user reviews.

Recommended: Identify php.exe related errors

  • If php.exe is located in a subfolder of "C:\Program Files", the security rating is 59% dangerous. The file size is 28,739 bytes (33% of all occurrences), 126,976 bytes or 58,880 bytes. There is no description of the program. It is not a Windows system file. The program is not visible.

    Uninstalling this variant: If problems with php.exe come up, you can do the following:
      1) uninstall the program using the Control Panel ⇒ Uninstall a Program ⇒ Wampserver64
      2) visit the vendor’s support site
      3) see if there is a newer version.

  • If php.exe is located in a subfolder of "C:\Program Files\Common Files", the security rating is 39% dangerous. The file size is 32,842 bytes (50% of all occurrences) or 32,821 bytes. The php.exe file is a file with no information about its developer. The file is not a Windows system file. The program has no visible window.

    Uninstalling this variant: If problems with php.exe come up, you can do the following:
      1) uninstall the program using the Control Panel ⇒ Uninstall a Program ⇒ CONNECT
      2) turn to the software company, SingleClickSystems, for advice.

  • If php.exe is located in a subfolder of Windows folder for temporary files, the security rating is 80% dangerous. The file size is 58,880 bytes.
  • If php.exe is located in the Windows folder for temporary files, the security rating is 76% dangerous. The file size is 65,024 bytes.

Important: Some malware camouflages itself as php.exe, particularly when located in the C:\Windows or C:\Windows\System32 folder. Therefore, you should check the php.exe process on your PC to see if it is a threat. We recommend Security Task Manager for verifying your computer's security. This was one of the Top Download Picks of The Washington Post and PC World.

Best practices for resolving php issues

A clean and tidy computer is the key requirement for avoiding problems with php. This means running a scan for malware, cleaning your hard drive using 1cleanmgr and 2sfc /scannow, 3uninstalling programs that you no longer need, checking for Autostart programs (using 4msconfig) and enabling Windows' 5Automatic Update. Always remember to perform periodic backups, or at least to set restore points.

Should you experience an actual problem, try to recall the last thing you did, or the last thing you installed before the problem appeared for the first time. Use the 6resmon command to identify the processes that are causing your problem. Even for serious problems, rather than reinstalling Windows, you are better off repairing of your installation or, for Windows 8 and later versions, executing the 7DISM.exe /Online /Cleanup-image /Restorehealth command. This allows you to repair the operating system without losing data.

To help you analyze the php.exe process on your computer, the following programs have proven to be helpful: ASecurity Task Manager displays all running Windows tasks, including embedded hidden processes, such as keyboard and browser monitoring or Autostart entries. A unique security risk rating indicates the likelihood of the process being potential spyware, malware or a Trojan. BMalwarebytes Anti-Malware detects and removes sleeping spyware, adware, Trojans, keyloggers, malware and trackers from your hard drive.

Other processes

unsignedthemes.exe folderfon_lub.dll asustpe.exe php.exe vzwuaagent.exe dsrlte.exe ytahelper.dll srtasks.exe sysmonitor.exe clmsserverpdvd13.exe mythemlerd.exe [all]

Where is my php exe file?

Php.exe is located in a subfolder of the user's profile folder —common is C:\Users\USERNAME\AppData\Local\php7\. Known file sizes on Windows 10/8/7/XP are 28,739 bytes (57% of all occurrences) or 106,496 bytes. The program has a visible window. It is not a Windows system file.

What is php exe file?

What is php.exe? php.exe is a legitimate file. It is also called PHP Thread Safe Command Line Interface and developed by the Php Group. Since it is very useful file for php developer and it is commonly stored in C:\Program Files\Common Files.

Where is php exe file in xampp?

On a Linux or Mac OS X system, this may be available as the file /usr/bin/php. If you've installed XAMPP, you can use the program /opt/lampp/bin/php on Linux, /Applications/xampp/xamppfiles/bin/php on Mac OS X, and C:\Program Files\xampp\php\php.exe on Windows.

Where is php exe in Wamp?

php full path to php.exe located under C:\wamp\...