Posts In "PHP"

Free Twitter Clone Script Based on PHP

September 6th, 2010 by aditia rahman / 4 Comments  

     

In this post I want to share a Twitter Clone script built on PHP, maybe this useful for you who want to start your own microblog or just to study the file structure to build from scratch.

Status.net

- StatusNet is the open source microblogging platform that helps you share and connect in real-time within your own domain. With StatusNet you can encourage collaboration, build and engage your community, and be in command of your brand. -

Status.net

Free LightWeight PHP Editor

August 30th, 2010 by aditia rahman / 8 Comments  

     

My favorite editor sometimes give me a bit motivation to finishing the project, when finishing a project, maybe I could would say, “wow I only use this editor to finish this great project”, event though my current favorite editor is Netbeans, in this post I only talking some lightweight PHP editor, not the full IDE, and maybe this is useful for you who still use the very old PC, about two year ago I’m still using them too, they are bluefish and geany.

Passing Json Format from PHP to ExtJS

August 22nd, 2010 by aditia rahman / No Comments  

     

When I wrote my previous post, there are some function in PHP that sent the output as Json format to be used in JsonStore component, sometimes I create the json format manually with string concatenation, looping through the data, this is quite simple actually, but I write this post because when I got an error from this json format, it make me feel a bit dizzy  for example:

$query = $this->db->get('products');
$json = "{'products':[";
foreach($query->result() as $data)
{
	$json .= '{"id":"'.$data->id.'",
				"name":"'.$data->name.'",
				"price":"'.$data->price.'",
				"image":"'.$data->image.'"},';
}
$json .= "]}";
echo $json;

PHP Development Stack, What’s Your Choice

August 12th, 2010 by aditia rahman / 2 Comments  

     

If you are really new to PHP programming you must be started by installing the software environment, for me the first time it really frustrating, especially when I’m installing on windows, in ubuntu linux there is a faster way to installing the software one by one by installing from the available repository, but this software stack that I mention below can provide even faster installation step for you to getting ready on developing PHP based application.

php dev stack

Another List of PHP: The Template Engine

August 1st, 2010 by aditia rahman / 4 Comments  

     

PHPTemplateEngineCollage

Before the knowing the php framework I usually work with php template engine, Smarty was always be my choice (look like the project still active till now), I don’t know whether php developers outhere still using the template engine for their project, cause many web framework now providing some great API to create html page and maybe that can replace the template engine, but the php template engine has give a great contribution to php development before the flood of php framework came along.

Get Latest Tweet Using ExtJS DataView and PHP

July 27th, 2010 by aditia rahman / 5 Comments  

     

Recently I love twitter, even though I didn’t tweet too often, cause I found many great link from the people that I follow. In this post, I want to create a little twitter client to getting the latest tweets by specific username using ExtJS DataView, cause the app are just getting the tweets the it doesn’t have to authenticate the users, let get straight to the code:

Extjs: Simple Image Gallery Using DataView and PHP

July 21st, 2010 by aditia rahman / 18 Comments  

     

Last week I tried some of the extjs dataview example, it really great, just my thought, why not creating simple image gallery with dataview? All that we need is provided in the example (the panel, fileinputfield, the xtemplate) and this is the page wire frame that I created using Pencil Firefox Plugins.

Ext JS Dataview Gallery Wire Frame

Create Spy With ExtCore

July 6th, 2010 by aditia rahman / No Comments  

     

This post is a sort post describing how to create simple spy, if you don’t know what the spy yet, check the digg spy, that is very cool infographic to displaying updated content from it users, but when this post is created digg using flash technology to pooling data from the server, but this post using extcore to pooling data from the server, and the code is not really have big different from my previus post, I just create single file and include one js file (it’s the extcore.js file of course), that file i called “index.php”, now here we go.

Cropping Image to Square Dimension Using PHP

July 1st, 2010 by aditia rahman / 2 Comments  

     

When I wrote my previous post about creating image gallery with codeigniter, I browse some popular image sharing service, and I spent most of my time in flickr, till now I think flickr is still the best photo sharing on the net, when we search on flickr, there are many result that displayed only the thumbnail photo, for example you can see on the screen that I captured

Search Home Design On Flickr.com

Basic Image Gallery With CodeIgniter

June 27th, 2010 by aditia rahman / 30 Comments  

     

CodeIgniter is quite mature framework to creating web application, the built in libraries and helper very helpful to creating most feature in web application, this post I want to create very basic image gallery using CodeIgniter, the the built in libraries that I used are File Uploading, Image Manipulation and Pagination, whereas the used helper is URL Helper, and here’s we go

First open the config.php in folder system/application/config/ and set the CodeIgniter base_url

$config['base_url'] = "http://localhost/ci_gallery/";

Next load the URL Helper in autoload.php in the same folder as above file

$autoload['helper'] = array('url');

Now create the image controller in file image.php inside folder system/application/controller and add this attribute inside the image class

private $data = array(
    'dir' => array(
        'original' => 'assets/uploads/original/',
        'thumb' => 'assets/uploads/thumbs/'
    ),
    'total' => 0,
    'images' => array(),
    'error' => ''
);