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 To Web-scrap nepse contents from MeroLagani Sites | |
*/ | |
class Nepse | |
{ | |
private $url; | |
private $curlResponse; | |
private $domDocument; |
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 | |
function url_encrypt($string) | |
{ | |
$encrypt_method = "AES-256-CBC"; | |
$secret_key = 'ZwZSUU50OW2doUTXNHSUNYaGZOWUwQ0c3Z2doUwQ0cNYUU3ZUT09SNHX5wZSUaG9'; | |
$secret_iv = 'Zw0c3Z2d0OW2doUTXNoUwQ0cNYUU3ZUT09SU5HSUUwQUaG9NYaGNHX5wZSZSUZOWZw0c3Z2d5wZSZSUZOWoUwQ0cN0OWYUU3ZUT09SU5HSUUwQUaG2doUTXN9NYaGNHX'; | |
// hash | |
$key = hash('sha256', $secret_key); |
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 | |
// Define configuration | |
// May Include this in database configuration file | |
define("DB_HOST", "localhost"); | |
define("DB_USER", "username"); | |
define("DB_PASS", "password"); | |
define("DB_NAME", "database"); | |
/* |
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
/* A. Speaking in Tongues [filename: A.cpp] | |
Codejam :: Qualification Round 2012 | |
--------------------------------------------- | |
Written in C++ Programming | |
Tested and Compiled - Microsoft Windows 7 / Dev-C++ v4.9 | |
*/ |
NewerOlder