Skip to main content

Posts

Showing posts with the label Php

Eden: PHP Library To Get Things Easy For PHP Developer

Eden is PHP Library designed for helping developers in their rapid development work. In Our most of the project we have to integrate our developed website or application with most of  the social networking websites like Google, Facebook, Twitter, yahoo etc. so what we do is we integrate libraries of different websites differently Although We could make the code reusable but still if the websites increases then confusion will also increases. Adding different libraries form different sources add more complexity to your project and ends up to be hard to maintain. Eden simply a set of reusable components, that works with any PHP framework and CMS. Eden makes code logical and readable with dead simple syntax. Eden Will work With Most Of Web services including Amazon Web service Facebook Foursquare Google twitter tumbler Paypal Yahoo You could Download the File From  Eden Official Website  and Can use this will just a simply including this...

Object Oriented Programming (OOP) in PHP

Hypertext Pre-processor (PHP) is a server side scripting language that means it is operated and executed on the server that means the result will be shown to your browser and it really doesn’t depends on browser.PHP is pa procedural language and you can do each and everything with PHP you can do using Object Oriented(OO) approach. Objects Oriented Approach is just a mean of simplifying the situation.  You could see it in a way as “Include and Reuse”. Object Oriented Programming simplifies web-development by eliminating the need to Cut, Paste and adapt existing code. The biggest argument about the OOP is that OOP is something that is for the large group of developers that means if a number of programmers are involved in the same project, an Object oriented Programming is required because in that environment   there is a great need of Collaboration between the programmer. But a Lone Developer doesn’t need to worry about these things. But a lone developer can easily u...

Some basic concepts of PHP

Sometimes some basic thing in PHP confuses us a Lot e.g difference between double quotes and single quotes , difference between echo and print etc. Although when we use these on one another place then everything works fine but there is some basic difference between the working of those. so today we going to understand some such type of basic things in PHP. Single Quotes and Double Quotes      Single quotes will just put exactly what is inside it single quotes can never sense any variable in its scope but Double quotes will evaluate first what is given in it. e.g. $variable = 'some string'; echo '$variable'; // Output will be $variable echo "$variable"; // Output will be Some string But if we use it for a simple string then output will be same in both cases and also the biggest difference between both it their processing speed. Single quotes are much faster that double quotes. its quite difficult to see in small programs....

Wordpress Template Cheat-Sheet

Wordpress is the Most widely used CMS(Content Management System) now a day So with its major use there is a high demand of its templates. Wordpress is CMS Which allows you to write less and Do more means you have to  write really less code to built a wordpress template. There are Lots of books on the web which can tell you taught you a lot about the wordpress and here i am with a little introductory sheet for the newbies who want to learn wordpress template. In wordpress CMS there are already built functions which we can use directly into our code and everything will be start working Here is the Sheet. Hope it will help you thanks....

Playing with HTML Dropdowns Select Lists Using PHP, Mysql, Jquery

Hey friends, While making a form we found ourselves in a condition when our one dropdown is based on previous dropdown Means when we select something in the upper drop down and then Option of Next dropdown is based on the previous selection. So my this tutorial is all about this concept. So we are going to use HTML, JQuery, PHP,Mysql. So lets start.  Note: This Program Is Not Difficult To Build but the requirement is to understand the key functionality of this whole script. Such as : Getting The value from the Element using Jquery Sending that value to another page using jquery post function Receiving the Result of Post Function DownLoad first of all we want to create a basic structure of our page. So lets finish that first.  <div class="container"> <header> <h1><strong>Playing With Select List</strong></h1> <h2>Select One List To see Output On Other</h2> </heade...

Username Availability Check Using Jquery, PHP, Mysql, Ajax

When We try to Register for any website and On the Username Field We just type your desired Username and within Seconds Without Refreshing the Page the system Checks if the username Is Available or Not so today's my tutorial is based on the same functionality. we have Following 4 Files in our Directory And Each file is going to perform its own function.   Index.php user.js  db.php username_check.php     Following Function Will Be Performed When Our Username is being Checked Download Username is fetched from index.php and send to the server for checking. if the username is taken then an error message will be shown else there will be a available message. so lets start First we have To create a index file. I am not using any stylesheet for this. its just an simple form without any formatting or styling. so here is the code for index.php file <!doctype html> <html lang="en"> <head>...

5 ways to Learn PHP Online for beginners

PHP is the most widelly used scripting language now a day. It allows developers to generate the dynamic content easly. It is a server side scripting language that means its code is executed on server And Result in HTML form is shown to our browser And the result is in the form of HTML. One of the reason behind its success is that its support to different databases and there are many more reasons behind its success So if you are a beginner and you want ot start learning PHP and Don't know where to start we have 5 ways to learn PHP online. 1. PHP.NET official PHP website.   This is the Offical website of The php. It contains each an every thing about the php and One good thing about php.net is that users also give their contribution to make users comfortable in learning through comments. 2. LYNDA.COM  This contains a video tutorial list from beginner level to master level  so now you can learn by watching videos online. 3. W3SCHOOLS  w3schools its ...

Login System Using PHP, Mysql ,Ajax And Twitter Bootstrap

Today we are going to create a Login System using PHP, Mysql('As Database'), Ajax(' For scriptin') And Twitter Bootstrap('For Designing'). Although we can create an simple log-in system but the major disadvantage of this type of log-in system is that your page is refreshed every time when you press submit or Log-in button this is such a waist of time and bandwidth. So the better way is to create an login for with Ajax so if your username and password is correct only then you page will be refreshed and you will be sent to the next success page So lets We Start.... DOWNLOAD An twitter Bootstrap Is being Used for the Designing. So making an login form is easy using Bootstrap. Read Full Artical Here Creating An Form  <form class="form-horizontal" method="post" action="" id="login_form"> <div class="control-group"> <label class="control-label" for="username...

AutoSuggest Using Jquery/Ajax ,PHP, MYSQL

Simple Text-field is normal. Lets try something new so now we'll dissuss about autoSuggest text-field. You can use it your Registration Form or as per you need. Its very classy. All Thanks goes to jquery. You need a database from where suggestions are displayed on client machine. For this purpose you need to create a database and upload the .sql file which is in the Zip folder.Include jquery scripts in head section of html. Steps are simple just create a php file and use its code in html file. Download Requirements: HTML Jquery Ajax MYSQL PHP In the PHP code which is saved in rpc.php lookup( ) takes the word from the input box and POST it to the rpc.php page using Jquery and Ajax  POST call. If input string contains '0' it hides the suggestion box otherwise displays suggestions as per in the database. We take the input string and post it to the php page using $.POST( ) <input id="inputString" onkeyup="lookup(this.value);" type=...