Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Explanation of php_uname

php_uname function is used in php for getting information about the operating system ,host name, release name, version information and machine type.This method is used in php for returning a description of the current operating system in which yo...

PHP and AJAX

AJAX is a topic which comes under PHP AJAX Stands for Asynchronous JavaScript and XML. AJAX is used to update segment of web pages, without refreshing the whole page. By using AJAX we can create dynamic web pages easily and very fa...

Where to use isset() or empty()?

isset() and empty() are the function of PHP which are used to check whether the variable contains some value or not. The major difference between them is:: isset() is used when we want to just check whether the variable is set or not. It re...

Fetching Data from database using php

To fetch a data from database by using simple PHP code,  firstly create a connection to the database by using simple query and create a login form using HTML code for entering values through user. on clickinng submit button, This form will b...

Difference between isset(), empty() and is_null() functions

In PHP we have three different functions which can be used to test the value of a variable. They are isset(), empty() and is_null(). All these functions return a boolean value. But in case if these functions are not used in correct way they can c...

Creating database using php.

Database in php can be Created by using the four argumnets:- Servername,Username,Password and dbname. This will give the information about the server like a using 'localhost' username as 'root' and password should be of users ...

Code to fetch form data to database

Here is a simple program code to enter the form data to the database using php. HTML Code: <!DOCTYPE html> <html> <head> <title>Form To Db</title> <style type="text/css"> .container{width: 80%;...

How To Upload File in PHP

Below we first creating a html form, which contain a field for uploading a file and a submit button for submiting form. <html> <body> <form action="file_upload.php" method="post" enctype="multipart/form-data"> Sele...

Simple code of php for making tree using asterisk

Simple code of php for making tree using asterisk It is easy to make tree using php in less no. of line of code. Here are few line of code that will help you to get desired output by using for loop with three variable i,j and k or this can be ...

FORM HANDLING IN PHP

Below is a  simple html form which have two input type fields and submit button :- <html> <body> <form action="form_post.php" method="post"> Name: <input type="text" name="name"><br> E-mail: <input...

$_GET and $_POST methods in php

Explanation of GET and POST methods in php GET and POST are treated as $_GET and $_POST in php. These are superglobals, which means that they are always accessible. $_Get: This is used as an array of variables and passed to the current scrip...

Sorting function in php

Php sorting function of an array:  sort()  -This will sort an arrays in ascending order.  rsort() -This will sort arrays in descending order  asort() -This function will sort associative arrays in ascending order, ac...

Pattern Desigining in PHP

Hello Reader! All of us must have designed a code to print pyramid or some other pattern of asterisk using C, C++. Here is a simple program to print the different asterisk(stars) patterns in PHP. A pattern of stars is a way of arranging these in ...

PHP Global Variables

PHP contains many predefined variables from these predefined variables many are superglobals, It means that we can access all these variables from any function,file or class without having any problem. Below are some PHP superglobal variables:...

How to read a file in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to to read a file in php ? If you want to read a file in php the you should use readfile() function. This function reads a file and writes it to the output buffer. It...

What is process to pass arguments to PHP ?

Hi Reader's,   Welcome to FindNerd, today we are going to discuss how to pass arguments to PHP ?   If you want pass some arguments into function and elements of an array.   Then Your arguments will be receive by your funct...

How to use cookies in Codeigniter

Hello Reader's if you are making the auto login sign up form then you must have to use the Cookies. In core php you have to write the long syntax to handling the request to Cookies. Now Codeingiter offers developers to load the nessasry code...

PHP Session

when we work on an application ,the fist thing we do is open it we do some updates on it and then close it, this is similar than an session. the system know who we are,it knows every thing i.e when we start working on application, when we closed ...

useful things you can make from URL in codeinter

Hello Reader's in this blog we will see most usefull things which you can make from your website URL, by using codeingter. Lets talk about the SEO freindly URL. In some site you have seen the URL's are very clean and short. This is imp...

How to make shopping cart in Codeigniter

Hello Reader's if you are developing the project in Codeignter then CI offers you a lot more featured libraries. Shopping cart is on of them. Now in this blog we will see how to develop shopping cart by Library. Suppose your website offers you...

How to print all the files in a directory using PHP

Hello Reader's if you need to get all the files that exists inside any directory then you can get it by using codeigntier FTP class library. This is quick and very easy to get result. For example if you have amazon S3 bucket and you wish to get...

What is process to use base64_encode() in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss How to use base64_encode() in PHP ? So,basically base64_encode() is used for converting any string into MIME base64. If you want to convert any string into MIME base64 the...

SORT FUNCTIONS FOR ARRAY IN PHP

Below are the php sort functions use for sorting an array in php. sort() - This sort function is used for sorting an array in ascending order in php. rsort() - This sort function is used for sorting an array in descending order in php. as...

Which Code Editor is Best to teach PHP?

So Friends, There are such a variety of decisions out there nowadays with regards to composing PHP code. Here are only a couple of prevalent IDE: Notepad++ NetBeans Superb Text Dreamweaver jEdit Eclipse What's more, there are...

How to validate coma seperated emails using Javascript

Hello Reader's, If you are developing the form for multiple email address as input, then you need to validate each email individually. You can do it by validating on submit or after submit. By using the Jquery script you can do it on user end,...

Custom Taxonomy in the Word press

We can add taxonomy to our custom post type. Adding taxonomy means adding new category option in our custom post type. We use taxonomy to basically categorize the data. We create the groups of the similar type. To add custom taxonomy ...

Widgets in the Wordpress

Widget is used to add feature to you sidebar or anywhere we want to. We can just simply call the widget in footer or anywhere we want to add it. It is an easy way out to add feature to your page To add widget Go to Appearance > Cus...

Pagination In Wordpress

We can add pagination to our page. In wordpress we can split multiple post in different pages. We can set how many post per page we want When multiple loops are used in a theme template file only one loop, the main loop, can be paginated...

Wordpress Custom Post Type

We can create our own custom post types. We can call them whatever we want. They are content types like posts and pages. We create a custom post type for adding different feature to our website. We can add category to our post. Fo...

How to add Breadcrumbs Without a Plugin in WordPress

Breadcrumbs is very useful in navigation. It is defined as a navigation technique that offers link to the home page to the user navigated through to arrive at the current post/page.There are so many plugins that is used to add breadcrumbs in word...

How to replace login logo with custom logo in wordpress

When we go to the WordPress login page , we see the default WordPress logo there written "WordPress". We can customize it and can put any of the logo in place of that wordpress default logo. It's easy: just open your functions.php file and pas...

How to use link() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use link() function in php ? Basically the link() function is used for creating a hard link from the existing target with the specified name link. The link() functio...

How to use glob() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use glob() function in php ? Basically the glob() function is used for returning an array of filenames or directories matching a specified pattern. The glob() functio...

How to reads a file into an array ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to reads a file into an array ? If you want to read a file into an array then, you should use file() function.This function reads a file into an array. syntax of file(...

How to hide menu from WordPress admin panel

Sometimes, we see that the clients who do not have any technical knowledge messups with WordPress settings after logging with WordPress admin panel. We can hide the menu from wordpress admin panel by which the client can only see some menu/option...

What is process to find OS version from web browsers using PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to find OS version from web browsers using PHP ? If you want to get the OS version which you are using. Then you can use the library code below:- <?php //here cra...

How to call featured image in WordPress

If we are making a custom wordpress theme , we can call any feature image attached with any post or any custom post. Wordpress have by default option for feature image. We can upload the feature image to any post or any custom posts. We can ca...

How to print HTML code of any website using PHP

Hello Reader's if you want to get all of the HTML code of any website then you use the function as below:- The first way is by using PHP in built function url fopen, and its code will go like this:- $ShowHTML = file_get_contents('http://fin...

How to generate 8 digit random string password in PHP

Hello Reader's you want to generate the 8 digit password with random characters (lower case, upper case and number), Then this function will work for you. Lets see how genrate the password :- $ASCIRangeFrom = 48; $ASCITo = 122; $MakeRan...

How to make validation for credit card using PHP

Hello Reader's if you need to make validation of credit GivenCard using PHP then is blog will be helpful to you. This is only making the validation on user side you should better use seconder validation on payment gate way also. So the code lib...

How to check if a given date is Sunday by PHP

Hello Reader's if you are looking for making the function which detect if a given date is weekend or not then this code will help you. This is a PHP function which will use the date as a input param and will print if its weekend or not. So the ...

How to set anchor on email and urls using PHP

Hello Reader's! If you are looking for code that make your plain MyStringPlainText urls and emails into anchor format then you can use the code function as below:- <? function SetTheAnchor($MyStringPlainText) { $MyStringPlainT...

How to get current file name in PHP

Hello Readers if you getting in codition where you have to find the current file name then this blog is very helpful to you. Suppose you are making user redirect only when he is in account.php then you just have to fine the file name. <?p...

How to get playtime, height and width of a vedio by PHP

Hello Reader's if you want to get the details about the vedio from your local server then you can use the code liberary as below:- $ffmpeg_path = 'ffmpeg'; //or: /usr/bin/ffmpeg - depends on your installation $vid = 'PATH/TO/VIDEO'; //Rep...

How to run php code when click action occur on link

Hello Reader's, If you want to run PHP code when user click any selected anchor tag then you can use the Jquery for this. Lets see how you can run this code. First you have to write the onlclick action on the anchor tag like this:- <a hr...

PHP Condition checking on multidimensional array

Hi Readers, We all have used array_values, but we use array_values just to get the values from an array. However, we can do much more than that with the help of it. One of it's alternative use of array_values is in a situation wher...

How to removes a directory in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to removes a directory in php ? If you want removes a directory then you should use The rmdir() function that is removes an empty directory. The rmdir() function retu...

What is process to unlink a directory in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to unlink a directory by using PHP ? The unlink() function is used to deleted a file.unlink() function returns TRUE on success and FALSE on failure. syntax of unlink(...

How to check validate url in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to check validate url in php ? If want to check validate url in php then you can use FILTER_VALIDATE_URL.This is filter validates a URL. you can see below example &...

What is process to get the vedio views from youtube using API in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to get the video views from youtube using API in PHP ? If you want to see the total counts of a views on youtube video by api, then you should use below code: <?php...
1 5 15
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: