Lamp technology


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Lamp technology

  1. 1. LAMP TECHNOLOGY <ul><li>PRESENTED BY., </li></ul><ul><li> M.HARIHARAN., </li></ul><ul><li>MCA “A” SEC( II YEAR). </li></ul>
  2. 2. LAMP TECHNOLOGY <ul><li>L A M P is an acronym for a solution stack of free, open source software, originally coined from the first letters of </li></ul><ul><li>Linux (operating system), </li></ul><ul><li>Apache HTTP Server, </li></ul><ul><li>MySQL (database software) and </li></ul><ul><li>PHP. </li></ul>
  3. 3. <ul><li>Linux </li></ul><ul><li>Unix-like computer operating system, open-source software where source code is provided with operating system, which can be edited according to specific needs. </li></ul><ul><li>Apache </li></ul><ul><li>free software/open source web server </li></ul>
  4. 4. <ul><li>MySQL </li></ul><ul><li>multithreaded, multi-user, SQL database management system </li></ul><ul><li>PHP </li></ul><ul><li>reflective programming language originally designed for producing dynamic web pages </li></ul>
  5. 5. ADVANTAGES OF LAMP <ul><li>Easy to code with PHP and MySQL. </li></ul><ul><li>Easy to deploy a PHP app. Once you’ve got MySQL running, simply upload your .php files. </li></ul><ul><li>Develop locally </li></ul><ul><li>Cheap and ubiquitous hosting </li></ul>
  7. 7. WHAT IS LINUX? <ul><li>It is an operating system. </li></ul><ul><li>It is designed for to provide personal computer users a free or at very low-cost . </li></ul><ul><li>It has a reputation as a very efficient & fast performing systems. </li></ul><ul><li>Linux was developed by Linux Torvalds at the University of Helsinki in Finland. </li></ul>
  8. 8. WHY WE ARE USING LINUX? <ul><li>We dont have to buy the office system requirements separately. </li></ul><ul><li>No need to buy costly hardwares for the basic need(like RAM,Processor). </li></ul><ul><li>We are free from viruses no need to buy the antivirus softwares separately.. </li></ul>
  9. 9. WHY WE ARE USING LINUX? Continue.. <ul><li>We can update everthing on our system with just one update manager. </li></ul><ul><li>It is free from pirated software so that we can share it with others is legal. </li></ul><ul><li>It wont get slow like windows operating system. </li></ul><ul><li>It upgrades all installation automatically. </li></ul>
  10. 10. ADVANTAGES: <ul><li>Cost. </li></ul><ul><li>Security. </li></ul><ul><li>Choice(freedom). </li></ul><ul><li>Software. </li></ul><ul><li>Hardware. </li></ul>
  11. 11. DISADVANTAGES: <ul><li>Understanding. </li></ul><ul><li>Compatibility. </li></ul><ul><li>Alternative Programs. </li></ul>
  12. 12. BASIC LINUX COMMANDS: 1.Show who is logged on and what they are doing. $ w 2.Show who is logged on. $ who
  13. 13. 3.Create empty file of 0 byte $ touch 4.Remove file $ rm 5. List files. $ ls
  14. 14. 6. Create/Make a new directory. $ mkdir 7. Clear the terminal screen. $clear 8.Display information on free used memory. $ free
  15. 15. 9.Check current date and time. $ date 10.Compare two files. $ cmp file1 file2 11.To save and exit. Ctrl -d
  16. 16. 12.Short listing of directory contents $ls - <ul><li>- a list hidden files. </li></ul><ul><li>-d list the name of the current directory. </li></ul><ul><li>-F show directories with a trailing '/' </li></ul><ul><li>executable files with a trailing '*'. </li></ul><ul><li>-t sort by time modified instead of name. </li></ul>
  17. 17. Short listing of directory contents $ls- continue.. <ul><li>-g show group ownership of file in long listing </li></ul><ul><li>-i print the inode number of each file </li></ul><ul><li>-l long listing giving details about files and directories </li></ul>
  18. 18. 13.Prints a calendar for the specified month of the specified year. $cal month year 14.It will show you the full path to the directory you are currently in. $pwd ( print working directory) Feb 13, 2012
  19. 19. 15.Type mv followed by the current name of a directory and the new name of the directory. $mv( change the name of a directory)
  21. 21. <ul><li>LINUX DIRECTORIES: </li></ul><ul><li>< / > </li></ul><ul><li>The root directory where the Linux system begins contains only subdirectories. . </li></ul><ul><li>The starting point of your directory structure. </li></ul><ul><li>Every other file and directory on system is under the root directory. </li></ul>
  22. 22. <ul><li>< /boot > </li></ul><ul><li>The place where Linux keeps information that it needs when booting up. </li></ul><ul><li>< /bin > </li></ul><ul><li>It contains the most important programs that the system needs to operate, such as the shells, ls, grep, and other essential things. </li></ul>
  23. 23. <ul><li>< /usr/bin > </li></ul><ul><li>/usr/bin in turn contains applications for the system's users. </li></ul><ul><li>< /dev > </li></ul><ul><li>The devices that are available to a Linux system. </li></ul>
  24. 24. <ul><li>< /etc > </li></ul><ul><li>The configuration files for the Linux system. </li></ul><ul><li>Most of these files are text files and can be edited by hand. </li></ul><ul><li>< /home > </li></ul><ul><li>This is where users keep their personal files are allowed to write files. </li></ul>
  25. 25. <ul><li>< /lib > </li></ul><ul><li>The shared libraries for programs that are dynamically linked. </li></ul><ul><li>< /mnt > </li></ul><ul><li>This directory is used for mount points. </li></ul><ul><li>< /sbin, /usr/sbin > </li></ul><ul><li>Most system administration programs are stored in these directories. </li></ul>
  26. 26. <ul><li>< /usr > </li></ul><ul><li>It contains user applications and source codes, and pictures, docs, or config files . </li></ul><ul><li></usr/share> </li></ul><ul><li>Config files and graphics for many user apps. </li></ul><ul><li>< /usr/local > </li></ul><ul><li>This is where you install apps and other files for use on the local machine. </li></ul>
  27. 27. SOME OF THE LINUX EDITORS <ul><li>ed - Original UNIX line-based editor, useful in scripts </li></ul><ul><li>emacs - GNU editor and fully integrated user </li></ul><ul><li>environment </li></ul><ul><li>ex - Powerful line-based editor (integrated with vi) </li></ul>
  28. 28. SOME OF THE LINUX EDITORS continue.. <ul><li>gawk - GNU awk, powerful text editor for records containing fields. </li></ul><ul><li>sed - Stream-oriented (non- interactive) line-based editor </li></ul><ul><li>vi - Classic screen-based editor for UNIX </li></ul><ul><li>vim - Vi IMproved, enhanced support for programmers </li></ul>
  29. 29. CRONTAB & CRONJOB <ul><li>The term cron is derived from the word chronograph . </li></ul><ul><ul><li>The Cron, at, batch Command is used for Scheduling Execution of Command according to requirements. </li></ul></ul><ul><ul><li>Cron is a system deamon that keeps sleeping most of the time. </li></ul></ul>
  30. 30. CRONTAB & CRONJOB continue.. <ul><ul><li>It typically wakes up every one minute and checks it crontab file for any jobs to be executed during this minute. </li></ul></ul><ul><ul><li>The name of this crontab file will be the user's login name. </li></ul></ul>
  31. 31. CRONTAB & CRONJOB continue .. <ul><li>The Scheduled jobs will be present in the Crontab files . </li></ul><ul><li>Cron tab files will be present in the </li></ul><ul><li>/var/ spool/ cron/ crontabs directory . </li></ul><ul><li>It Should be executed periodically at a specific day, date and time . </li></ul>
  32. 32. APACHE ( HTTP SERVER )
  33. 33. WHAT IS APACHE? <ul><li>An open source web server used mostly for Unix, Linux and Solaris platforms. </li></ul><ul><li>It is very secure, fast, and reliable. </li></ul><ul><li>The name &quot;Apache&quot; derives from the word &quot;patchy&quot; that the Apache developers used to describe early versions of their software. </li></ul>
  34. 34. <ul><li>IMPLEMENTATION: </li></ul><ul><li>DBM databases for authentication </li></ul><ul><li>Customized responses to errors and problems </li></ul><ul><li>Virtual Hosts </li></ul><ul><li>Multiple DirectoryIndex directives </li></ul><ul><li>It has been tested thoroughly by both developers and users. </li></ul>
  35. 35. APACHE WEB SERVER <ul><li>It provides a full range of Web server features, including CGI, SSL, and virtual domains. </li></ul><ul><li>Apache also supports plug-in modules for extensibility. </li></ul>
  36. 36. <ul><li>The Apache Web Server has </li></ul><ul><li>HTTP </li></ul><ul><li>IIS </li></ul><ul><li>SSL </li></ul><ul><li>The Apache Web server has been ported to Windows and other network operating systems (NOS). </li></ul>Feb 13, 2012
  37. 37. <ul><li>HTTP </li></ul><ul><li>HTTP is an Hypertext Transfer Protocol. </li></ul><ul><li>It provides a standard for Web browsers and servers to communicate. </li></ul><ul><li>It is a technical specification of a network protocol that software must implement. </li></ul><ul><li>HTTP is an application layer network protocol built on top of TCP. </li></ul>Feb 13, 2012
  38. 38. <ul><li>HTTP clients (such as Web browsers) and servers communicate via HTTP request and response messages. </li></ul><ul><li>The three main HTTP message types are </li></ul><ul><li>GET, POST, and HEAD. </li></ul><ul><li>HTTP utilizes TCP port 80 by default. </li></ul>Feb 13, 2012
  39. 39. * Though other ports such as 8080 can alternatively be used. * The HTTP also includes. ARP-(Address Resolution Protocol) DHCP-(Dynamic Host Configuration Protocol) FTP(File Transfer Protocol) Feb 13, 2012
  40. 40. <ul><li>ARP </li></ul><ul><li>ARP converts an Internet Protocol ( IP ) address to its corresponding physical network address. </li></ul><ul><li>It is implemented in the device drivers of network operating systems . </li></ul><ul><li>It is most commonly seen on Ethernet networks, ATM, Token Ring , and other physical networks . </li></ul>Feb 13, 2012
  41. 41. <ul><li>DHCP </li></ul><ul><li>DHCP allows a computer to join an IP -based network </li></ul><ul><li>without having a pre-configured IP address. </li></ul><ul><li>DHCP is a protocol that assigns unique IP addresses to </li></ul><ul><li>devices, then releases and renews these addresses as </li></ul><ul><li>devices leave and re-join the network. </li></ul>Feb 13, 2012
  42. 42. FTP Feb 13, 2012 <ul><li>FTP allows you to transfer files between two computers on the Internet. </li></ul><ul><li>FTP is a simple network protocol based on Internet Protocol. </li></ul>
  43. 43. SSL <ul><li>Secure Sockets Layer. </li></ul><ul><li>SSL security technology helps to improve the safety of Internet communications. </li></ul><ul><li>SSL is a standard for encrypted client/server communication between network devices. </li></ul><ul><li>A network protocol, SSL runs on top of TCP/IP. </li></ul>
  44. 44. CONFIGURATION Instead of using a point-and-click graphic user interface (GUI) or Windows Registry keys as most other modern software packages, Apache generally relies on simple text files for its configuration settings.
  45. 45. CONFIGURING FILES <ul><li>It uses a system text files for managing its configuration data. </li></ul><ul><li>These files appear in Apache's ./conf directory and are designed to be edited by system administrators: </li></ul><ul><li>httpd.conf for general settings </li></ul><ul><li>srm.conf for resource settings </li></ul><ul><li>access.conf for security settings </li></ul>
  46. 46. RUNNING APACHE <ul><li>Apache does not run from the inetd super server as many other network servers do. </li></ul><ul><li>It is configured to run standalone for better performance for incoming HTTP requests from client web browsers. </li></ul>
  47. 47. <ul><li>RUNNING APACHE continue.. </li></ul><ul><li>A shell script wrapper is included to make starting, stopping, and restarting the server as simple as possible. </li></ul><ul><li>To start up Apache for the first time, just run: </li></ul><ul><li># /usr/local/sbin/apachectl start </li></ul>
  48. 48. RUNNING APACHE continue.. <ul><li>You can stop the server at any time by typing: </li></ul><ul><li># /usr/local/sbin/apachectl stop </li></ul><ul><li>After making changes to the configuration file for any reason, you will need to restart the server: </li></ul><ul><li># /usr/local/sbin/apachectl restart </li></ul>
  49. 49. RUNNING APACHE continue.. <ul><li>To restart Apache without aborting current connections, run: </li></ul><ul><li># /usr/local/sbin/apachectl graceful </li></ul>
  50. 50. <ul><li>The family of .conf files supports most, but not all of Apache's configuration options. </li></ul><ul><li>Other important mechanisms for managing an Apache Web server include the </li></ul><ul><li>.htaccess file, the mime.types file, and the family of log files . </li></ul>
  52. 52. WHAT IS MySQL? <ul><li>The most popular open source SQL database management system. </li></ul><ul><li>It is used to add,access and process data stored in a computer database. </li></ul><ul><li>It is a RDBMS store in a separate tables rather than putting all the data in one big store room.It adds speed and flexibility. </li></ul>
  53. 53. WHAT IS MySQL? continue.. <ul><li>It is very fast,reliable and easy to use,due to the connectivity,speed ,security. </li></ul><ul><li>It works in Client/Server or embedded system. </li></ul><ul><li>A large amount of contributed MySQL software is available. </li></ul>Feb 13, 2012
  54. 54. WHAT IS MySQL? continue.. Feb 13, 2012 <ul><li>It consists of multithreaded SQL server that support: </li></ul><ul><li>Different backends, </li></ul><ul><li>Several different client programs, </li></ul><ul><li>Libraries, </li></ul><ul><li>Administration tools, </li></ul><ul><li>Wide range of API's. </li></ul>
  55. 55. WHY WE ARE USING MYSQL? <ul><li>It is free . </li></ul><ul><li>It is fast comparing to other Database system such as PostgreSQL,mSQL. </li></ul><ul><li>It is light weight yet offers a rich and highly useful function set. </li></ul><ul><li>It is supported well by users community. </li></ul>
  56. 56. BASIC QUERIES <ul><li>CREATE Command - is used to create a database/table. </li></ul><ul><li>SELECT Command - is used to retrieve data from the database. </li></ul><ul><li>DELETE Command - is used to delete data from the database. </li></ul>
  57. 57. BASIC QUERY COMMANDS IN MySQL continue.. <ul><li>INSERT Command - is used to insert data into a database. </li></ul><ul><li>UPDATE Command - is used to update the data in a table. </li></ul><ul><li>DROP Command - is used to delete or drop the database/table. </li></ul>
  58. 58. SYNTAX FOR QUERY COMMANDS 1. CREATE Command : The Create command is used to create a table by specifying the tablename, fieldnames and constraints as shown below: Syntax: $createSQL=(&quot;CREATE TABLE tblName&quot;);
  59. 59. 2. SELECT Command : It is used to select the records from a table using its field names, '*' is used to select all the fields in a table. Syntax: $selectSQL=(&quot;SELECT field_names FROM tablename&quot;);
  60. 60. 3 .DELETE Command : The Delete command is used to delete the records from a table using conditions as shown below: Syntax: $deleteSQL=(&quot;DELETE * FROM tablename WHERE condition&quot;);
  61. 61. 4. INSERT Command : The Insert command is used to insert records into a table. The values are assigned to the field names as shown below: Syntax: $insertSQL=(&quot;INSERT INTO blname(fieldname1,fieldname2..) VALUES(value1,value2,...) &quot;);
  62. 62. 5. UPDATE Command : It is used to update the field values using conditions. This is done using 'SET' and the fieldnames to assign new values to them. Syntax: $updateSQL=(&quot;UPDATE Tblname SET (fieldname1=value1,fieldname2=value2,...) WHERE fldstudid=IdNumber&quot;);
  63. 63. 6. DROP Command: The Drop command is used to delete all the records in a table using the table name as shown below: Syntax: $dropSQL=(&quot;DROP tblName&quot;);
  64. 64. ADVANCED QUERIES <ul><li>INNER JOIN : </li></ul><ul><li>It is used to retrieve the data from all tables listed. </li></ul><ul><li>REPLACE: </li></ul><ul><li>It searches a character string and replaces characters found in search string. </li></ul>
  65. 65. <ul><li>LTRIM : </li></ul><ul><li> It removes any leading (left-hand) spaces in a character string. </li></ul><ul><li>RTRIM : </li></ul><ul><li>It works like LTRIM, but it removes trailing spaces. </li></ul>
  66. 66. <ul><li>SIGN : </li></ul><ul><li>It takes in a numeric expression and returns one of the following values based on the sign of the input number: </li></ul><ul><li>− 1 - Input number is negative. </li></ul><ul><li> 0 - Input number is zero. </li></ul><ul><li> 1 - Input number is positive. </li></ul><ul><li>Null - Input number is null. </li></ul>
  67. 67. <ul><li>SQRT : </li></ul><ul><li>It takes in a single numeric expression and returns its square root. </li></ul><ul><li>CEILING (CEIL) : </li></ul><ul><li>It rounds up to the next nearest whole number. </li></ul><ul><li>F LOOR : </li></ul><ul><li>It rounds down to the next nearest whole number. </li></ul>
  68. 68. <ul><li>DATE and TIME : </li></ul><ul><li>ADD_MONTHS : </li></ul><ul><li>Adds the supplied number of months to the supplied date. </li></ul><ul><li>CURRENT_DATE : </li></ul><ul><li>Returns the current date in the time zone set for the DB session. </li></ul>
  69. 69. EXTRACT : Extracts the specified date field from the supplied date. LAST_DAY : Returns of supplied date with the day shifted to the last day of the month.
  70. 70. PROCEDURES AND FUNCTIONS Subroutines and functions can be made available to a single program or many; and that, of course, is what stored procedures and stored functions are - they are procedures (or subroutines) and functions stored in the database .
  71. 71. WHY USE PROCEDURES AND FUNCTIONS? The real advantage to using stored procedures and stored functions is that they provide functionality which is platform and application independant.
  72. 72. WHY USE PROCEDURES & FUNCTIONS? continue.. <ul><li>For example, a team of developers may provide: </li></ul><ul><li>a Visual Basic application on Windows </li></ul><ul><li>a Gambas application on Linux </li></ul><ul><li>a PHP application on a web server </li></ul><ul><li>With procedures and functions the functionality only has to be developed once. </li></ul>
  73. 73. CREATING MySQL PROCEDURES A stored procedure is the same as a subroutine in that it cannot directly return a result, however it can receive variables that can be modified by the procedure.
  74. 74. <ul><li>These variables are defined as: </li></ul><ul><li>in - the variable can only be used as an input to the procedure. </li></ul><ul><li>out - the variable can only be used as an output from the procedure. </li></ul><ul><li>inout - this is both an input to, and an output from, the procedure. </li></ul>
  75. 75. Procedures are always declared as: Define the procedure name, inputs and outputs,body of the procedure. For example: delimiter // create procedure circle_area (in r double, out a double) begin set a = r * r * pi(); end //delimiter ;
  76. 76. <ul><li>RUNNING MySQL PROCEDURES </li></ul><ul><li>A MySQL stored procedure is run by using the call method: </li></ul><ul><li>call circle_area(22, @a) ; </li></ul><ul><li>select @a ; </li></ul><ul><li>In this example 1520.5308443375 would be displayed on the screen. </li></ul>
  77. 77. CREATING MYSQL FUNCTIONS <ul><li>Unlike stored procedures stored functions always return a result, they will also be one of two types : </li></ul><ul><li>not deterministic - may produce different results for the same inputs . </li></ul><ul><li>deterministic - will always produce the same result for any given inputs </li></ul>
  78. 78. <ul><li>Like procedures, all functions are created : </li></ul><ul><li>define the function name, </li></ul><ul><li>declare any inputs, </li></ul><ul><li>define the data type to be returned by the function, </li></ul><ul><li>state whether or not the function is deterministic, </li></ul><ul><li>define the body of the function . </li></ul>
  79. 79. For example : delimiter // create function circumference (r double) returns double deterministic begin declare c double; set c = 2 * r * pi(); return c; end // delimiter ;
  80. 80. <ul><li>RUNNING MySQL FUNCTIONS </li></ul><ul><li>Unlike stored procedures stored functions are used as part of a select statement: </li></ul><ul><li>select circumference(22); </li></ul><ul><li>In this case (for anyone that's interested) the result would be 138.23007675795 . </li></ul>
  81. 81. IMPORT A MySQL DATABASE <ul><li>This to restore data from a backup or to import from another MySQL server. </li></ul><ul><li>Start by uploading the FILE.sql file to the server where we will be running this command. </li></ul><ul><li># mysql -u username -ppassword database_name < FILE.sql </li></ul>
  82. 82. EXPORT A MySQL DATABASE <ul><li>Replace username, password and database_name with your MySQL username, password and database name.File FILE.sql now holds a backup of your database, download it to your computer. </li></ul><ul><li># mysqldump -u username -ppassword database_name > FILE.sql </li></ul>
  83. 83. PHP
  84. 84. WHAT IS PHP? <ul><li>PHP : Hypertext Preprocessor </li></ul><ul><li>It is an open source software and free to download to use. </li></ul><ul><li>It is a server-side scripting language, like ASP and scripts are executed on the server. </li></ul><ul><li>It supports many databases ( MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc .) </li></ul>
  85. 85. <ul><li>The PHP is very simple for a beginner, but offers many advanced features for a professional script writer. </li></ul><ul><li>Three main areas where PHP scripts are used : </li></ul><ul><li>Server-side scripting </li></ul><ul><li>Command line scripting </li></ul><ul><li>Writing desktop applications </li></ul>
  86. 86. <ul><li>ADVANTAGES </li></ul><ul><li>It Support for both structural and Oops programming. </li></ul><ul><li>It can plugin with most of the databasesand use of variables $$var. </li></ul><ul><li>It support services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) </li></ul>
  87. 87. ADVANTAGES continue.. <ul><li>PHP has extremely useful text processing features, from the POSIX Extended or Perl regular expressions to parsing XML documents. </li></ul><ul><li>Easy deployment and cost effective hosting. </li></ul><ul><li>Power ful built in functions. </li></ul>
  88. 88. DISADVANTAGES <ul><li>Security flaws due to unknown vulnerabilities . </li></ul><ul><li>Not good to create desktop Applications. </li></ul>
  89. 89. WHY WE ARE USING PHP? <ul><li>It enables programmers to create applications that will run on just about any computer, regardless of operating system. </li></ul><ul><li>If the computer can run web server software, the PHP application is portable across operating systems and environments ... PC, Mac, Linux, Windows, Internet, Intranet, etc. </li></ul>
  90. 90. BASIC PHP SYNTAX * A PHP scripting block always starts with <?php ends with ?> * For maximum compatibility, it is recommended that to use the standard form (<?php) rather than the shorthand form.
  91. 91. <ul><li>Each code line must end with a semicolon. </li></ul><ul><li>There are two basic statements to output text with PHP: </li></ul><ul><li>echo and print </li></ul><ul><li>Note : </li></ul><ul><li>The file must have a .php extension. </li></ul><ul><li>If the file has a .html extension, the PHP code will not be executed. </li></ul>
  92. 92. PHP . ini <ul><li>It is a configuration file that is used to customize behavior of PHP at runtime. </li></ul><ul><li>The Settings in which upload directory, register global variables, display errors, log errors, max uploading size setting, maximum time to execute a script and other configurations is written in this file. </li></ul>
  93. 93. PHP .ini continue.. <ul><li>The configuration file ( php.ini ) is read when PHP starts up. </li></ul><ul><li>In order for PHP to read it, it must be named 'php.ini‘ . </li></ul><ul><li>The php.ini directives allows us to set configure our PHP setup. </li></ul>
  94. 94. <ul><li>The parse_ini_file() function parses a configuration ( ini ) file and returns the settings in it in an array. </li></ul><ul><li>Syntax : </li></ul><ul><li> parse_ini_file(file,process_sections) </li></ul><ul><li>file- Required. Specifies the ini file to check. </li></ul><ul><li>process_sections -Optional.Default is FALSE. </li></ul>
  95. 95. <ul><li>The following reserved words must not be used as keys for ini files: </li></ul><ul><li> null, yes, no, true, and false. </li></ul><ul><li>The following reserved characters that must not be used in the keys: </li></ul><ul><li> {}|&~![()&quot;. </li></ul>
  96. 96. CONTENTS OF &quot;test.ini&quot; [names] me = Robert you = Peter [urls] first = &quot;; second = &quot;;
  97. 97. PHP CODE: <?php print_r(parse_ini_file(&quot;test.ini&quot;)); ?> OUTPUT : ( [me] => Robert [you] => Peter [first] => [second] => )
  98. 99. ANY QUERIES