What do you want to save?
Add Code snippet
New code examples
-
-
Shell/Bash 2021-10-10 03:03:03
install compser
# The following method has been tested on Ubuntu 20.04 # But i think it should work fine with any other distribution # Ensure you're on Desktop, to prevent issues with permissions cd ~/Desktop # Download the installer script php -r "copy('https://g... Add solution -
PHP 2021-10-09 10:44:02
wp run php script only once
if ( current_user_can( 'manage_options' ) ) { if( ! file_exists( '/path/to/onetime.php' ) ) return; add_action( 'wp_footer', 'ravs_my_onetime_function' ); // execute my function on the desired hook. } function ravs_my_onetime_function() {... Add solution -
Other 2021-10-09 09:06:04
flysystem azure
use League\Flysystem\AzureBlobStorage\AzureBlobStorageAdapter; use League\Flysystem\Filesystem; use MicrosoftAzure\Storage\Blob\BlobRestProxy; include __DIR__.'/vendor/autoload.php'; $client = BlobRestProxy::createBlobService('DefaultEndpointsProtocol=h... Add solution -
Other 2021-10-09 06:38:05
installing composer command line
Installing composer commandline php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46... Add solution -
PHP 2021-10-08 21:01:04
get php to send email from form
<?php if(isset($_POST['submit'])){ $to = "[email protected]"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; ... Add solution