Category Archives: PHP

Core PHP and Frameworks

There is some difference between core PHP and the frameworks. Core PHP is the basic programming language that allows developers to create dynamic web pages without any need of an extra library which may not be possible if you work with PHP framework. So it is somehow important that you learn about the Core PHP programming to understand… Read More »

PHP – DOM Parser

DOM parsers work well with both XML and HTML. This parser is tree-based where DOM first loads the data into the Dom object then it will load the data to the browser.  Below example will help you to understand how to access the HTML data in the web browser. Example: <?php   $html = ‘       <head>          <title>DATA</title>      </head>       <body> … Read More »

PHP – Simple XML GET

XML has a GET method that will allow you to get the node values from the XML file using the PHP code. Below is some example that will help you to know how data is accessed from XML. Detail.xml file which can be accessed via PHP- <DETAIL> <COURSE>CS</COURSE> <COMPANY>JUST-TIME</COMPANY> <PRICE>$10</PRICE> </DETAIL> Now we will create a file (index.htm)… Read More »

PHP – Simple XML

This simple XML parser will parse the name, containing attributes and the text content within the simple XML file. These are tree-based parsers. PHP supports some of the XML functions that are described below. simplexml_load_file()- this function has five parameters among which the first parameter is mandatory as it takes the file path to load the XML file.… Read More »

PHP – XML introduction

What is XML and how you can use it with PHP XML which is a mark-up language allows you to share data across the network. XML is tree-based and event-based. PHP supports four XML parsers that are based on libxml, those parsers are- simple XML parser, DOM XML parser, XML parser and XML reader. Simple XML parser- these… Read More »

PHP – AJAX Search

You can include the AJAX code within the PHP code that allows you to communicate web pages and the webserver. Below example gives you an outlook on how you can use search filed with AJAX and PHP working together. Check more about PHP – AJAX Search below. PHP – AJAX Search Below code will open the file (demo_file.php)… Read More »