Tag Archives: get
Kohana – list all database tables

foreach(Database::instance()->list_tables() as $table_name) { //blah blah }foreach(Database::instance()->list_tables() as $table_name) { //blah blah }

Get the UTC offset for the specified local time

public String GetUtcOffset { return TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); }public String GetUtcOffset { return TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); }

Get operating system language in c#

GetSystemDefaultLCID Returns the locale identifier for the system default locale, identified by LOCALE_SYSTEM_DEFAULT. [DllImport("kernel32.dll")] public static extern uint GetSystemDefaultLCID();[DllImport("kernel32.dll")] public…

Getting visitors country from their IP

geoip_country_code_by_name The geoip_country_code_by_name() function will return the two letter country code corresponding to a hostname or an IP address. —…

Getting visitors country from their IP

geoplugin geoPlugin is a free and easy webmaster resource to provide geolocation technology to your pages. $xml = simplexml_load_file(’http://www.geoplugin.net/xml.gp?ip=’.$visitor_ip_address);  …

Get public/external IP address in C#

1) Create a simple form with one button and one textbox. 2) Code private void button1_Click(object sender, EventArgs e) {…

Get MySQL server version with Kohana

$mysql_version = DB::query(Database::SELECT, ‘SELECT version() as v;’)->execute()->get(’v’, 0); echo $mysql_version;$mysql_version = DB::query(Database::SELECT, ‘SELECT version() as v;’)->execute()->get(‘v’, 0); echo $mysql_version;

HTTP POST and GET Requests with WinInet and C++

InternetOpenA InternetConnectA HttpOpenRequestA HttpSendRequestA InternetCloseHandle Method to make POST or GET requests: void Request(int Method, LPCSTR Host, LPCSTR url, LPCSTR…

Get Process ID by name

We are going to use the following functions: CreateToolhelp32Snapshot Process32First Process32Next CloseHandle Source #include <stdio.h> #include <stdlib.h> #include <windows.h> #include…

Get Active Window Title

Get Active Window Title in C: #include <windows.h> #include <stdio.h>   int main() { char title[256] = ""; HWND handle…

Next Page