Tomorrow I must go home, because our lecture has been finished. So every student must go home to enjoy their holiday. And I don’t want to late with that event. He … he … he …

So during the holiday, may be I will not make something post in my blog. Because I want to make a project. Like I have been said in my last post. That is A WEB APPLICATION USING PHP AND APACHE. And I want to do a project from the Open Source, to make an open source software. Ya …. may be, I will make an application using JAVA RMI – like my project on Second Project Year. I will make it more perfect and user friendly.

About my project from the open source you can see the description of the project from POSS PI Del. So if you want to know it more please surfing the address …………. ♥♥♥

Before greeting my holiday of lecture, I want to make an application. Thar is an web application by using Apache and PHP. Why I’m using PHP because this web programming is free (Open Source). He … he …. he… :D

I want to build website of our Senior High Scholl Collegiate. Because until now there is not one of our collegiate website. On this website I want to provide a feature like a Friendster Website, or the other website community. So an collegiate can send a message to the other or giving a comment for someone. An by using this website I hope our sense of togehterness can be awaked.

And provide an feature to make a blog of our community like WordPress and Blogger. So someone can make a post in their site and the other can give a comment.

And a feature to give an event or giving a news of something. So we can share an information to another collegiate. Like most of news website such as Tempo Interaktif, Kompas, Detik News, and etc.

I’m sorry, if you have an a trouble while reading this posting, because my english is not perfect. He … he … he … :D

Silakan anda pahami code dibawah ini :

<?php
function printPager($url=null)
{
global $total_rows,$config;
$str = “”;
$PAGE = (getParam(“PAGE”) == null) ? 1 : getParam(“PAGE”);
$jl_pages = ceil($total_rows/$config["ROWSLIMIT"]);

if ($jl_pages > 1)
{
$str .= “Total Posts : $total_rows
“;
if ($jl_pages > 1) {
$str .= ($PAGE > 1 ) ? “First Prev ” : “First Previous”;
$str .= ” — PAGE : $PAGE of $jl_pages — “;
$str .= ($PAGE < $jl_pages ) ? ” Next Last” : “Next Last”;
}
}
return $str;
}
?>

Untuk memudahkan anda mengkonfigurasikan PHP dan Apache anda, silakan ikuti langkah-langkah dibawah ini:

  • Install terlebih dahulu Apache 2.0.5 dan MySQL 5.05.
  • Extract semua file PHP dan letakkan pada direktori tertentu yang mudah anda akses dan diingat. Contohnya : C:/
  • Copy file php.ini dan php5ts.dll ke direktori WINDOWS.
  • Ubah folder php-5.*.*-Win32 yang telah anda copykan tadi kedirektori C:/ menjadi PHP.
  • Edit file php.ini yang ada di WINDOWS, dan cari keyword extension_dir kemudian gantikan “./” menjadi “C:/PFP/ext/”.
  • Lalu, buka file httpd.conf yang ada di folder “C:\Program Files\Apache Group\Apache2\conf” secara default.
  • Jika anda ingin mengganti foder yang akan dibuka jika alanat anda dibuka maka silakan gantikan path “C:/program files/Apache Group/Apache2/conf” yang ada pada DocumentRoot menjadi TERSERAH. Contohnya : “D:\Music”. Ini terdapat 2; diatas maupun dibawah.
    DocumentRoot "D:/Music/"

    Options FollowSymLinks
    AllowOverride None

  • Agar module dari PHP versi 5 diload maka silakan tambahkan
    LoadModule php5_module "C:\PHP\php5apache2.dll"
    AddType application/x-httpd-php .php

    pada tag module
  • Agar server anda mengenal extention html, dan php, silahkan Anda tambahkan code berikut : index.html index.html.var index.php di tag DirectoryIndex.
  • Agar PHP membaca library seperti MySQL maka silakan uncomment library yang anda perlukan pada php.ini

Mudah-mudah cara pengkonfigurasian diatas dapat membantu anda dalam pembangunan website anda dengan menggunakan Apache dan PHP. :D

Hari ini merupakan hari terakhisr untuk belajar; minggu persiapan untuk UAS. Hari ini targetku sih ubtuk dapat memahami Cookies dan Sessions tapi kok nggak bisa aku mendapatkan cara menjalankan sebuah cookies agar memiliki waktu hidupnya didalam browser. Soalnya aku sudah membuat cara mengatur cookienya menjadi seperti ini:
<?php
setcookie('ipUser', $_SERVER['REMOTE_ADDR'], time() + 7200);
?>

sama sekali nggak berjalan dan nggak berguna(… nggak jalan gitu). Kepala ini seakan akan mau pecah sekalian. PUSING :-(

Next Page »