Home > php (Page 4)

finding mac address

finding mac address finding mac address <?php /* * Getting MAC Address using PHP *Kapil sharma */ ob_start(); // Turn on output buffering system(‘ipconfig /all’); //Execute external program to display output $mycom=ob_get_contents(); // Capture the output into a variable ob_clean(); // Clean (erase) the output buffer $findme = “Physical”; $pmac =

Read More

stop web pages from refreshing or disable menu bar

stop web pages from refreshing or disable menu bar and status bar and tool bar in browser and disable right click hello frnds basically refreshing is depend on browser so one cant say that, that code stop browsers from refreshinghere is the code /////////////////////first file <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"

Read More

dynamically add uploading buttons

onclick multiple file uploading button,dynamically add uploading buttons <script> var i=6; function generateRow1() { if(i>35) { alert("no more files are upload"); } else{ var d=document.getElementById("div1"); d.innerHTML+="<p><input type='file' name='foods"+i+"' size='6'>"; i++; return false; } return true; } </script> <input type="file" checks="min=1" size="6" id="fld_photo" name="fld_photo"> <div id="div"></div>

Read More

Jquery for ajex or jquery for redirecting page

Jquery for ajex or jquery for redirecting page function change_service(obj) { jQuery.ajax({ type: "GET", url: "index.php?option=com_vmcheck&view=default", data: "&id="+obj, success: function(html){ jQuery("#circles").html(html); } }); } <select tabindex="50" name="s_provider" id="s_provider" onchange="change_service(this.value);"> <option>Select Service Provider</option> <option value="3">Airtel </option> <option value="Vodafone">Vodafone</option> <option value="Trump">Trump-MTNL-Mumbai</option>

Read More

javascript for detect browser

javascript for detect browser <script language="javascript" type="text/javascript"> var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ''+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In Opera, the true version is after "Opera" or after "Version" if ((verOffset=nAgt.indexOf("Opera"))!=-1) { browserName = "Opera"; fullVersion = nAgt.substring(verOffset+6); if ((verOffset=nAgt.indexOf("Version"))!=-1) fullVersion = nAgt.substring(verOffset+8); } // In MSIE, the true version is

Read More

show and hide dynamic div by jquery

show and hide dynamic div by jquery <script> $(function () { $("a").click(function () { var ID = this.id; $('.'+ID).toggle(); }); }); </script> <?php $j=0; while($j<=10) { ?><p> <a href="javascript:void(0);" id="content<?php echo $j; ?>" class="team-readmore">read more.</a> </p> </div> <div style="display:none"><?php echo stripslashes($getdata[$j][7]); ?></div> <?php $j++; } ?>

Read More