• Jumlah Kode: 36
  • Update Kode Terbaru: Aug 20' 14
  • Jumlah Halaman : 4
  • Anda berada di halaman : 1

Compress Image Size Using PHP

  • 2014-08-20
  • 379
  • image, compress, reduse

Compress image with extention JPG,GIF,PNG using PHP to increase web speed Baca kanjut

Get Public IP Address

  • 2014-08-15
  • 370
  • public, ip address, simple

this script to get public ip address: However, sometimes this does not return the correct IP address of the visitor, so we can use some other server variables to get the IP address. The below both functions are equivalent with the difference only in how and from where the values are retrieved. getenv() is used to get the value of an environment variable in Baca kanjut

Getting Country Name From Ip Address Using GeoIP Plugin

  • 2014-08-13
  • 358
  • GeoIP, country name, ip address

Simple way to get country name from IP Baca kanjut

Get Header Value Using PHP

  • 2014-07-18
  • 442
  • php,header,browser,values

First browser request to a web page, browser send a http header in background like this : Host: localhostConnection: keep-aliveUser-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Encoding: gzip,deflate,sdchAccept-Language: en-US,en;q=0.8Accept-Charset: Baca kanjut

Redirect URL with Send POST Data

  • 2014-07-18
  • 765
  • redirect,post,sending,data

For some condition if you want to redirect to URL but send post data to redirected URL, in php can describe in simple function creation     in redirect target baca.php file you can test it by print out the Baca kanjut

Parse From Detik News for PEMILU 2014 Indonesia Quick Count

  • 2014-07-09
  • 726
  • news,detik,pemilu

Hi, this can use for parse data from detik.com about PILRES 2014, in this case no changes data structure. This for result : [{"hasil":"width: 47.41%;","real":"47,41%"},{"hasil":"width: Baca kanjut

Get Content of RSS Pasarkode

  • 2014-06-14
  • 420
  • rss,feed,xml,parse

You can get RSS of Pasarkode.com by this code the syntax Baca kanjut

Create Random Code

  • 2014-04-22
  • 1005
  • code,random,confirmation

this source code   function generateConfirmCode($length) { //random by number and alphabet rand ((double) microtime() * 10000000); $input = array ("A", "B", "C", "D", "E","F","G","H","I","J","K","L","M","N","O","P","Q", "R","S","T","U","V","W","X","Y","Z","a", "b", "c", "d", "e","f","g","h","i","j","k","l","m","n","o","p","q", "r","s","t","u","v","w","x","y","z"); Baca kanjut

PHP vulnerability Scan Script

  • 2014-02-21
  • 765
  • php,vurnerable,web,script,danger

this script can scan your website from vulnerablity script danger.   Check Vurnerable Script - Pasar Kode Check Vurnerable Script - Pasar Kode This script looks for traces of malicious code including code injections,modified .htaccess that makes images executable, and so on. Baca kanjut

Edit Value In Same Page

  • 2014-02-19
  • 506
  • php,edit in same page

  This source file for sample Database table CREATE TABLE IF NOT EXISTS `mikir` ( `id_mikir` int(11) NOT NULL AUTO_INCREMENT, `mikir` varchar(20) NOT NULL, `terakhir_mikir` varchar(40) NOT NULL, PRIMARY KEY (`id_mikir`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; INSERT INTO `mikir` (`id_mikir`, `mikir`, `terakhir_mikir`) VALUES (1, 'dasda', Baca kanjut