Category

PHP


  • Total Source Code: 35
  • Latest Update Code: Aug 15' 14
  • Total Page : 4
  • You currently on page number : 1

Get Public IP Address

  • 2014-08-15
  • 3
  • 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 Readmore


Getting Country Name From Ip Address Using GeoIP Plugin

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

Simple way to get country name from IP Readmore


Get Header Value Using PHP

  • 2014-07-18
  • 159
  • 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: Readmore


Redirect URL with Send POST Data

  • 2014-07-18
  • 234
  • 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 Readmore


Parse From Detik News for PEMILU 2014 Indonesia Quick Count

  • 2014-07-09
  • 314
  • 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: Readmore


Get Content of RSS Pasarkode

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

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


Create Random Code

  • 2014-04-22
  • 638
  • 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"); Readmore


PHP vulnerability Scan Script

  • 2014-02-21
  • 439
  • 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. Readmore


Edit Value In Same Page

  • 2014-02-19
  • 255
  • 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=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; INSERT INTO `mikir` (`id_mikir`, `mikir`, `terakhir_mikir`) VALUES (1, 'dasda', Readmore


Get Image From URL Using DOM

  • 2014-02-11
  • 245
  • parse,DOM,image,tag

Use this for parse img tag from an URL Readmore




Category