This file contains 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
// Creating customer: | |
$customer = $this->stripeClient->customers->all( [ 'email' => auth()->user()->email ] ); | |
if ( empty( $customer->data[0] ) ) { | |
// Create new customer | |
$customer = $this->stripeClient->customers->create( array( | |
"email" => auth()->user()->email, | |
"name" => auth()->user()->first_name . ' ' . auth()->user()->last_name, | |
) ); | |
$customerID = $customer->id; | |
} else { |
This file contains 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
0-mail.com | |
0815.ru | |
0clickemail.com | |
0wnd.net | |
0wnd.org | |
10minutemail.com | |
20minutemail.com | |
2prong.com | |
30minutemail.com | |
3d-painting.com |
This file contains 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 InstagramGraphLogin { | |
/* | |
* Facebook Object | |
*/ | |
private $fb; | |
/* |
This file contains 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
Install Redis Support on windows by installing windows alternative: https://www.memurai.com/ | |
Download redis php extension from https://pecl.php.net/package/redis/5.3.2/windows | |
Go to your xampp/wamp directory, locate php/ext or php/php-version/ext folder and paste php_redis.dll file in it | |
Edit your php.ini file and add extension=php_redis.dll line into this file | |
Restart apache |
This file contains 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
$feed = new SimplePie(); | |
// Set your proxy | |
$feed->set_curl_options( | |
array( | |
CURLOPT_PROXY => "proxy-url-here", | |
CURLOPT_PROXYUSERPWD => 'proxy-username-password' | |
) | |
); | |
// Set which feed to process. |
This file contains 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 | |
// For no time limit | |
set_time_limit(0); | |
$url = "url-to-external-page"; | |
$pagecontent = file_get_contents($url); | |
$dom = new DOMDocument(); | |
$dom->loadHTML($pagecontent); |