## GOOGLE MAPS <div id=”googleMap” style=”width:100%;height:400px;”></div> <script> function myMap() { var mapProp= { center:new google.maps.LatLng(), zoom:5, }; console.log(mapProp); var map=new google.maps.Map(document.getElementById(“googleMap”),mapProp); } </script> <script src=”https://maps.googleapis.com/maps/api/js?key=AIzaSyC7wZjgMOL3iVAScAzoMhRHzdju7T8wceQ&callback=myMap“></script>
Read MorePHP
Facebook share using iframe in php
FACEBOOK SHARE USING IFRAME ## USING I-FRAME:: <iframe src=”https://www.facebook.com/plugins/share_button.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&layout=button_count&size=small&mobile_iframe=true&appId=928713417263830&width=88&height=20” width=”88″ height=”20″ style=”border:none;overflow:hidden” scrolling=”no” frameborder=”0″ allowTransparency=”true”></iframe>
Read MoreFacebook share in php
FACEBOOK SHARE ## Share Page in Facebook. https://developers.facebook.com/docs/plugins/share-button ## Step 1: Choose your App ID and Language ## Step 2: Include the JavaScript SDK on …
Read MoreFacebook share
## FACEBOOK SHARE https://developers.facebook.com/docs/plugins/share-button <html> <head> <title>Your Website Title</title> <!– You can use Open Graph tags to customize link previews. …
Read MoreFacebook share using third party
## Share page in social site. Just add the block where you want it will work as you want. It show all social Link <!– …
Read MoreCalling a swal function in php
#calling the swal function:: <script> function notify() { swal({ title: “Are you sure?”, text: “Login Required.You will redirect for login.”, type: “warning”, …
Read MoreGoogle maps in php
## GOOGLE MAPS <div id=”googleMap” style=”width:100%;height:400px;”></div> <script> function myMap() { var mapProp= { center:new google.maps.LatLng(), zoom:5, }; console.log(mapProp); var map=new google.maps.Map(document.getElementById(“googleMap”),mapProp); } </script> <script src=”https://maps.googleapis.com/maps/api/js?key=AIzaSyC7wZjgMOL3iVAScAzoMhRHzdju7T8wceQ&callback=myMap”></script>
Read MoreShow YouTube vedio in php
## GET YOUTUBE VEDIO <?php function getYoutubeEmbedUrl($url) { $shortUrlRegex = ‘/youtu.be\/([a-zA-Z0-9_]+)\??/i’; $longUrlRegex = ‘/youtube.com\/((?:embed)|(?:watch))((?:\?v\=)|(?:\/))(\w+)/i’; if (preg_match($longUrlRegex, $url, $matches)) { $youtube_id = $matches[count($matches) – 1]; } if (preg_match($shortUrlRegex, …
Read MoreAfter post showing page not responding in chrome
## FOR CROME SHOWING This page isn’t working PROBLEM:: This page isn’t working Chrome detected unusual code on this page and blocked it to protect …
Read MoreRead directory in php
## READ DIRECTORY //get all files in directory //$path = directory name; $files1 = scandir($path); print_r($files1);
Read More