0
Get the MAC address of the system using php
Get the MAC address of the system using php.
ob_start();
system('ipconfig /all');
$mycom=ob_get_contents(); // Capture the output into a variable
ob_clean();
$findme = "Physical";
$pos = strpos($mycom, $findme);
$macp=substr($mycom,($pos+36),17);
echo...
Get the public IP address of the system not the default ip using php
Get the ip address of the system [usually assigned by ISP], the public ip address using php.
ob_start();
system('ipconfig /all');
$mycom=ob_get_contents(); // Capture the output into a variable
ob_clean();
$findme = "IP Address";
$pos...
Agree Before Entry Using Javascript
Agree before entry using Javascript,with button disable functionality,that means if you agree, you can enter your name. But, if you disagree, you will not be able to enter or edit your name. When you disagree, the box is ‘locked.’...
Find screen resolution and redirect the user using javascript
This script helps you to find screen resolution of a client or user and redirect to a webpage using simple
<script LANGUAGE="JavaScript">
function resolution_finder() {
var url640x480 = "http://www.yahoo.com";
var...
Character Encoder And Decoder Using Javascript
This scripts encodes and decodes the character entered inside the textbox. Very useful for GET queries passed through URL.Encrypts a string by converting each character to it’s ASCII key code. Supports two-way encryption – from a...
Output buffering using ob_start in php
Output buffering using ob_start in php and saving it to a variable, this is a very good feature available in php mainly when we want to output and html data or php data
ob_start(); //Turn on output buffering ?>
Get this link <a href="http://www.mistonline.in">output...
Get browser language using php
In php you can get the language of your visitor, this is very helpful if you have many versions of your website for different languages.
$language = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
echo "The browser language is ".$language;
VN:F...
Admin console for glassfish server not loading blank page after fresh installation solved
Hello guys this is my first post relating to glassfish server.Today i have installed glassfish on my machine.I have started the server and was trying to login to admin console.But was getting a blank page.The version of Glassfish i installed...
Batch script to check an entry exist or not and update the file
Batch script to check whether a particular entry exist or not and update the file.We are taking backup of the original file and then editing it.
@echo off
REM check for existence of the file
if not exist %SystemRoot%\my_data (echo my_data FILE...
Find files inside a directory that starts with a specific string using php
Find files inside a directory that starts with a specific string using php.This script will search for files that starts with a string [Whatever you give] inside the query string.
For instance if the below script is saved inside a file say search_files.php...
Find the string and then the line number using php from text file
Find the string and then the line number using php from text file or a text data base.
In this we are searching a string named alan inside one of our log files.
$searchString = 'alan';
$URL = "logs/logs.txt_2011-08-10";
$data = file_get_contents($URL);
$data...
Display text file line by line and delete certain lines using php
Display text file or text data base line by line and delete certain lines using php. Each line of the text file is read and a DELETE link is added along with it.Grab the script here. NOTE:-My text file name is mail_list.txt
Create a file with...
A reference to valid parameters for cookie call in perl
Below is the valid paramaters that can be used when a cookie is being callied in perl script
-domain
a partial or complete domain name for which the cookie is valid. Like ‘mistonline.in’ for the entire domain (www.mistonline.in,php.mistonline.in,...
