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:
Today 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:
Saturday at 11:44 PM
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
Ok lets start learning PHP
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="lionsIT" data-source="post: 1706391" data-attributes="member: 89624"><p>Ok Lets start php from the basics.</p><p></p><p><strong> What is php?</strong></p><p>php is a server side scripting language.</p><p></p><p><strong> Why php? </strong></p><p>Free and open source</p><p>easy to understand and develope</p><p>Great support for mysql(database)</p><p>Lot of ready made codes in the Internet</p><p></p><p>Even the elakiri.com forum is developed using php</p><p></p><p><strong> Why serverside scripts?</strong></p><p>let say that you want to create a login page. you cannot create a login page just using HTML, you need some language(code) to check values entered in the username and password textboxes with the actual values that are stored in the database.</p><p>So now you understand that, to do dynamics things in a website you need serverside script language.</p><p></p><p>OK then enough of theory lets start practicals <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /></p><p></p><p>You need a web server to run your php scripts. Apache is a good choice for a webserver(Free).</p><p></p><p>Download and install wamp server 2, it's a package of apache + php 5 + mysql</p><p>this is a simple setup just run it.</p><p><a href="http://www.wampserver.com/en/download.php" target="_blank">http://www.wampserver.com/en/download.php</a></p><p></p><p>ok now your set to run your first php program.</p><p>open a note pad and enter the code below. save it as <em>hello.php</em> (remeber to select <em>All file</em> in the <em>Save as type</em>: box)</p><p></p><p>save the file in C:\wamp\www</p><p>www - is the root directory of your apache webserver</p><p></p><p>[php]<php</p><p></p><p>//This is a comment, these will not be printed, comments are used to describe code</p><p></p><p>echo "Hello ElaKiri"; //echo will display text in your browser</p><p></p><p>?>[/php] </p><p></p><p>You will need to stop IIS in your machine if IIS is installed</p><p>goto start-> run -> and type <em>NET STOP IISADMIN</em></p><p></p><p><strong>Always remeber to start Wamp server before running a php script.</strong></p><p>goto start -> programs -> wampserver -> start wamp server</p><p>wait until the wamp icon in the icon tray(where your computer time is) turn white.</p><p></p><p>Open your firefox/ internet explorer and type <a href="http://localhost/hello.php" target="_blank">[code]http://localhost/hello.php[/code]</a></p><p>Now you should see a <em>Hello ElaKiri</em> in your browser window.</p><p></p><p>localhost - it means your computer</p><p></p><p>thats it you are on your way to become a php Guru <img src="/styles/default/xenforo/smilies/default/lol.gif" class="smilie" loading="lazy" alt=":lol:" title="LOL :lol:" data-shortname=":lol:" /></p></blockquote><p></p>
[QUOTE="lionsIT, post: 1706391, member: 89624"] Ok Lets start php from the basics. [B] What is php?[/B] php is a server side scripting language. [B] Why php? [/B] Free and open source easy to understand and develope Great support for mysql(database) Lot of ready made codes in the Internet Even the elakiri.com forum is developed using php [B] Why serverside scripts?[/B] let say that you want to create a login page. you cannot create a login page just using HTML, you need some language(code) to check values entered in the username and password textboxes with the actual values that are stored in the database. So now you understand that, to do dynamics things in a website you need serverside script language. OK then enough of theory lets start practicals :lol: You need a web server to run your php scripts. Apache is a good choice for a webserver(Free). Download and install wamp server 2, it's a package of apache + php 5 + mysql this is a simple setup just run it. [URL="http://www.wampserver.com/en/download.php"]http://www.wampserver.com/en/download.php[/URL] ok now your set to run your first php program. open a note pad and enter the code below. save it as [I]hello.php[/I] (remeber to select [I]All file[/I] in the [I]Save as type[/I]: box) save the file in C:\wamp\www www - is the root directory of your apache webserver [php]<php //This is a comment, these will not be printed, comments are used to describe code echo "Hello ElaKiri"; //echo will display text in your browser ?>[/php] You will need to stop IIS in your machine if IIS is installed goto start-> run -> and type [I]NET STOP IISADMIN[/I] [B]Always remeber to start Wamp server before running a php script.[/B] goto start -> programs -> wampserver -> start wamp server wait until the wamp icon in the icon tray(where your computer time is) turn white. Open your firefox/ internet explorer and type [URL="http://localhost/hello.php"][code]http://localhost/hello.php[/code][/URL] Now you should see a [I]Hello ElaKiri[/I] in your browser window. localhost - it means your computer thats it you are on your way to become a php Guru :lol: [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom