Tampilkan postingan dengan label xampp. Tampilkan semua postingan
Tampilkan postingan dengan label xampp. Tampilkan semua postingan

Minggu, Januari 08, 2012

MySQL : mysqldump with -w option on Windows XP

Case : You have a big size of mysql database table on windows xp machine and you want to dump database table with "where" condition
Solution : using -w option

set_time_limit(0);

$username = "root";
$password = "toor";
$hostname = "localhost";
$sConnString = mysql_connect($hostname, $username, $password)
 or die("Unable to connect to MySQL");

$connection = mysql_select_db("Country",$sConnString)
 or die("Could not select DB");

$sql = "select * from tblkelurahan where left(KelurahanID,4)='3277'";
$query = mysql_query($sql);

while ($fetch = mysql_fetch_object($query)) {
 $namafile = $fetch->KelurahanID;
 $command = "C:xampp\\mysql\\bin\\mysqldump.exe --add-drop-table -uroot -ptoor -w\"KelurahanID='$namafile'\" Indonesia tblpenduduk > $namafile.sql";
 system($command);
}

Senin, Maret 07, 2011

Batch File : Repacking XAMPP

Case : You want to repack xampp to fit your web based application.
Solution : Combine with this, and you will have XAMPP custom installation

@ECHO OFF & SETLOCAL
PUSHD %~dp0

ECHO Mohon untuk sabar menunggu...
ECHO Install Apache masuk ke service Window dulu
xampp_cli.exe installservice apache

@ECHO:
@ECHO:

IF NOT ERRORLEVEL 1 (
ECHO Sekarang memulai Apache :)
xampp_cli.exe startservice apache
)

@ECHO:
@ECHO:

ECHO Mohon untuk sabar menunggu...
ECHO Install MySQL masuk ke service Window dulu
xampp_cli.exe installservice mysql

@ECHO:
@ECHO:

IF NOT ERRORLEVEL 1 (
ECHO Sekarang memulai MySQL :)
xampp_cli.exe startservice mysql
)

@ECHO:
@ECHO:

ECHO Mohon untuk sabar menunggu...
ECHO Install Shortcut ke desktop
copy [your_file_name] "%userprofile%\desktop"

@ECHO:
@ECHO:

ECHO Sabar... Install Firefox kalo belum ada, upgrade kalo sudah ada.
ECHO Tunggu sampai instalasi Firefox selesai, dan window ini akan menutup sendiri :)

@ECHO:
@ECHO:

ECHO Terima kasih

Firefox.exe

exit(1)



Source : http://www.google.com/

Minggu, Agustus 08, 2010

XAMPP : XAMPP Windows 1.7.3 problem after installation

Case: Install / upgrade xampp to the new version (1.7.3)

Problem: After a successful installation, the . php files can not be read by browsers

Solution: Edit the php.ini, search for "short_open_tag" (default value: Off), make it "On
"









Credit to : dhanuxz senyum

Thank you

Sabtu, November 28, 2009

xampp + coldfusion 7

download :

xampp-win32-1.7.2.exe

coldfusion7

hotfix wsconfig.jar
  1. Backup cf_root/runtime/lib/wsconfig.jar to wsconfig.jar.bu.
  2. Download hot fix (2.3MB).
  3. Stop all ColdFusion servers and Apache 2.2
  4. Extract the new wsconfig.jar file and place it in cf_root/runtime/lib.
  5. Start - Program - Macromedia - ColdFusion MX 7 - Web Server Configuration Tool

































Start apache and coldfusion server stres