+ 1

how to see the endproduct off an php script on my pc

i learn something about php here and wanna try it on pc but the problem ist when im type in the basic construction of the html doc and script in the body: <?php echo "test"; ?> i dont see anything when im open it in my chorme browser

29th May 2017, 9:06 PM
UniformCavex
UniformCavex - avatar
4 Respostas
+ 7
Yes it will not be visible on your crome browser because your browser can only interprete HTML file, (.htm, .html) Another reason ( major) is that you have not installed a local server on your system that will help you interprete PHP files (.php) to and output the result by your browser. Solution 1 , continue to use SL server as your testing server. Solution 2 : Install a WAMP server e.g Uniserver, XAAMP, WAMP server etc(use google to understand any of these server and how to install it locally) so as to be able to execute php files directly from your computer.
29th May 2017, 9:16 PM
Awele Omeligwe
Awele Omeligwe - avatar
+ 2
You have to install a local server in order to do that. You can do it downloading Wamp for windows and xamp for linux.
29th May 2017, 9:10 PM
Madera Oxidada
Madera Oxidada - avatar
+ 1
ah okay man thank you for this quickly answser👌
29th May 2017, 9:13 PM
UniformCavex
UniformCavex - avatar
+ 1
no probs
29th May 2017, 9:13 PM
Madera Oxidada
Madera Oxidada - avatar