Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Nov 7, 2026
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
PHP Mega Thread *Updating*
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="siripala" data-source="post: 12671881" data-attributes="member: 6738"><p>Example 1 - Hello World in PHP</p><p></p><p>Following a long tradition of introductory programming and scripting tutorials, our first example will print "Hello World" in the browser window.</p><p></p><p><HTML></p><p><HEAD></p><p><TITLE> Hello World in PHP </TITLE></p><p></HEAD></p><p><BODY></p><p><?</p><p>// Hello world in PHP</p><p> print("Hello World");</p><p>?></p><p></BODY></p><p></HTML></p><p></p><p>The PHP statement:</p><p></p><p><? print("Hello World"); ?></p><p>displays the message "Hello World" in the browser window. As was mentioned earlier, PHP statements are embedded into HTML documents and they appear between <? and ?> symbols.</p><p></p><p>The PHP print function displays the value or string within parentheses in the browser window.</p><p></p><p>Several important things to note about PHP scripts:</p><p></p><p>PHP is case sensitive, print is different from PRINT</p><p>PHP statements appear between <? ?></p><p>PHP statements end with a semi-colon</p><p>You can include comments in your PHP code by beginning the line or lines with // characters</p><p>Your PHP files should have a .php extension rather than a .html extension. If scripts have a .html extension the server will not know that they are PHP files and will not parse and execute the PHP commands.</p></blockquote><p></p>
[QUOTE="siripala, post: 12671881, member: 6738"] Example 1 - Hello World in PHP Following a long tradition of introductory programming and scripting tutorials, our first example will print "Hello World" in the browser window. <HTML> <HEAD> <TITLE> Hello World in PHP </TITLE> </HEAD> <BODY> <? // Hello world in PHP print("Hello World"); ?> </BODY> </HTML> The PHP statement: <? print("Hello World"); ?> displays the message "Hello World" in the browser window. As was mentioned earlier, PHP statements are embedded into HTML documents and they appear between <? and ?> symbols. The PHP print function displays the value or string within parentheses in the browser window. Several important things to note about PHP scripts: PHP is case sensitive, print is different from PRINT PHP statements appear between <? ?> PHP statements end with a semi-colon You can include comments in your PHP code by beginning the line or lines with // characters Your PHP files should have a .php extension rather than a .html extension. If scripts have a .html extension the server will not know that they are PHP files and will not parse and execute the PHP commands. [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom