Category Archives: PHP

Download Images From Web Page

download images directly to your local computer, without the need for any authentication, permission, etc. <?php $url=’’; $urlsrc=’’; $doc=new DOMDocument(); $html=file_get_contents($url); @$doc->loadHTML($html); $xml=simplexml_import_dom($doc); // just to make xpath more simple $images=$xml->xpath(‘//img’); $filenum=1; $Successful=0; $Failed=0; foreach ($images as $img) { $url_components = parse_url($img[‘src’]); // First parse the URL $url_path = $url_components[‘path’];


The programming code will list 12 records at a time from a data table contained within a MySQL database. It can scroll forwards and backwards by the same number of rows by clicking the labeled buttons above the list, “Next” and “Previous”. This is a simple to use utility and

Simple file uploader written in PHP

Simple file uploader written in PHP, can be used in different modules and it can be designed according to your needs.   <? $file = $_FILES[‘file’]; $name = $_POST[‘name’]; $path = $_POST[‘path’]; $upload = $_POST[‘upload’]; if(isset($upload)){ if($file[‘name’]){ if($name){ if(strlen($path) > 5){ move_uploaded_file($file[‘tmp_name’], $path.$name); echo “<font color=green>File successfully uploaded!</font>”; } else

How to create Ajax based PHP application

JavaScript is a client side scripting language. It is executed on the client side by the web browsers that support JavaScript. JavaScript code only works in browsers that have JavaScript enabled. It supports the following programming patterns; Object oriented Imperative Functional JavaScript enhances the functionality of websites and web applications.

Traffic generator via tor (educational)

Set up several onions and just leave them open while you’re browsing through Tor. It’s best if it’s more than one in case anyone analyzing your traffic figures out what it is (they shouldn’t be able to see what address you connect to). <?php if(empty(session_id())) {session_start();} ?><!DOCTYPE html> <html> <head>

« Older Entries