Skip to content

Instantly share code, notes, and snippets.

View helloyangdan's full-sized avatar

helloyangdan helloyangdan

View GitHub Profile
@helloyangdan
helloyangdan / taobao.php
Last active August 29, 2015 14:04
Search taobao and tmall goods comment and find out all the username
<?php
// Submit the form
if(!empty($_POST['submit']) && !empty($_POST['url']))
{
// Only if we get the good id
preg_match("/id=([0-9]+)/", $_POST['url'], $matches);
if(!empty($matches[1]))
{
$item_id = $matches[1];
<?php
/**
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner.
* @author Joost van Veen
* @version 1.0
*/
if (!function_exists('dump')) {
function dump ($var, $label = 'Dump', $echo = TRUE)
{
// Store dump in variable