Creating a Bootable Pen Drive

Creating a usb pendrive using command prompt is not hard, it is one of the most common ways to create a bootable usb.       This method does not work if your operating sistem is windows xp or windows 8 , you cannot select the primary partition in comand prompt.        You just need to follow these simple […]

Read More

Vibration API Sample

You can control the vibration capability of your device using the Vibration API. Chrome only supports this feature on Android devices. JavaScript Snippet function example1() { // Vibrate for 500ms navigator.vibrate([500]); } Vibrate JavaScript Snippet function example2() { // For a single value you can pass in a Number rather than an Array navigator.vibrate(500); } […]

Read More

Save Images from html Remotely

Here is the simple php code to save the all images from html web page to server remotely :- <?php $doc = new DOMDocument(); @$doc->loadHTML($content); $tags = $doc->getElementsByTagName(‘img’); $count_img = 0; foreach ($tags as $tag) { $img = $tag->getAttribute(‘src’); $count_img++; $a = explode(“?”,$img); $image = $a[0]; $b = remoteImageUpload($image); $my_img = “http://www.jaihindutva.com/post/”.$b; $content = str_replace($img,$my_img,$content); […]

Read More