Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 8881  / 2 Years ago, sun, july 17, 2022, 4:31:00

I'm using a latest Geany version from official repositories, same with a php5 package.
There is my question:




  • How to run PHP code from Geany directly in web browser instead of terminal?



I know, there are some options about what program needs to be runned (terminal, browser, and grep), but I have no idea where it is used.


More From » php

 Answers
0

After a year...



Fastest solution to run PHP code instantly is a custom build option:



php -S localhost:8080 -t "%p" -e & sensible-browser localhost:8080/"%f"



It will run a php process with internal server with root in the project directory, and run default browser on same port and file which build command was executed.


[#32390] Sunday, July 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imberst

Total Points: 370
Total Questions: 107
Total Answers: 123

Location: French Polynesia
Member since Tue, Jul 7, 2020
4 Years ago
imberst questions
;