How to run php file in visual studio code, How to make php build task in visual studio code problem solved,how to run php code in visual studio code or vscode configure file,

This code for tasks.json inside configure data copy and paste into visual studio code.
———————————–
{

“version”: “0.1.0”,

“command”: “chrome”,

“windows”: {

“command”: “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”

},

“args”: [“localhost\${workspaceRootFolderName}\${fileBasename}”]

}

—————————

Another thing you need visual studio code showing error like php validate. need to add below code
in user settings.
————————————
1. file – preferences – settings
2. right side display the user setting add this code. Thank You.. ! Like & Commet .

“php.validate.executablePath”: “C:\xampp\php\php.exe”

——————————–
Please subscribe channel …. Thank You !

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-php/

20 Comments

Darren

May 10, 2020

How it's done in linux?

Reply

Ibrahima DIALLO

May 10, 2020

It doesn't work with my PC.

Reply

Abhijit Biswas

May 10, 2020

Hi! after doing this directory list showing here. Please, give me the solution. Thanks.

Reply

Ayokunle Samuel

May 10, 2020

If it were a MacBook how would I do this

Reply

Rathernot Disclose

May 10, 2020

how do we find out what version in the future?

Reply

JEPS VLOG

May 10, 2020

Please Help.
i follow all the steps but still i get this error.

[Running] php "c:xampphtdocsphpdemo.vscodeindex.php"

'php' is not recognized as an internal or external command,

operable program or batch file.

[Done] exited with code=1 in 0.04 seconds

Reply

Cloudy Silver

May 10, 2020

Indian YouTubers can't even afford to buy a good microphone.

Reply

yaser elkasseh

May 10, 2020

In 2019 its very helpful …tons of thanks 🙏 👍 🙏

Reply

Zainab AlBanaa

May 10, 2020

Thanks

Reply

Juan Ardila

May 10, 2020

you're the best!! Thanks bro

Reply

F L I T Z

May 10, 2020

guys just do this before watching the video
click:
"shift" + ">"

it will change he speed to 1.5x
or do it manually.
thank me later

Reply

Maha Prachar

May 10, 2020

When I press ctr+shift+b it asks me every time to select build task and shows firefox url… it runs only if I click on that path. Is there anyway to run build task directly without prompting?

Reply

JrMajor

May 10, 2020

How writing the settings so as to files would can be run from under the directories( Inside the parent directory) ??? and main how synchronize changing in PHP file in chrome browser??? (if livereload dont work and liveServer running PHP file on the another url!!!!)

Reply

JrMajor

May 10, 2020

PLEASE could you possibly make a video how run PHP file in browser Chrome (the same port what in server 9001) rather 5000 in which working VScode

Reply

JrMajor

May 10, 2020

Thanks a lot for your job!!!!! it goes without saying!!!! BUT
Its VSCode …. nothing dont work( 1-livereload 2-php )

Reply

Ahmed Mohamedeen

May 10, 2020

I guess its ctrl+shift+b now

Reply

Sundara S. Yerrapragada

May 10, 2020

Please eat well …thanks for the video.

Reply

Heinz Harald

May 10, 2020

Thank you for your video! That helped me a lot.

Reply

Lee Ho'Gin

May 10, 2020

What if I need to go through sub folders to get to my PHP file? For example RootFolder/Admin/PHPFile.

Reply

James Yi

May 10, 2020

Mine is localhost:85

Reply

Leave a Reply