# Troubleshoot: PHP No Input File Specified Error

Are you using pretty URL on your web application or website? Having problem with “No input file specified error” from PHP? Confused why my PHP code is not working? The PHP code is working flawlessly on localhost but why is not  working now? Which php file is causing this error? Is it web server or PHP related problem? If some of questions answer is yes and when you are using Continue reading

# Android: Returning Value To The Calling Activity

In my previous post, I had explained how to switch (call) to another activities and passing value to it. This time I will try to explain on how to return some value back to the calling activity. Returning some values to the calling activity can be done by the following example: Intent resultData = new Intent(); String token = “some token”; String verifier = “some verifier”; resultData.putExtra(“token”, token); resultData.putExtra(“verifier”, verifier); setResult(Activity.RESULT_OK, Continue reading

# Fixing Perl Warning Setting Locale Failed Error Message on Ubuntu/Debian

If you run across Ubuntu/Debian perl or shell script and see the following locale error: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = “UTF-8″, LANG = “en_GB.UTF-8″ are supported and installed on your system. perl: warning: Falling back to the standard locale (“C”). Then it is more likely that your Ubuntu/Debian locale is not configured properly. I Continue reading

# Kriteria Project Akhir Mata Kuliah Pemrograman Web Genap 2012/2013

Berikut ini adalah kriteria Project Akhir untuk matakuliah Pemrograman Web semester genap 2012/2013. Project akhir untuk matakuliah ini adalah membuat sebuah aplikasi berbasis web. Kelas yang diampu adalah: Informatika/Ilmu Komputer A Sistem Informasi A Sistem Informasi B Project Aplikasi web bersifat dinamis dengan data dinamis Menggunakan PHP dan MySQL Data yang disimpan dalam database minimal 2 tabel yang saling berelasi. Aplikasi harus mengimplementasikan CRUD (Create Read Update Delete) Request Method Continue reading

# Replace Multiple Backslash Character Using preg_replace() in PHP

It seems like an easy problem to solve, but It’s not as easy as it seems. Assuming I have this string in PHP: \\\super\\\\\\man\\\ and I would like to replace all the backslashes into space or other characters is not as easy as using str_replace() function. The number of backslashes may be 1 or more. But all consecutive need to be replace into ONE space.

# File Handling in PHP: Read/Write To And From Text File

As a simple data storage alternative to Database Management System (e.g. MySQL) in PHP we can use plain text file. For example, a plain text file to store page counter information. Below is an example on how to store a simple string (text) into a text (.txt) file: <?php $data = ‘some text’;$fp = fopen(‘counter.txt’, ‘w’); if($fp) { fwrite($fp, $data); fclose($fp); } ?> Assuming a file named counter.txt exists Continue reading