Category Archives: PHP examples

How to send HTTP requests from iOS

Hey pals, today we talk about how to send HTTP GET and POST requests to a server from your iOS application. This post I am implementing server side also. Therefore we will use localhost as our server. Next speciality is, … Continue reading

Posted in iOS, PHP examples | Tagged , , , , | 2 Comments

Encapsulation in PHP and Java

When we are talking about Object Oriented Programming (OOP), Encapsulation acts a major role. Here I am not going to describe what is Encapsulation, because there are lots of definition in the web rather than mine 😉 Just have an … Continue reading

Posted in Java, PHP examples | 2 Comments

How to validate a File Field in PHP by using JavaScript

This post is relate to my previous post where I have showed you how to insert an image. The place that we have been provided to upload an image is same as uploading a file. So we as developers, have … Continue reading

Posted in Javascript, PHP examples | Leave a comment

How to insert an image to a MySQL table in PHP

Hi, guys 🙂 Don’t think this is another post of inserting some data to a MySQL database. Because you cannot upload an image and store it in a database as you do in normal values. You have to use basename … Continue reading

Posted in MySQL, PHP examples | Leave a comment

How to validate a Text Field in PHP by using JavaScript

Today I am going to show you how to write a simple JavaScript function. The scenario is, by the time I click my submit button if there are empty text fields in the form, an alert message will display with … Continue reading

Posted in Javascript, PHP examples | Leave a comment

Compare connecting MySQL database in Java and PHP

Today I want to write something different. So I thought to write how to connect with MySQL database in PHP and Java. This is not a comparison, I just want to get those two different things in to single a … Continue reading

Posted in Java, MySQL, PHP examples | Leave a comment

Retrieve data from MySQL table and generate XML in PHP

     Hi, guys. Today I am going to explain about retrieve data from a MySQL table and show them in a PHP web page but in XML format.

Posted in PHP examples | Leave a comment