Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
url shortner
SUBMITTED BY:
leakage
DATE:
Nov. 24, 2015, 7:31 a.m.
FORMAT:
Text only
SIZE:
281 Bytes
Raw
Download
Tweet
HITS:
454775
Go to comments
Report
Simple url shortner written in php
enjoy
<?php
$links = parse_ini_file('links.ini');
if(isset($_GET['l']) && array_key_exists($_GET['l'], $links)){
header('Location: ' . $links[$_GET['l']]);
}
else{
header('HTTP/1.0 404 Not Found');
echo 'Unknown link.';
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus