Hello friends, today I will tell you through experts php tutorial how you can create md5 hash generator tool using php script code. So let’s try to understand step to step with example. md5.php The php script code of md5 hash generator is given to you below. And along with the code of html, you […]
See MoreCategory: PHP PROBLEMS
Feet to Meters Length Converter Using JavaScript
Hello friends, today I will tell you through experts php tutorial how you can create converter tool calculate feet to meters length. So let’s try to understand step to step with example. Here is the javascript code for the feet to length converter. <script> function LengthConverter(valNum) { document.getElementById(“outputMeters”).innerHTML=valNum/3.2808; } </script> Here is the html code […]
See MoreHow to Get img src value with php?
Hello friends, today I will tell you through experts php tutorial how you can get img src values Using php program. So let’s try to understand step to step with example. index.php <?php $html = ‘<img id=”12″ border=”0″ src=”/images/img.jpg” alt=”Image” width=”100″ height=”100″ />’; $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXPath($doc); $src = $xpath->evaluate(“string(//img/@src)”); […]
See MoreHow to Get Hostname Using PHP?
Definition and Usage The gethostname() function returns the host name for the local machine. Syntax:- gethostname() Hello friends, today I will tell you through experts php tutorial how you can get server hostname Using php. So let’s try to understand step to step with example. <?php echo gethostname(); ?>
See MoreHow to request timeout using curl function?
Hello friends, today I will tell you through experts php tutorial how you can request timeout Using php curl function program. So let’s try to understand step to step with example. example 1:- curl_setopt($ch, CURLOPT_TIMEOUT, 2); //timeout in seconds #curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000); //timeout in Milliseconds example 2:- curl_setopt($ch, CURLOPT_TIMEOUT, 5); //timeout in seconds #curl_setopt($ch, CURLOPT_TIMEOUT_MS, […]
See More