Login   Register  
PHP Classes
elePHPant
Icontem

File: exemplo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gustavo de Arruda Paes  >  Simple JSON DB  >  exemplo.php  >  Download  
File: exemplo.php
Role: Example script
Content type: text/plain
Description: Example file
Class: Simple JSON DB
Store and retrieve data from files in JSON format
Author: By
Last change:
Date: 4 years ago
Size: 296 bytes
 

Contents

Class file image Download
<?php
require "json.db.php";

$video = new JsonDB();
$video->set("type""youtube")->set("url""http://youtube.com/watch?v=ASD123ASDF")->save("video.json");

$video2 = new JsonDB("video.json");
$video2->set("type""vimeo")->set("date"date("Y-m-d H:i:s"))->set("int"18)->save();

?>