This file contains hidden or 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 | |
$url = 'http://dynupdate.no-ip.com/ip.php'; | |
$proxy = '123.199.146.161:3128'; | |
//$proxyauth = 'user:password'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$url); | |
curl_setopt($ch, CURLOPT_PROXY, $proxy); | |
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxyauth); |
This file contains hidden or 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
Source: http://vandorp.biz/2012/01/installing-a-lightweight-lxdevnc-desktop-environment-on-your-ubuntudebian-vps/#.V8Tf-qkRVPA | |
# Make sure Debian is the latest and greatest | |
apt-get update | |
apt-get upgrade | |
apt-get dist-upgrade | |
# Install X, LXDE, VPN programs |
This file contains hidden or 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
// http://stackoverflow.com/a/7974253 | |
$encoded_url = preg_replace_callback('#://([^/]+)/([^?]+)#', function ($match) { | |
return '://' . $match[1] . '/' . join('/', array_map('rawurlencode', explode('/', $match[2]))); | |
}, $unencoded_url); | |
NewerOlder