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
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
PHP and Mysql (L5)
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="zed" data-source="post: 2245346" data-attributes="member: 68213"><p><span style="font-size: 22px"><strong><span style="font-family: 'MetaPlusBold-Roman'">he he. back in action with some practicle stuff. nothing much. just a intro for Syntax (grammer in programing)</span></strong></span></p><p><strong><span style="font-size: 18px">so just go true it</span><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /></strong></p><p></p><p><strong><span style="font-family: 'MetaPlusBold-Roman'"></span></strong></p><p><strong><span style="font-family: 'MetaPlusBold-Roman'"></span></strong></p><p><strong><span style="font-family: 'MetaPlusBold-Roman'"></span></strong></p><p><strong><span style="font-family: 'MetaPlusBold-Roman'"></span></strong></p><p><span style="font-size: 22px"><strong><span style="font-family: 'MetaPlusBold-Roman'">Basic Syntax</span></strong></span></p><p> </p><p> </p><p> <span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">As stated in introduction, PHP is an </span></span><span style="font-family: 'KeplMM-It-307-0-251-0-242-0-198'"><span style="font-size: 15px">HTML-embedded </span></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">scripting language. This means that you can intermingle PHP and HTML code within the same file. So to begin programming with PHP, start with a simple Web page. </span></span><span style="font-family: 'KeplMM-77-230-62-188-60-181-49-'"><span style="font-size: 15px">Script 1.1 </span></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">gives an example of a no-frills, no content XHTML Transitional document, which will be used as the foundation for every Web page in the book (this book does not formally discuss [X ]HTML;see a resource dedicated to the topic for more information). </span></span><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"></span> <span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">To add PHP code to a page, place it within PHP tags:</span></span></p><p> </p><p> <span style="font-family: 'PPMonacoPrime-Regular'"><span style="font-size: 26px"><?php</span></span><span style="font-size: 26px"></span></p><p><span style="font-size: 26px"></span> <span style="font-family: 'PPMonacoPrime-Regular'"><span style="font-size: 26px">?></span></span></p><p> </p><p> <span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">Anything placed within these tags will be treated by the Web server as PHP (meaning the PHP interpreter will process the code). Any text outside of the PHP tags is immediately sent to the Web browser as regular HTML. Along with placing PHP code within PHP tags, your PHP files must have a proper extension. The extension tells the server to treat the script in a special way, namely, as a PHP page. Most Web servers will use </span></span><span style="font-family: 'PPMonacoPrime-Regular'"><span style="font-size: 15px">.</span></span><span style="font-size: 15px"><strong><span style="font-family: 'PPMonacoPrime-Regular'">html</span></strong></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">or .</span></span><span style="font-size: 15px"><strong><span style="font-family: 'PPMonacoPrime-Regular'">htm</span></strong></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">for standard HTML pages, and normally, </span></span><span style="font-size: 15px"><strong><span style="font-family: 'PPMonacoPrime-Regular'">.php</span></strong></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">is preferred for your PHP files.</span></span></p><p> </p><p> </p><p> <span style="font-size: 18px"><strong><span style="font-family: 'MetaPlusBold-Roman'">To make a basic PHP script:</span></strong></span></p><p> </p><p> <span style="font-size: 15px"><strong><span style="font-family: 'MetaPlusBold-Caps'">1.</span></strong></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px"> Create a new document in your text editor or Integrated Development Environment (</span></span><span style="font-family: 'KeplMM-77-230-62-188-60-181-49-'"><span style="font-size: 15px">Script 1.2)</span></span><span style="font-family: 'KeplMM-307-0-251-0-242-0-198-0-'"><span style="font-size: 15px">. It generally does not matter what application you use, be it Dreamweaver (a fancy IDE), BBEdit (a great and popular Macintosh plain-text editor), or VI (a plaintext UNIX editor, lacking a graphical interface). Still, some text editors and</span></span></p><p></p><p></p><p></p><p><img src="http://img166.imageshack.us/img166/6505/ekphptz9.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p> </p><p> </p><p> <span style="font-size: 22px"><strong><span style="font-family: 'MetaPlusNormal-Roman'">This PHP script doesn’t do anything, does demonstrate how a PHP script is written. It’ll also be used as a test, prior to getting into elaborate PHP code.</span></strong></span></p></blockquote><p></p>
[QUOTE="zed, post: 2245346, member: 68213"] [SIZE=6][B][FONT=MetaPlusBold-Roman]he he. back in action with some practicle stuff. nothing much. just a intro for Syntax (grammer in programing)[/FONT][/B][/SIZE] [B][SIZE=5]so just go true it[/SIZE]:rofl::rofl::rofl::rofl::rofl::rofl::rofl:[/B] [B][FONT=MetaPlusBold-Roman] [/FONT][/B] [B][FONT=MetaPlusBold-Roman] [/FONT][/B] [SIZE=6][B][FONT=MetaPlusBold-Roman]Basic Syntax[/FONT][/B][/SIZE] [FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]As stated in introduction, PHP is an [/SIZE][/FONT][FONT=KeplMM-It-307-0-251-0-242-0-198][SIZE=4]HTML-embedded [/SIZE][/FONT][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]scripting language. This means that you can intermingle PHP and HTML code within the same file. So to begin programming with PHP, start with a simple Web page. [/SIZE][/FONT][FONT=KeplMM-77-230-62-188-60-181-49-][SIZE=4]Script 1.1 [/SIZE][/FONT][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]gives an example of a no-frills, no content XHTML Transitional document, which will be used as the foundation for every Web page in the book (this book does not formally discuss [X ]HTML;see a resource dedicated to the topic for more information). [/SIZE][/FONT][SIZE=4] [/SIZE] [FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]To add PHP code to a page, place it within PHP tags:[/SIZE][/FONT] [FONT=PPMonacoPrime-Regular][SIZE=7]<?php[/SIZE][/FONT][SIZE=7] [/SIZE] [FONT=PPMonacoPrime-Regular][SIZE=7]?>[/SIZE][/FONT] [FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]Anything placed within these tags will be treated by the Web server as PHP (meaning the PHP interpreter will process the code). Any text outside of the PHP tags is immediately sent to the Web browser as regular HTML. Along with placing PHP code within PHP tags, your PHP files must have a proper extension. The extension tells the server to treat the script in a special way, namely, as a PHP page. Most Web servers will use [/SIZE][/FONT][FONT=PPMonacoPrime-Regular][SIZE=4].[/SIZE][/FONT][SIZE=4][B][FONT=PPMonacoPrime-Regular]html[/FONT][/B][/SIZE][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]or .[/SIZE][/FONT][SIZE=4][B][FONT=PPMonacoPrime-Regular]htm[/FONT][/B][/SIZE][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]for standard HTML pages, and normally, [/SIZE][/FONT][SIZE=4][B][FONT=PPMonacoPrime-Regular].php[/FONT][/B][/SIZE][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]is preferred for your PHP files.[/SIZE][/FONT] [SIZE=5][B][FONT=MetaPlusBold-Roman]To make a basic PHP script:[/FONT][/B][/SIZE] [SIZE=4][B][FONT=MetaPlusBold-Caps]1.[/FONT][/B][/SIZE][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4] Create a new document in your text editor or Integrated Development Environment ([/SIZE][/FONT][FONT=KeplMM-77-230-62-188-60-181-49-][SIZE=4]Script 1.2)[/SIZE][/FONT][FONT=KeplMM-307-0-251-0-242-0-198-0-][SIZE=4]. It generally does not matter what application you use, be it Dreamweaver (a fancy IDE), BBEdit (a great and popular Macintosh plain-text editor), or VI (a plaintext UNIX editor, lacking a graphical interface). Still, some text editors and[/SIZE][/FONT] [IMG]http://img166.imageshack.us/img166/6505/ekphptz9.jpg[/IMG] [SIZE=6][B][FONT=MetaPlusNormal-Roman]This PHP script doesn’t do anything, does demonstrate how a PHP script is written. It’ll also be used as a test, prior to getting into elaborate PHP code.[/FONT][/B][/SIZE] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom