Category Archives: PHP

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 »

PHP – Form Validation

In forms, some of the fields are important and it is necessary that we validate it those fields are filled or not. PHP supports two types of validation: Client-side validation– validation is done on the client-side web browser. Server-side validation– after the submission of the data, the data is sent to the server where it is being validated… Read More »