Category: PHP / MySQL
We can find absolute path in different ways on a web server using PHP, I am showing some of that practices here echo realpath(dirname(__FILE__)); //…
Leave a CommentToday’s post is about password validation in PHP using Regular Expressions. Here is the small use full Password Validation function. Password Regular Expression Pattern The…
6 CommentsUsing the below script, you can auto refresh the output of your PHP script in a browser. Place the code on the first line of…
Leave a CommentThis post is about data retrieving from MySQL database table using PHP. The bellow PHP script will give you Unordered list format output. Before doing…
Leave a CommentThis post is about removing empty elements from the given array using PHP. Here is example $test_array = array(‘foo’, ‘bar’, ”, ‘sleep’, ”,null,’arjun’); $test_array =…
Leave a CommentI always use this Base Controller for My CodeIgniter App Development, It makes my app portable and flexible.We can define all Global settings in Base…
6 CommentsGET data is simply disallowed by CodeIgniter since the system utilizes URI segments rather than traditional URL query strings (unless you have the query string…
Leave a CommentThis script will allow you to upload files from your browser to your hosting, using PHP. Uploading Files to a server can be broken down…
Leave a CommentOpen a notepad, and put the following code: This should be saved as test.php in the document root of your server. If you then see…
Leave a CommentHere is my Array with some stuff $myArray = array(‘key1’ => ‘value1’, ‘key2’ => ‘value2’, ‘key3’ => ‘value3’); What if you need to count the…
Leave a CommentToday, we are Going to Use Codeigniter URI Segments to rule all Methods within the controller, means one Controller will load views based on the…
Leave a CommentSource from : http://php.net/manual/en/function.get-browser.php
Leave a CommentFunction 1 : array_rand Get a random variable in an array. $sites = array (“google.com”,”Bing”, “yahoo.com”, “php.net”, “apple.com”); $k = array_rand($sites); echo $sites[$k]; Function 2:…
Leave a CommentForcing visitors to use SSL can be accomplished through your .htaccess file using mod_rewrite module. we have to force browsers to use secure connection only…
Leave a Comment