PHP Code 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

  • 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