Archive

Archive for the ‘PHP’ Category

How to Use Tor Project Anonymous IP with Curl PHP on Linux

June 15th, 2010 admin No comments

This article explains how to utilize Tor project in our own PHP application using Curl Library.

Tor is free software and an open network that helps you defend against a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security known as traffic analysis.

We start by installing and configuring Tor and the necessary software then we create a simple application that fetch a website address anonymously.

Read more…

  • Share/Bookmark

CodeIgniter Tutorial: [Creating Accounting Application] Part 5 The Mainpage

May 4th, 2010 admin 7 comments

Well I’m sorry, it’s been so long for this part to come.. I had been working very hard on some clients and don’t have enough time to write. Here’s what I had been done if you’re curious :) : http://maps.GpsTrackingIndonesia.com, www.SunberryCorp.com, www.mypushme.com, www.kulacak.com, www.web2trace.com, www.pushmeportal.com, … The fun is almost all of them was written with CodeIgniter :) .

Ok, let’s start with the easiest one first. We will create a simple menu page that contains links to other modules on the system. We put it on the Mainpage controller class.

Look at the Mainpage.php controller file. There is a function on it named exactly the same with the filename: Mainpage(). This should be exactly the same including the case. This is the constructor or initialization function of the class. Each time the class is called or instantiate, this function is called automatically. We put some initialization lines inside it:

Read more…

  • Share/Bookmark

NetBeans IDE 6.8 Released

December 15th, 2009 akhmad daniel sembiring No comments

NetBeans™ IDE 6.8 offers best-in-class support for the entire Java™ Platform Enterprise Edition 6 specification and the Sun GlassFish™ Enterprise Server v3 platform. Simplify Java application development with Java EE 6 language features: less XML configuration and more POJO-like development; easily target and deploy to GlassFish v3.

NetBeans IDE continues to be the tool of choice for top development languages, and this release includes new features and improved support for PHP 5.3 and the Symfony framework, the latest JavaFX™ SDK 1.2.1, C/C++, Ruby, Maven and more. Integration with Project Kenai, a collaborative environment for hosting open-source projects, now offers full support for JIRA, as well as improved issue tracker integration. As always, the NetBeans Platform provides a rock-solid application framework that can save years of development time.

Supporting Java EE 6 improvements first, NetBeans IDE 6.8 boosts developer productivity and lets developers take advantage of today’s latest languages and platform features.

NetBeans IDE 6.8 is available in English, Brazilian-Portuguese, Japanese and Simplified Chinese.

Get Tomorrow Today with NetBeans IDE 6.8!

Read more…

  • Share/Bookmark

CodeIgniter Tutorial: [Creating Accounting Application] Part 4 Preparing to Code

September 15th, 2009 akhmad daniel sembiring 27 comments

Generate PHP Code

After installing StarUML PHP 5 Code Generator Template , StarUML will have a capability to generate PHP template code based on the models we have defined before. But there’s a little hack to be done so that the naming of the file generated complies with CodeIgniter.

These PHP template code files can be used to simplify our jobs by not typing all class’ attributes and methods that we have done in the UML design and analysis phase.

Read more…

  • Share/Bookmark

How To Use CodeIgniter Pagination Class with Database

Pagination class is very useful when we are handling a very large set of data. With it, users can see a page of data sets for only 10 or 20 rows and provided with page navigation where user can go to the next and previous page or directly jump to a page number. CodeIgniter has a class for doing this, but we must make a link to the data to be paginated to make it works correctly.

This article show you how to make the link between pagination class and database class to make the pagination works on a table that has a large set of data inside it.

Read more…

  • Share/Bookmark

CodeIgniter Library to Create Google Maps Encoded Polylines

This class is used to encode a number of coordinates into an encoded polylines to be used in Google Maps. The code is originally from Jim Hribar http://www.jimhribar.com/cgi-bin/moin.cgi/PolylineEncoder and is rewritten by Gabriel Svennerberg www.svennerberg.com into a class and modified by me into CodeIgniter library. The code is written using the methods and algorithms found in the work of Mark MacClure http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline

Read more…

  • Share/Bookmark

How to Mix Segment and Query String in CodeIgniter

Passing parameter to a web page build with CodeIgniter (CI) can be done by using either POST variables which comes from HTML form or from the URI. But, different from traditional web application, by default CI only recognizes a segment based URI rather than query string format for passing parameter by URI.

In some circumstances we do need to use the query string to pass data to our page, which in this case using PHP global variable $_GET. By default, CI will not allow us to read the content of $_GET variable but instead using the URI class $this->uri->segment(the_segment_number).

Read more…

  • Share/Bookmark

CodeIgniter Tutorial: [Creating Accounting Application] Part 3 ER Diagram and Creating Database

In the previous parts of this tutorial series we have discussed how to setup the application environment using XAMPP and CodeIgniter, and the application specification. We have done the analysis and design using UML use case and class diagram with free UML diagram tool StarUML.

In this part, we will discuss the database design for our application. This database is needed to hold the data for our application.

We are going to draw the entity relationship diagram (ERD) using a free tool called MySQL workbench, formerly fabForce ERD tools for MySQL. Before continuing, please download the program here and install it to your computer.

At the end of the designing process, we will create our database structure directly to a MySQL server that can be used by our application.

Read more…

  • Share/Bookmark

How to Debug PHP Program Remotely using phpDesigner 2008

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program thus making it behave as expected. PHP has an extension that allows us to debug PHP scripts in live manner, called Xdebug. This article explains how to use and configure Xdebug within phpDesigner IDE from MPSOFTWARE. Debugging with Xdebug allows the programmer to analyze, evaluate and find errors in the code line by line.

Read more…

  • Share/Bookmark

CodeIgniter Tutorial: [Creating Accounting Application] Part 2 The Application Specification and UML Diagrams

In this part of the tutorial series we will discuss about the application specification. After defining the user requirements we will do the analysis and designing the using UML use cases and class diagram. We are going to use a free UML diagramming tool called StarUML. You can download the program here if you have not installed it in your computer.

Read more…

  • Share/Bookmark

Ikutilah Seminar GPS! "MEMBONGKAR RAHASIA BISNIS GPS TRACKING" - Pembicara : Ir. Akhmad Daniel Sembiring (CEO Vitraining.com & GpsTrackingIndonesia.com) - Bandung, Sabtu 7 Agustus 2010 - Hotel Arion Swiss - Belhotel, Jl. Otto Iskandardinata No. 16 Bandung - Investasi : 2 Jt (sebelum 31 JULI 2010 HANYA 1 Jt) - Register ONLINE : seminar-gps.vitraining.com - More Info e-mail to : info@gpstrackingindonesia.com

This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.