sudo
substitute user do kör kommand som admin- Paket alla program är i Linux distribuerade i så kallade paket
- Apache världens vanligaste webserver
- PHP Högnivåspråk för webapplikationer
- MySQL En mycket vanlig SQL server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$status=$_SERVER['REDIRECT_STATUS']; | |
$codes=array( | |
400 => array('400 Bad Request', 'The request cannot be fulfilled due to bad syntax.'), | |
401 => array('401 Login Error', 'It appears that the password and/or user-name you entered was incorrect.'), | |
403 => array('403 Forbidden', 'Sorry, employees and staff only.'), | |
404 => array('404 Missing', 'We\'re sorry, but the page you\'re looking for is missing, hiding, or maybe it moved somewhere else and forgot to tell you.'), | |
405 => array('405 Method Not Allowed', 'The method specified in the Request-Line is not allowed for the specified resource.'), | |
408 => array('408 Request Timeout', 'Your browser failed to send a request in the time allowed by the server.'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<browserconfig> | |
<msapplication> | |
<tile> | |
<square70x70logo src="img/smalltile.png"/> | |
<square150x150logo src="img/mediumtile.png"/> | |
<wide310x150logo src="img/widetile.png"/> | |
<square310x310logo src="img/largetile.png"/> | |
<TileColor>#FFF</TileColor> | |
</tile> | |
</msapplication> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function password_verify_with_rehash($password, $hash) { | |
if (!password_verify($password, $hash)) { | |
return false; | |
} | |
if (password_needs_rehash($hash, PASSWORD_DEFAULT)) { | |
$hash = password_hash($password, PASSWORD_DEFAULT); | |
// update hash in database | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$date = '2014-10-20'; | |
list($yyyy, $mm, $dd) = explode('-', $date); | |
if (!checkdate($mm, $dd, $yyyy)) { | |
echo 'Error: date'; | |
} | |
$time = '00:00:00'; | |
if (!preg_match('/\d{2}\:\d{2}\:\d{2}/', $time)) { | |
echo 'Error: time'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:ohmdm="http://schemas.openhistoricalmap.org/#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:owl="http://www.w3.org/2002/07/owl#"> | |
<rdf:Description xmlns:tags="http://schemas.openhistoricalmap.org/tag#" xmlns:element="http://schemas.openhistoricalmap.org/element#" rdf:about="http://www.openhistoricalmap.org/way/198179683"> | |
<ohmdm:createdDate>2015-03-06</ohmdm:createdDate> | |
<ohmdm:latestChangeDate>2015-04-11</ohmdm:latestChangeDate> | |
<ohmdm:elementType rdf:resource="http://schemas.openhistoricalmap.org/element#way"/> | |
<ohmdm:osmVersion>0.6</ohmdm:osmVersion> | |
<ohmdm:osm format="XML">http://www.openhistoricalmap.org/api/0.6/way/198179683</ohmdm:osm> | |
<ohmdm:changeset>1141</ohmdm:changeset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://github.com/tmcw/report-a-bug"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix ohmdm: <http://schemas.openhistoricalmap.org/#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix dcterms: <http://purl.org/dc/terms/> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix tags: <http://schemas.openhistoricalmap.org/tag#> . | |
@prefix element: <http://schemas.openhistoricalmap.org/element#> . | |
<http://www.platsr.se/platsr/visa/plats/id/51000000025120> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ohmdm="http://schemas.openhistoricalmap.org/#"> | |
<rdf:Description rdf:about="http://www.openhistoricalmap.org/way/198179683"> | |
<ohmdm:timestamp>2015-04-11</ohmdm:timestamp> | |
<ohmdm:elementType rdf:resource="http://schemas.openhistoricalmap.org/element#way"/> | |
<ohmdm:osmVersion>0.6</ohmdm:osmVersion> | |
<ohmdm:changeset>1141</ohmdm:changeset> | |
<ohmdm:version>8</ohmdm:version> | |
<ohmdm:user>Abbe98</ohmdm:user> |
Coord | Label |
---|---|
61.1503,10.6895 | Sjusjøen, Hedmark, Norway |
61.5826,8.40454 | Visdalen, Oppland, Norway |
59.53576,9.29699 | Ramberg, Telemark, Norway |
69.6444,19.1615 | Vasstrand, Troms, Norway |
59.0772,16.3699 | Himlinge, Södermanland, Sweden |
58.2701,13.7247 | Stenstorp, Västra Götaland, Sweden |
OlderNewer