sudo apt-get update
sudo apt-get install apache2
$(document).ready(function() { | |
var referrer = document.referrer; | |
console.log(referrer); | |
}); | |
// open your console |
function makeid() | |
{ | |
var text = ""; | |
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
for( var i=0; i < 5; i++ ) | |
text += possible.charAt(Math.floor(Math.random() * possible.length)); | |
return text; | |
} |
Math.random().toString(36).substring(7); |
(function (window) { | |
var browser, | |
version, | |
mobile, | |
os, | |
osversion, | |
bit, | |
ua = window.navigator.userAgent, | |
platform = window.navigator.platform; |
<?php | |
$url = '//www.example.com/path?googleguy=googley'; | |
// Prior to 5.4.7 this would show the path as "//www.example.com/path" | |
var_dump(parse_url($url)); | |
//output will be like | |
// array(3) { |
So, you're done making the website or web-app and now you would wanna distribute it to your clients. Awesome. Let's go ahead and create a package for the same. | |
There are two types of packaging that can be done in laravel: | |
1. VPS | |
2. Shared | |
VPS | |
VPS version is for their own use and local testing. So, you would wanna keep it as close to your local system settings as possible. | |
1. Delete all the files from app/storage/ in the following folders: | |
cache |