We can run php program by using command prompt too. But there are some differences if we are using XAMP beside cmd. In cmd, html codes can't be identified, so just don't use html syntax if you are gonna use cmd for compiling your php program. Okieee... let's just use pure php style as shown below :
Save above code, then open command prompt on the same directory where We save our php code. Theen type "php yourPHPcode.php" in command prompt :
No comments:
Post a Comment