PHP: array() Function

An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more. As array values can be other arrays, trees and multidimensional arrays are also possible.

Create an indexed array named $cars, assign three elements to it, and then print a text containing the array values:

echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";

Continue reading PHP: array() Function

Friends in War – Image Gallerie v1.0

Friends in War Image Gallerie is a free is a user-friendly Image Gallerie script.
Users can register. A admin can see the users and edit or delete them.
The script comes with a very user friendly admin system where you can change things such as: Edit members, site looks, add and edit categories, add and edit images.
Friends in War Image Gallerie has an optional admin selectable theme system with a number of themes pre-installed, You can select your theme in the admin menu.
The scripts is 100% bootstrap and ready for every device such as phone, tablet, laptop and desktop.
Continue reading Friends in War – Image Gallerie v1.0

Bootstrap 4 table filters

We all need it more then once. A search function on top of a table who search the table with your query.
Here will i post a solution in Bootstrap 4 and jQuery.

Bootstrap Example

Filterable Table

Type something in the input field to search the table for first names, last names or emails:

Firstname Lastname Email
John Doe
Mary Moe
July Dooley
Anja Ravendale

Continue reading Bootstrap 4 table filters

Get real ip adress

This will print user’s real IP Address
does’t matter if user using proxy or not.



function getip() {
	if (!empty($_SERVER["HTTP_CLIENT_IP"])) {
	} elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
	} else {
		$ip = $_SERVER["REMOTE_ADDR"];
	echo $ip;

Continue reading Get real ip adress