Skip to content

Instantly share code, notes, and snippets.

View MohammadaliMirhamed's full-sized avatar
🤓
Code never lies, but comments do

MohammadAli MohammadaliMirhamed

🤓
Code never lies, but comments do
View GitHub Profile
@MohammadaliMirhamed
MohammadaliMirhamed / PhpFireBaseNotificationSample.php
Created September 12, 2019 05:25 — forked from rhafiko/PhpFireBaseNotificationSample.php
forked from MohammadaliMirhamed/PhpFireBaseNotificationSample.php -Simple PHP FireBase (FCM) script showing how to send an Android push notification. -Be sure to replace the SERVER_API_ACCESS_KEY with a proper one from the Google API's Console page. -Create project on firebase console, It returns me Server Accesss key and Legacy key under Projec…
<?php
#API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = $_GET['id'];
$topic = $_GET['topic'];
#prep the bundle
$msg = array
(
'body' => 'Body Of Notification',
@MohammadaliMirhamed
MohammadaliMirhamed / countrydropdown.html
Created May 26, 2019 08:46 — forked from danrovito/countrydropdown.html
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>