Wednesday, November 23, 2011

Unable to create files under /opt/lampp/htdocs



The root account is the "administrator" of the system. The username is 'root' and the password is given by installation (or changed if you have changed the root password).

The easiest way is to change the user of the directory /opt/lampp/htdocs:
Code:
sudo chown username /opt/lampp/htdocs
Change username to your username.
This is (in my opinion) the easiest option for your own use, but not a good option for a real web server (outside your computer).

You can also log in as root, but that could be dangerous! As root, you have total control over the system, and you can accidentally delete files and do other dangerous things you don't want. So DON'T use it.

And you can also, as john newbuntu said, change the root directory of the web server (root means the base directory, in this case).

Membuat XAMPP Control Panel di desktop



Bagaimana cara membuat tampilan shortcut di desktop untuk Control Panel XAMPP? karena biasanya kita harus mengeksekusi XAMPP melalui konsol, dan terkadang kurang efisien untuk membuka konsol hanya untuk mengjalankan XAMPP, dan lagian saya orangnya malas :D
untuk membuat file shortcut tersebut, cukup jalankan perintah dibawah ini
gedit ~/.local/share/applications/xampp-control-panel.desktop

maka akan muncul text editor, kemudian isikan kode berikut kedalam text editor
[Desktop Entry]
Comment=Start/Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo "python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py"
Icon[en_CA]=/usr/share/icons/Tango/scalable/devices/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start/Stop XAMPP
Type=Application
Icon=/usr/share/icons/Tango/scalable/devices/network-wired.svg

kemudian save, maka di menu Applications akan muncul submenu Other yang berisi XAMPP Control Panel
kode diatas saya copy-paste dari situs resmi XAMPP atau apachefriends.org, yang membahas bagaimana membuat Control Panel XAMPP di desktop.

Friday, November 4, 2011

How to Install ZenCoding in Aptana/Eclipse



ZenCoding is one of my favorite tools for web application development. Because it gives me the speed and accuracy of about html tags.

ZenCoding is an editor plugin for high-speed HTML, XML, XSL (or any other structured code format) coding and editing. The core of this plugin is a powerful abbreviation engine which allows you to expand expressions—similar to CSS selectors—into HTML code. For example:

Thursday, November 3, 2011

How To Replace Character Using PHP



Its a basic about function php. Now, we learn how to replace character using PHP. For replace character can using str_replace php function.

Example:

The Magic of PHP



Shrimp-Soup - First, PHP was first created by Rasmus Lerdorf in 1995. In that year I had just graduated elementary school. At that time, PHP is a collection of scripts used to process data from a web form.

Because Rasmus if PHP thinks will be more developed if released to the public, then remove PHP by Rasmus nam PHP / FI, an extension of PHP / FI dalah Personal Home Page / Forms Interpreter.