Tag: PHP

How to load or store CodeIgniter view in variable

How to convert multi-dimention array key to string type

For using full processed view page in variable you can use CodeIgniter parser library class. Below is example code for how to get view output in variable. Process will helpful in many cases like, if you want to…

  Read More »

php form spam protection without captcha

How to convert multi-dimention array key to string type

Protect your web form from spammer by using dynamic hash. PHP form “hash field” technique gives confirmation that server side received post data comes from sites original web form. This “hash field” technique is simple to implement in…

  Read More »

Validation with regular expression in javascript and php

jQuery-PHP

How to validate phone, email etc., using regular expression in javascript and php. Here is simple example use of REGEXP and list for huge source of regular expression. You can found unique REGEXP that will validate different type…

  Read More »

How to set session for specific time

How to convert multi-dimention array key to string type

Set PHP session timeout or session expire automatically process after 10 minute using easy PHP code. PHP session will timeout default once given time interval over.

  Read More »

PHP remove element from array by value

How to convert multi-dimention array key to string type

Remove element from php array by value in just 3 simple line code. PHP array functions are cool for doing this process. For removing element from array we need to provide key, but when we want to delete…

  Read More »

How to work with Ajax PHP and JSON

jQuery Ajax PHP

Example for get data from database in json format with use of php and ajax. Get json data from server in 2 easy steps. If you are beginner for Ajax and PHP with jQuery, you will found this…

  Read More »

PHP access variable dynamically

How to convert multi-dimention array key to string type

Access variable value dynamically using variable variable. A variable variable takes the value of a variable and treats that as the name of a variable. We can run time access any variable dynamically by $$(variable variable).

  Read More »

Get referrer value in php and javascript

jQuery-PHP

The referrer is the page URL that originally generated the request for the current page view or object. For accessing referrer value in PHP and javascript use $_SERVER and document object.

  Read More »