Skip to content

Instantly share code, notes, and snippets.

View ariews's full-sized avatar

Arie W. Subagja ariews

View GitHub Profile
<?php
$sitename = 'Log Channel!'; // title atau nama web
$url = 'http://arie.malam.or.id'; // alamat web
$client = new Zend_XmlRpc_Client('alamat_ping_server');
try {
$respon = $client->call('weblogUpdates.ping', array(
$sitename, $url
));
<?php
$sitename = 'Log Channel!'; // title atau nama web
$url = 'http://arie.malam.or.id'; // alamat web
$feed_url = 'http://arie.malam.or.id/feed.atom'; // alamat feed
$client = new Zend_XmlRpc_Client('alamat_ping_server');
try {
$respon = $client->call('weblogUpdates.extendedPing', array(
$sitename, $url, $feed_url
<?php
Kohana::modules(array(
// ....
'malam-lorempixel' => MODPATH.'malam-lorempixel',
// ....
));
<?php
echo Lorempixel::factory($width, $height)->text($title);
http -f POST http://host/api/upload user=arie key=my-private-key file@/home/arie/Downloads/GosmsPhoto1340783455780ZY86773AIMI4MZ6.jpg format=json
HTTP/1.1 200 OK
Server: nginx/0.8.54
Date: Tue, 03 Jul 2012 02:06:55 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.5
{
"file": "4fedf32c6abe4GosmsPhoto1340783455780ZY86773AIMI4MZ6.jpg",
<?php
public function save($model, $value, $loaded)
{
return $this->set_slug($value);
}
<?php
public function save($model, $value, $loaded)
{
if ($loaded)
return $value;
else
return $this->set_slug($value);
}
SELECT log_activity FROM logs WHERE log_date BETWEEN '2010-10-03' AND '2010-10-05';
<?php
Jelly::select('log')->where('log_date', 'BETWEEN', array('2010-10-03', '2010-10-05'));