Creating and Running First PHP Program :-
PHP Script server पर execute होती है तथा Result को Browser पर send करती है।
हम PHP script को किसी भी text editor में कहीं पर भी रख सकते है।
Generally PHP script को हम write करने के लिए Dreamweaver का use करते करते है।
PHP Script की starting “” से होती है।
PHP का basic syntax निम्न है-

Figure:-1 php syntax
PHP file को .php extension से save करते है।
PHP File के अंदर Normally html tag तथा php scripting code होते है। निम्न प्रोग्राम में PHP file में PHP script तथा Html tag को inbuilt किया है।
Example:-

Figure:-1 php syntax
उपरोक्त program को किसी भी browser पर चलाने पर तथा निम्न URL type करने पर निम्न output show होता है।
URL – http://localhost/demo_website/phpsyntax.php

Figure:-1 php syntax