Setting xampp compatible with simple php tag

Kode php biasanya di awali dengan tag “<?” atau “<?php”. Beberapa waktu yang lalu saya mendapatkan masalah karena program php saya tidak dapat dijalankan. Masalahnya terletak pada tag php yang saya gunakan. Saya menggunakan tag “<?” dan pada xampp terbaru setting php defaultnya yang bisa dijalankan dengan tag “<?php” .

Agar tag “<?” dapat dijalankan, berikut caranya:

  1. Buka file php.ini pada “C:\xampp\php”
  2. Kemudian tekan “Control + F” untuk membuka fasilitas find.
  3. Cari baris berikut “short_open_tag = off” (tanpa tanda kutip)
  4. Setelah itu ganti nilai “off” dengan “on”
  5. Kemudian restart apachenya.

Selamat Mencoba, semoga bermanfaat

4 April 2011 at 08:35 - Comments
Tips yang bermanfaat. Nanti saya coba resepnya ini.
14 June 11 at 07:19
kimim
makasih sahabat
27 December 11 at 11:39

Lock Icon on MP3 Files in Windows 7 (File MP3 ada icon kunci/gembok)

Jika anda mengalami masalah seperti judul di atas, file mp3 anda ada gambar icon gembok pada sistem operasi Microsoft Windows 7, kemungkin file mp3 anda berada di dalam folder yang statusnya di share. Berikut cara menghilangkan icon tersebut:

  1. Disable sharing folder tersebut
    • Klik kanan pada folder
    • Pilih Properties
    • Pilih tab Sharing dan pilih Advaced sharing
    • Unchek pada pilihan Share this folder
  2. Jika belum hilang juga, maka
    • Klik kanan pada folder
    • Pilih Share with >
    • Pilih Nobody

Semoga bisa membantu dan bermanfaat.

10 March 2011 at 23:48 - Comments

Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it’s current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -> Tweak settings.

Today I found this error while trying to open Fantastico page in cPanel.

Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it’s current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -> Tweak settings.

Running a check on Fantastico it IS installed at that location.

Though I did not do this in my case, if you are facing same problem, first of all, try restarting cpanel.

root@hosting# service cpanel restart

I have made it confirm that ioncube is installed. However, I reinstalled it by following command:

root@hosting# /scripts/phpextensionmgr install IonCubeLoader

This did not solve the problem. Then somewhere in forum/blog I have read it that rebuilding cpanel’s internal php may solve it. I did that:

root@hosting# /scripts/makecpphp

I have restarted cPanel (look above for command) , and fantastico running now.

14 February 2011 at 09:50 - Comments

Install Fantastico on CPanel/WHM Accelerate2

1. Login via SSH to your server and enter following commands:

root@hosting# cd /usr/local/cpanel/whostmgr/docroot/cgi
root@hosting [/usr/local/cpanel/whostmgr/docroot/cgi]# wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
root@hosting [/usr/local/cpanel/whostmgr/docroot/cgi]# tar -xzpf fantastico_whm_admin.tgz
root@hosting [/usr/local/cpanel/whostmgr/docroot/cgi]# rm -rf fantastico_whm_admin.tgz
root@hosting [/usr/local/cpanel/whostmgr/docroot/cgi]#  chown  -R root:root addon_fantastico.cgi

2. Now go to WHM, login as root and follow the link Plugins -> Fantastico De Luxe WHM Admin. One need to complete the installation by following the online screens.

12 February 2011 at 22:08 - Comments

Clear DNS Cache on Windows OS

untuk membersihkan cache dns di Windows Operating Sistem:

  1. Buka command prompt
  2. ketik pada command prompt seperti ini
    C:\>ipconfig /flushdns
  3. Tekan Enter
11 February 2011 at 16:55 - Comments