PHP Archive

  • admin

    fetch the records through ajax and jquery in json format using kohana

    HI All, After spending lot’s  of time, i got result in josn format in kohana. I want to fetch all records of last 3 minutes of comment table and it will display on my site after check is record already show on browser or not. As...

    Full Story

  • admin

    How to manage languages in kohana

    To manage language in kohana you must define variable in languages file. First of all you will make a directory i18n under application directory.  Now you will make a folder of all languages which will be run on your site such as for english you...

    Full Story

  • pallavi@witslog.com

    Define variable in Kohana using Config File

    How to make the global variable in Kohana – To get the value of the variable which is used globally into the website. For it you have to set the variable in config file of Kohana. For it, you have to open the file - Kohana ->...

    Full Story

  • admin

    Read RSS feed XML using CURL in PHP

    // create a new cURL resource $ch = curl_init(); $url = “http://witslog.com/wiki/?feed=rss2″; // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, $url);  // you have to set the url of the website of which you want to get the rss data curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass...

    Full Story

  • admin

    Create a Basic Web Service Using PHP, MySQL, XML, and JSON

    Web services are taking over the world. I credit Twitter’s epic rise to the availability of a simple but rich API. Why not use the same model for your own sites? Here’s how to create a basic web service that...

    Full Story

  • admin

    Make a custom helpers in kohana for encrypt data

    First of all, we make a helper file in helper folder under system directory. Suppose my helper name is encryptdata.php then class name must be encryptdata_Core. _Core will be added in class name when you want to use as a helper file. Script for Custom Helper...

    Full Story

  • admin

    Auth Module with SPRIG Library in Kohana

    Hi Guys please take a look on following article for working with auth module with sprig in koahana. Basic Process Download and install the Sprig Module Create a users table in your database Set up your template controller to redirect users who are not logged in Create and...

    Full Story

  • admin

    get and set kohana config value during real time manipulation

    You can now directly set and get the config value of Kohana by this way: Set Config value in Kohana: Kohana::config_set(filename.variablename, value); for example: suppose we want to change language  from Danish to English Kohana::config_set(‘locale.language’, array(‘en-us’,'United States’)); here locale is config filename while language is variable which lies in locale.php.  You...

    Full Story

  • admin

    Wordpress

    WordPress is an open source blog publishing application powered by PHP and MySQL which can also be used for content management. It has many features including a workflow[clarification needed], a plugin architecture and a templating system. Used by over 2% of the...

    Full Story

  • admin

    Kohana

    Kohana is an open source, PHP5, web application framework that uses the Model View Controller design pattern. It aims to be secure, lightweight, and easy to learn and use.[2] It supports only version 5 or higher of PHP in order to make full...

    Full Story