PHP programs with visual output | Basic programs on PHP

bellow is the PHP program.that may help you to done your practical records,each program had give visual output so you can catch those program in very simple. Before going discuss program lets discuss HOW TO RUN PHP PROGRAM using wampserver

Steps to Run php file with WAMP SERVER

  1. Save the file WAMP -> WWW -> filename.php
  2. Run WAMPSERVER.
  3. Now open a Browser and Type Localhost
  4. Now open a localhost main page there you can see Your projects
  5. Select that file to run
The server side scrpting provide much of the sophisticated of general CGI with the ease of HTML. The idea behind of server-side script is simble. First create a page using Standard HTML or XHTML ,Then add special elements of code directives to indicate what to do in particular cases PHP,which stands for Hypertext Preprocessor(a recursive acronym,originally stood for personal homepage) is general purpose Server-side scripting language that was originally designed for web development to produce dynamic web page. PHP interpreter only execute PHP code with its delimiters.Anything outside its delimiters is not processed by PHP .
Every file should save with .Php extenstion
There are few fine points about how PHP code work:
  • The web sever sends the request on to the PHP parser,which is either built into the web server binary or exists seperately as filter
  • The PHP parser scan the requested file for PHP code
  • when PHP parser finds PHP code.it execute
  • New output file is sent back to the web server
  • The web server sends the output file along to the web browser
  • The web server display the output




Basic php programs with connecting to SQL databases

  1. PHP programs to Print Even numbers in a range
  2. PHP program to Demonstrate use of COOKIES
  3. PHP program to concatenate two string
  4. PHP program to find large number in Array
  5. PHP program to display element in an Array in ascending order
  6. PHP program to display elements in an array using Foreach loop
  7. PHP program to demonstrate Switch control statements
  8. PHP program to display first n STRANGE numbers
  9. PHP program to display first n PRIME numbers
  10. PHP prgrams to print PRIME number in a RANGE
  11. PHP program to print FIBONACCI numbers in a RANGE
  12. PHP program to demonstrate any five STRING Functions
  13. PHP program create HTML form page and POST its value to another page
  14. PHP program to create login form with help of session
  15. PHP program to store,display,update,and delete students details using Mysql database
  16. PHP program to populate dropdown (select) box with data from MySQL table
  17. PHP program to populate content of student table to HTML form
more updates will coming soon....

1 comment: