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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta content="width=device-width, initial-scale=1.0" name="viewport"> | |
<meta content="ie=edge" http-equiv="X-UA-Compatible"> | |
<title>Image Blob</title> | |
</head> |
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 | |
/** | |
* Enqueue block editor JavaScript and CSS | |
*/ | |
function jsforwpblocks_editor_scripts() { | |
// Make paths variables so we don't write em twice ;) | |
$blockPath = '/assets/js/blocks.js'; | |
$editorStylePath = '/assets/css/blocks.editor.css'; |
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 | |
// Source: https://businessbloomer.com/woocommerce-product-add-ons-without-plugin/?ck_subscriber_id=69986993 | |
// ----------------------------------------- | |
// 1. Show custom input field above Add to Cart | |
add_action( 'woocommerce_before_add_to_cart_button', 'bbloomer_product_add_on', 9 ); | |
function bbloomer_product_add_on() { | |
$value = isset( $_POST['_custom_text_add_on'] ) ? sanitize_text_field( $_POST['_custom_text_add_on'] ) : ''; | |
echo '<div><label>Custom Text Add-On <abbr class="required" title="required">*</abbr></label><p><input name="_custom_text_add_on" value="' . $value . '"></p></div>'; |
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 | |
// To send HTML mail, the Content-type header must be set | |
$headers = []; | |
$headers[] = 'MIME-Version: 1.0'; | |
$headers[] = 'Content-type: text/html; charset=iso-8859-1'; | |
$headers[] = 'From: Do Not Reply <[email protected]>'; | |
$content = ' | |
<html> | |
<head> |
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
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/gallery2.jpg"> | |
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/gallery6.jpg"> | |
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/gallery2.jpg"> | |
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/gallery6.jpg"> | |
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/gallery2.jpg"> | |
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/12005/gallery6.jpg"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Javascript Import Export Module Example</title> | |
</head> | |
<body> | |
<script type="module"> |
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
### Ref 1: https://www.tecmint.com/transfer-mysql-databases-from-old-to-new-server/ | |
### Ref 2: http://osxdaily.com/2017/01/19/export-import-all-mysql-databases/ | |
# Export all MySQL Databases to Dump File | |
> mysqldump -u [user] -p –all-databases > all_databases.sql | |
# If you want to dump a single database | |
> mysqldump -u root -p --opt [database name] > database_name.sql | |
# Transfer MySQL Databases Dump File to New Server |
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
I had the same problem, but it only manifested when running PHP through Apache. In CLI it was fine - cURL was shown in phpinfo(). | |
The solution was to replace several files in Apache's bin directory: | |
libeay32.dll | |
ssleay32.dll | |
libssh2.dll | |
nghttp2.dll | |
When PHP is run through Apache, its bin directory probably takes precedence over system %PATH% variable and therefore PHP's curl extension uses libraries from Apache, resulting in version mismatch (Apache's libraries seem to be older than required). |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Send Bacon Example</title> | |
</head> | |
<body> | |
<button type="button" id="button">Send Response</button> |
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
<span class="spinner is-active"></span> |