Open HTML Content of PHP file in browser for Website Debug -




whenever have test design change on html page that's written within php file, have make effort of first uploading webpage , viewing through browser. normally, if html file, you'd update browser , see changes locally. of course, it's not possible execute php on browser unless use xampp or whatever, consider simple debug. isn't there way open php file html, ignoring php code debugging purposes? if not, i'll xampp. in advance.

php has built-in webserver, can utilize guess.

php -s localhost:8080 

if script not require http stack (which doubt), do:

php index.php > index.html 

update:

after executed command above (php -s), type same url in browsers address bar.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -