This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Kohana::modules(array( | |
// .... | |
'malam-lorempixel' => MODPATH.'malam-lorempixel', | |
// .... | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo Lorempixel::factory($width, $height)->text($title); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http -f POST http://host/api/upload user=arie key=my-private-key file@/home/arie/Downloads/GosmsPhoto1340783455780ZY86773AIMI4MZ6.jpg format=json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function save($model, $value, $loaded) | |
{ | |
return $this->set_slug($value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function save($model, $value, $loaded) | |
{ | |
if ($loaded) | |
return $value; | |
else | |
return $this->set_slug($value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT log_activity FROM logs WHERE log_date BETWEEN '2010-10-03' AND '2010-10-05'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Jelly::select('log')->where('log_date', 'BETWEEN', array('2010-10-03', '2010-10-05')); |