How to run php file by double clicking on any folder such as html files in windows xp?

Is there any trick to run .PHP files in Windows XP from any folder by double clicking as an HTML file?

I use XAMPP, but in this we must put the files in a special folder htdocs. I want to run the file from any folder on the desktop by double-clicking.

+3
source share
3 answers

After much searching, I found an easy way to do this.

PHPScriptNet is a great portable app for anyone learning PHP. PHPScriptNet can run your PHP script anywhere on a Windows machine without installing PHP or any web server.

PHP script net

http://www.digitalcoding.com/free-software/webmaster-tools/PHPScriptNet-Portable-application-to-run-PHP-Script-from-windows.html

+3

HTML PHP:

HTML - , . , PATH HTML , .

PHP, , PHP (XAMPP, ), HTML- . PATH URL-, .


script, '/var/www/' http://localhost:8888/ '( ) . PHP script.

+1

PHP php.exe( Windows). PHP.

.php . , → → php.exe -f "%1" .php.

, "" PHP, - PHP , , , - PHP - -, .. -. , PHP - - , . , PHP , , , script .

PHP

0

Source: https://habr.com/ru/post/1707148/


All Articles