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
Power Lifting Lever Belt
SkullVamp
Updated:
Yesterday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Yesterday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
Zend Certification Lesson Thread
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="Djpata" data-source="post: 1437785" data-attributes="member: 1233"><p><strong>Lesson 3-|-My 1st PHP Script</strong></p><p></p><p><span style="font-family: 'Trebuchet MS'"></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 15px"><strong><span style="color: Green">Before</span> you <span style="color: Green">begin</span>, we'll <span style="color: Green">discuss</span> about <span style="color: Green">the</span> things, <span style="color: Green">you</span> know <span style="color: Green">as</span> well <span style="color: Green">as</span> you <span style="color: Green">don't </span>know <span style="color: Green">about</span> PHP.</strong></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="color: DarkOrchid"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="color: DarkOrchid"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="color: DarkOrchid"></span> <span style="color: DarkOrchid"><strong><span style="font-size: 15px">PHP Tags</span></strong></span></span></p><p></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">There are four PHP tags available.</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"><span style="color: Navy"><strong><span style="font-size: 12px"></span></strong></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"><span style="color: Navy"><strong><span style="font-size: 12px">Standard Tags</span></strong></span></span></span></p><p></p><p><span style="color: Red"><span style="font-family: 'Courier New'"><span style="font-size: 10px"><?php</span></span></span></p><p><span style="color: Red"><span style="font-family: 'Courier New'"><span style="font-size: 10px">...... code</span></span></span></p><p><span style="color: Red"><span style="font-family: 'Courier New'"><span style="font-size: 10px">?></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">Standard tags are the best solution for portability and backwards compatibility, because they are guaranteed to be available and cannot be disabled by changing PHP’s configuration file.</span></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"><u> Eg 1.</u></span></span></p><p></p><p><span style="color: Red"><span style="font-family: 'Courier New'"><span style="font-size: 12px"><?php</span></span></span></p><p><span style="color: Red"><span style="font-family: 'Courier New'"><span style="font-size: 12px">echo ‘Hello World’;</span></span></span></p><p><span style="color: Red"><span style="font-family: 'Courier New'"><span style="font-size: 12px">?></span></span></span></p><p></p><p><span style="color: DarkOrange"><strong><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></strong></span></p><p><span style="color: DarkOrange"><strong><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">Short Tags</span></span></strong></span></p><p></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><?</span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px">………… code</span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px">?></span></span></p><p></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">Short tags were, for a time, the standard in the PHP world; however, they do have the major drawback of conflicting with XML headers and, therefore, have somewhat fallen by the wayside. Their other advantage is the availability of the short form <span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"><?=$variable ?></span></span></span> syntax, which allows you to print the result of an expression directly to the script’s output.</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"><u> Eg 2.</u></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"><?php echo ‘Welcome to elakiri.com’ ?></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"><?= ‘Welcome to elakiri.com ?></span></span></span></p><p></p><p><span style="color: DarkOrchid"><strong><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></strong></span></p><p><span style="color: DarkOrchid"><strong><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">Script Tags</span></span></strong></span></p><p></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"><scripting language=”php”></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red">………… code</span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"></script></span></span></span></p><p></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px">Script tags were introduced so that HTML editors which were able to ignore JavaScript but were unable to cope with the standard PHP tags could also ignore the PHP code. </span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px"></span></span></p><p><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px"><u> Eg 3.</u></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"><html></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"><body><scripting language=”php”></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red">echo ‘Called in a Differ Way’;</span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"></script></span></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 12px"><span style="color: Red"></body></html></span></span></span></p><p></p><p><span style="color: SlateGray"><strong><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></strong></span></p><p><span style="color: SlateGray"><strong><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">ASP Tags</span></span></strong></span></p><p></p><p><span style="font-size: 12px"><span style="font-family: 'Courier New'"><span style="color: Red"><%</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Courier New'"><span style="color: Red">………… code</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Courier New'"><span style="color: Red">%></span></span></span></p><p></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">Nobody quite understands why ASP tags were introduced—however, if you are so inclined you can turn on this optional configuration option, and you are free to use them.</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></p><p><u> Eg 4.</u></p><p><span style="font-size: 12px"><span style="font-family: 'Courier New'"><span style="color: Red"></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Courier New'"><span style="color: Red"><% echo ‘hello guys’ %></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Courier New'"><span style="color: Red"><%= ‘hello guys’ %></span></span></span></p><p></p><p> <span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"> </span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'">Note that, as long as your copy of PHP has been configured to support more than one type of opening and closing tags, you can mix and match opening and closing tags from different families. But it’s not a good programming practice.</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Trebuchet MS'"></span></span></p><p></p><p style="text-align: center"><span style="color: Black"><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px"><span style="font-size: 15px"></span></span></span></span></p> <p style="text-align: center"><span style="color: Black"><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px"><span style="font-size: 15px"></span></span></span></span></p> <p style="text-align: center"><span style="color: Black"><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px"><span style="font-size: 15px">We Hope All Of You Will Learn Something From Here<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /> Feel Free To Ask/Discuss Anything In <a href="http://www.elakiri.com/forum/showthread.php?t=64028" target="_blank"><strong>Comments Thread</strong></a> Or <a href="http://www.elakiri.com/forum/showthread.php?t=64027" target="_blank"><strong>Q & A</strong></a> Thread <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></span></span></span></span></p> <p style="text-align: center"><span style="color: Black"> </span></p> <p style="text-align: center"><span style="color: Black"></span></p><p> <span style="color: Black"></span></p><p><span style="color: Black"></span></p><p><span style="color: Black"></span></p><p><span style="color: Black"></span></p><p><span style="color: Black"></span><p style="text-align: left"><span style="color: Black"><span style="font-family: 'Trebuchet MS'"><span style="font-size: 12px">Guyz and Galz dnt be shyy<img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /><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/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /> if u hv nything to knw or any kinda problem or ny issue abt your <span style="color: DarkOrchid">1st PHP Script</span> plz put ur problems in <strong><a href="http://www.elakiri.com/forum/showthread.php?t=64027" target="_blank">Qoustions and Answer Thread</a></strong> <span style="color: Black">but</span><strong><span style="color: Red"> plzzzzz do not post them here even dnt reply to this thread<img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></strong> all your comments,complains,ideas and suggestions are welcome and post them in <strong><a href="http://www.elakiri.com/forum/showthread.php?t=64028" target="_blank">comments thread</a></strong> <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/wink.gif" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" /></span></span></span></p> <p style="text-align: left"></p></blockquote><p></p>
[QUOTE="Djpata, post: 1437785, member: 1233"] [b]Lesson 3-|-My 1st PHP Script[/b] [FONT=Trebuchet MS] [SIZE=4][B][COLOR=Green]Before[/COLOR] you [COLOR=Green]begin[/COLOR], we'll [COLOR=Green]discuss[/COLOR] about [COLOR=Green]the[/COLOR] things, [COLOR=Green]you[/COLOR] know [COLOR=Green]as[/COLOR] well [COLOR=Green]as[/COLOR] you [COLOR=Green]don't [/COLOR]know [COLOR=Green]about[/COLOR] PHP.[/B][/SIZE] [COLOR=DarkOrchid] [/COLOR] [COLOR=DarkOrchid][B][SIZE=4]PHP Tags[/SIZE][/B][/COLOR][/FONT] [SIZE=3][FONT=Trebuchet MS]There are four PHP tags available.[/FONT] [FONT=Trebuchet MS] [COLOR=Navy][B][SIZE=3] Standard Tags[/SIZE][/B][/COLOR][/FONT][/SIZE] [COLOR=Red][FONT=Courier New][SIZE=2]<?php ...... code ?>[/SIZE][/FONT][/COLOR] [SIZE=3][FONT=Trebuchet MS] Standard tags are the best solution for portability and backwards compatibility, because they are guaranteed to be available and cannot be disabled by changing PHP’s configuration file.[/FONT][/SIZE] [SIZE=3] [FONT=Trebuchet MS][U] Eg 1.[/U][/FONT][/SIZE] [COLOR=Red][FONT=Courier New][SIZE=3]<?php echo ‘Hello World’; ?>[/SIZE][/FONT][/COLOR] [COLOR=DarkOrange][B][SIZE=3][FONT=Trebuchet MS] Short Tags[/FONT][/SIZE][/B][/COLOR] [FONT=Courier New][SIZE=3]<? ………… code ?>[/SIZE][/FONT] [SIZE=3][FONT=Trebuchet MS]Short tags were, for a time, the standard in the PHP world; however, they do have the major drawback of conflicting with XML headers and, therefore, have somewhat fallen by the wayside. Their other advantage is the availability of the short form [FONT=Courier New][SIZE=3][COLOR=Red]<?=$variable ?>[/COLOR][/SIZE][/FONT] syntax, which allows you to print the result of an expression directly to the script’s output. [U] Eg 2.[/U][/FONT][/SIZE] [FONT=Courier New][SIZE=3][COLOR=Red] <?php echo ‘Welcome to elakiri.com’ ?> <?= ‘Welcome to elakiri.com ?>[/COLOR][/SIZE][/FONT] [COLOR=DarkOrchid][B][SIZE=3][FONT=Trebuchet MS] Script Tags[/FONT][/SIZE][/B][/COLOR] [FONT=Courier New][SIZE=3][COLOR=Red]<scripting language=”php”> ………… code </script>[/COLOR][/SIZE][/FONT] [FONT=Trebuchet MS][SIZE=3]Script tags were introduced so that HTML editors which were able to ignore JavaScript but were unable to cope with the standard PHP tags could also ignore the PHP code. [U] Eg 3.[/U][/SIZE][/FONT] [FONT=Courier New][SIZE=3][COLOR=Red] <html> <body><scripting language=”php”> echo ‘Called in a Differ Way’; </script> </body></html>[/COLOR][/SIZE][/FONT] [COLOR=SlateGray][B][SIZE=3][FONT=Trebuchet MS] ASP Tags[/FONT][/SIZE][/B][/COLOR] [SIZE=3][FONT=Courier New][COLOR=Red]<% ………… code %>[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Trebuchet MS]Nobody quite understands why ASP tags were introduced—however, if you are so inclined you can turn on this optional configuration option, and you are free to use them. [/FONT][/SIZE] [U] Eg 4.[/U] [SIZE=3][FONT=Courier New][COLOR=Red] <% echo ‘hello guys’ %> <%= ‘hello guys’ %>[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Trebuchet MS] Note that, as long as your copy of PHP has been configured to support more than one type of opening and closing tags, you can mix and match opening and closing tags from different families. But it’s not a good programming practice. [/FONT][/SIZE] [CENTER][COLOR=Black][FONT=Trebuchet MS][SIZE=3][SIZE=4] We Hope All Of You Will Learn Something From Here:D Feel Free To Ask/Discuss Anything In [URL="http://www.elakiri.com/forum/showthread.php?t=64028"][B]Comments Thread[/B][/URL] Or [URL="http://www.elakiri.com/forum/showthread.php?t=64027"][B]Q & A[/B][/URL] Thread :D[/SIZE][/SIZE][/FONT][/COLOR] [COLOR=Black] [/COLOR][/CENTER] [COLOR=Black] [/COLOR][LEFT][COLOR=Black][FONT=Trebuchet MS][SIZE=3]Guyz and Galz dnt be shyy:P:rofl::lol: if u hv nything to knw or any kinda problem or ny issue abt your [COLOR=DarkOrchid]1st PHP Script[/COLOR] plz put ur problems in [B][URL="http://www.elakiri.com/forum/showthread.php?t=64027"]Qoustions and Answer Thread[/URL][/B] [COLOR=Black]but[/COLOR][B][COLOR=Red] plzzzzz do not post them here even dnt reply to this thread:P[/COLOR][/B] all your comments,complains,ideas and suggestions are welcome and post them in [B][URL="http://www.elakiri.com/forum/showthread.php?t=64028"]comments thread[/URL][/B] :D;)[/SIZE][/FONT][/COLOR] [/LEFT] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom