Где php exe в xampp
Перейти к содержимому

Где php exe в xampp

  • автор:

Apache Friends Support Forum

hello, I have an existing installation of xampp for windows and i want to try out zend framework. IT seems send requires php.exe to automatically create its directory structure. However this file seems to be missing. I did a windows search under my xampp folder and came up with nothing?

While googleing, it obvious that people are using zend with xampp. What am i missing?

shaded2 Posts: 2 Joined: 28. October 2009 14:29

Re: where is php.exe

by Wiedmann » 28. October 2009 17:44

I have an existing installation of xampp

Which XAMPP?
Wiedmann AF Moderator Posts: 17102 Joined: 01. February 2004 12:38 Location: Stuttgart / Germany

Re: where is php.exe

by shaded2 » 29. October 2009 13:36

###### ApacheFriends XAMPP (Basispaket) version 1.7.0 ######
shaded2 Posts: 2 Joined: 28. October 2009 14:29

Re: where is php.exe

by Izzy » 01. November 2009 02:34

php.exe is in the \xampp\php folder but if you have Hide extensions for known files types ticked in the Folder Options under the View tab in the Windows Control Panel then you will not see the exe file extension part — best solution is to un-tick this option then search again and whilst you are at there un-tick the setting Do not show hidden files and folders .

In the php.ini file found in the \xampp\apache\bin folder find this section Code: Select all [Zend]
zend_extension_ts = «C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll»
zend_extension_manager.optimizer_ts = «C:\xampp\php\zendOptimizer\lib\Optimizer»
zend_optimizer.enable_loader = 0
zend_optimizer.optimization_level=15
;zend_optimizer.license_path =
; Local Variables:
; tab-width: 4
; End: Change the line:
zend_optimizer.enable_loader = 0
to
zend_optimizer.enable_loader = 1

Save the file and restart Apache, but first make a Copy of php.ini file so if that fails to work or Apache won’t start after editing then simply revert to your saved copy.

Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

forked from scribu/wp-phptidy

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php.exe does not exist in xampp file #37

msohail313 opened this issue Mar 26, 2020 · 0 comments

php.exe does not exist in xampp file #37

msohail313 opened this issue Mar 26, 2020 · 0 comments

Comments

msohail313 commented Mar 26, 2020 •

I have installed the xampp and inside that I am not able to find the php.exe file. Please suggest me what I do? I am looking for php.exe file so that to solve this issue appearing on visual studio editor to run index.php file (cannot validate since on PHP executable is set.).
I am using window10.

The text was updated successfully, but these errors were encountered:

How to set up PHP executable path in VSCode (XAMPP user’s)

Did you find this message when creating a PHP file in VSCode?

Cannot validate since no PHP executable is set. Use the setting ‘php.validate.executablePath’ to configure the PHP executable.

1. First of all

Open settings.json and paste this line «php.validate.executablePath»: «your_unit:/xampp/php/php.exe» , paste this in the last line of your settings.json.
Ok, the annoying message does not pop up anymore, and now?.

That’s all

not kidding really�� but. we want to debug PHP also in VSCode right?.

2. CRTL+SHIFT+P

type ext install PHP Debug and install the first match. Run XAMPP server, create a php file like test.php with phpinfo(); open it in your browser localhost/test.php copy the HTML source (what you see) and paste it into here: xdebug.org/wizard now hit analise my phpinfo() output.
Follow the instruction and download the .dll file, install it in the folder your_unit:\xampp\php\ext .

Learning MySQL by Saied M.M. Tahaghoghi, Hugh E. Williams

Get full access to Learning MySQL and 60K+ other titles, with a free 10-day trial of O’Reilly.

There are also live events, courses curated by job role, and more.

Using PHP for Command-Line Scripts

PHP scripts don’t need to be run from a web server—although that’s how the majority of PHP scripts are deployed. In this section, we’ll briefly look at how you can run PHP scripts from the command line. This allows you to query the MySQL server from the command line to generate reports and to import or export data.

Consider Example 14-5, which simply says “ Hello, world! ” .

Example 14-5. A PHP script to say hello

Type this in an editor and save it to a file called hello.cl.php.

You can run PHP scripts from the shell prompt or command window by running the PHP executable and passing the name of the script to it:

$ php hello.cl.php Hello, world

If the operating system can’t find the php executable, you’ll need to specify the full path to the file. 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.

You can also have the operating system call the PHP program automatically when you run a PHP script from the command line. To do this on a Linux or Mac OS X system, you need to add this line to the top of each script to specify the PHP program to use:

#!path_to_the_php_executable

For example, you could specify the /usr/bin/php program in the hello.cl.pl script as follows:

#!/usr/bin/php

Get Learning MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *