Skip to content

Instantly share code, notes, and snippets.

View sagar290's full-sized avatar
🏠
Working from home

Sagar sagar290

🏠
Working from home
View GitHub Profile
@joseph-montanez
joseph-montanez / README.md
Created March 4, 2012 01:37
JSON-RPC server in PHP

== JSON-RPC ==

This is designed to have to autoload calls and return a json object. It supports PHP 5.3's namespaces, and relies on PHP's built in Reflection.

Example: htttp://localhost/rpc.php?0={"method":"foo\myclass::hello","params":[], "id":2}

Returns: {"result":"Hello World","error":null,"id":2}

@helen
helen / repeatable-fields-metabox.php
Created January 11, 2012 04:42
Repeating Custom Fields in a Metabox
<?
/**
* Repeatable Custom Fields in a Metabox
* Author: Helen Hou-Sandi
*
* From a bespoke system, so currently not modular - will fix soon
* Note that this particular metadata is saved as one multidimensional array (serialized)
*/
function hhs_get_sample_options() {