How to fix Fantastico De Luxe wget and shell_exec issues?

Fantastico De Luxe is the leading autoinstaller for cPanel servers. With more than 10.000 installations, it provides more than one million end users the ability to quickly install dozens of the leading open source content management systems into their web space. Fantastico De Luxe official website: http://www.netenberg.com/fantastico.php If you want to improve your web site with a discussion forum or…

Read More »

How to block blank referrer in PHProxy?

PHProxy is a webproxy written in PHP to bypass firewalls and other proxy restrictions through a web interface very similar to the popular CGIProxy. The server that this script runs on simply acts as a medium that retrives resources for you. The only IP address shown will be the server’s IP address so basically it is indirect browsing. The only…

Read More »

Join me in fighting poverty!

Hi, This may look like any other page/email, but it is actually a crucial piece in the fight against extreme poverty. I’m taking action with ONE, to help spread the word about the difference we can all make when we join together as one in the fight against extreme poverty. While there are many great organizations delivering direct assistance in…

Read More »

How to automate FTP-ing file to another FTP account?

We will be using shell script to automate the transfer between two FTP accounts. You’ll need shell access to the source FTP account. #!/bin/bash directory=”/home/raisya/public_html” filename=”test.txt” hostname=”ftp.destination.com” username=”dest” password=”qwerty” logfile=”ftpf.log” ftp -uni $hostname <>$logfile quote USER $username quote PASS $password lcd $directory put $filename quit EOF Explanation: directory=”/home/raisya/public_html” Assigning “/home/raisya/public_html” to directory. filename=”test.txt” Assigning “test.txt” to filename. hostname=”ftp.destination.com” Assigning “ftp.destination.com”…

Read More »

How to grab BCA USD buy/sell rate with cURL?

This will grab current rate of USD rate from BCA using cURL. function delAttr($tagSource) { $stripAttrib = “‘ (style|class)=\”(.*?)\”‘i”; $tagSource = stripslashes($tagSource); $tagSource = preg_replace($stripAttrib, ”, $tagSource); return $tagSource; } function delTags($source) { $allowedTags=”; $source = strip_tags($source, $allowedTags); return preg_replace(‘/<(.*?)>/ie’, “‘<‘.delAttr(‘\\1′).’>'”, $source); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, “http://www.klikbca.com/individual/silver/ind/rates.html”); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,…

Read More »