This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require '../simple_html_dom.php'; | |
function grab_html($url) | |
{ | |
$file = file_get_contents($url); | |
return $file; | |
} | |
// http://php.net/manual/en/book.dom.php#89718 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DB { | |
private static $_MYSQL_HOST="localhost"; | |
private static $_MYSQL_USER="your_mysql_user"; | |
private static $_MYSQL_PASS="your_mysql_password"; | |
private static $_MYSQL_DB="your_mysql_database"; | |
private static $connect = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Go to any page with pins (a board, your pins, search results, etc) and open JavaScript Console (Ctrl+Shift+J on windows OR option+command+J on mac) and paste in this code: | |
//sort by repins, adjust amount of pins/pages you want to collect first | |
var pages = 5; | |
var count = 0; | |
var mylist = []; | |
var timeout; | |
load(); | |
function load(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Response Code Multi Curl | |
* @param array $urls list url | |
* @return array | |
*/ | |
function checkHttpCode($urls) { | |
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* @name Spintax | |
* @author Jason Davis - https://www.codedevelopr.com/ | |
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
*/ | |
class Spintax | |
{ | |
public function process($text) |
NewerOlder