PHP Proxy Script

Hits: 3496  

Glype web-based proxy provides a proxy service to users via a web browser. A proxy service downloads requested web pages bypassing censorship and restrictions and forwards to the user..

Glype Proxy Script

  • Free for personal use and affordable licensing options for commercial use.
  • Source Viewable and webmasters may modify the source code subject to the terms of the license.
  • Plug and Play. Simply upload, configure and go!
  • Admin Control Panel for easy management and configuration.
  • JavaScript Support provides increased compatibility with websites.
  • Skinable. A theme system allows for customization of your proxy.
  • Access Controls blacklist users by IP address and websites by domain name.
  • BlockScript™ Integration protects the proxy by blocking specificed countries, filtering companies, malicious traffic, bots and spiders, and more.
  • Unique URLs provide greater privacy by expiring URLs in the browser history at the end of a browsing session.
  • Plugins allow for easy installion of site-specific modifications. Useful for adding new functionality to websites.
  • Advanced Options let users change their user-agent and referrer, manage cookies, and remove JavaScripts and Flash.
  • The script requires PHP5 (or greater) with cURL enabled.

Proxy Script

Get First Image of Content

Hits: 2648  

Steps I follow …..

a) Audit the whole script. -> Concentrate
b) Divide the script into sections. -> Observe
c) Find the bug in the code. -> Imagine
d) Fix the bug or rewrite. -> Launch


// get first image of content

function get_first_image_of_content($content) {


$first_img '';

  $output preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i'$content$matches);

$first_img $matches[1][0];

  // default image if first image is blank



$first_img "default.png";






$html '........<img src="svnlabs.png" /> .......................';


echo get_first_image_of_content($html);


Kool Tap Accessories - KoolTap

PHP Syntax Highlighter

Hits: 3177  

Online syntax highlighting

PHP has a great function that automatically highlights PHP code called highlight_string(); this could be used to roll your own code highlighting on a site. In this demo I’ll show you the basics of how it works, then extended it with a few tricks.