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
Ad icon
Jobreceive.com for sale
Blogerwiki
Updated:
Tuesday at 8:55 PM
Post Your Vehicle for Sale — FREE! - https://libro.lk
Kalu_Puth
Updated:
Tuesday at 7:38 PM
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Saturday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Sep 23, 2026
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 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
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom