061058505
logo

PHP Domain Checker

Date: 26-08-2010 22:49:43
You can use this PHP domain check class to check availability of domains. Just include class.domain.php and typical usage is... $domena = preg_replace("/[^a-z0-9\.\-]+/", "", strtolower($_GET["domena"])); $dom = new Domene; $dom->provjeri($domena); //will retur...
Read more...

Posao.ba Session Hijacking

Date: 25-08-2010 01:47:16
I must admit, if this site is Superbrand, we are all going to hell :-) [img=slika]/upload/posaoba1.png[/img] Ok, you are registered (unemployed perhaps) user of posao.ba (=job), searching through site you found awesome job ad! [img=slika]/upload/posaoba2.png[/img] Now you want to share i...
Read more...

PHP Domain Checker .BA

Date: 21-08-2010 07:41:12
...for Bosnian domains (BA) :) [code]14[/code] Example URL: http://webarto.com/snajper.ba.php?domena=stackoverflow.ba...
Read more...

PHP Simple Poll Script

Date: 21-07-2010 02:38:48
Just include this piece of code in your site, if you find it useful :) [code]13[/code]...
Read more...

PHP UTF-8 Convert Case

Date: 18-07-2010 16:26:28
This little function converts UTF8 string into upper,lower and/or title case. It is equal to strtoupper,strtolower and ucwords, only these functions are for ANSI. [code]12[/code]...
Read more...

PHP DoS Script

Date: 16-07-2010 01:03:14
[code]11[/code] [red]This script exploits web server vulnerability and is meant for educational and self testing purposes only. Webarto.com cannot be held responsible for any damage caused due to misuse thereof Webarto.com is not responsible for the correctness, completeness or quality of this soft...
Read more...

PHP MySQL Online Script

Date: 15-07-2010 22:48:19
You can use this little script to show number of users online, all you need to do is to insert this piece of code in your script and echo $online variable. [code]10[/code] For example look in footer of this page :)...
Read more...

SQL Injection Example

Date: 15-07-2010 21:47:31
In this article I will demonstrate how easy is to break admin password in poorly scripted web application and get all tests for your school or college :) First of all, we need to find vulnerable target (more info on [url]http://unixwiz.net/techtips/sql-injection.html[/url]). [img=slika]/upload...
Read more...

Mobile HTML Template

Date: 23-06-2010 23:18:51
[code]1[/code]...
Read more...

PHP Random String Generator

Date: 13-05-2010 14:29:55
You can use this function to generate A-Z,a-z,0-9 random string... I will update this function later to generate characters by choice. [code]2[/code] Return: 9a7hn1m7...
Read more...

PHP Geo IP Locator

Date: 21-04-2010 01:14:05
Very useful function for tracking your visitors, localized languages, auto completion of registration forms (address) and anything you can think of. [code]3[/code] Let's find out where is Google (according to IP)... X:\WEBARTO>ping www.google.com Pinging www.l.google.com [74.125.87.14...
Read more...

PHP jQuery Autocomplete

Date: 16-04-2010 21:16:46
This script was made for http://www.fotozunic.com/shop , where you can see live example of it. It uses PHP&MySQL, HTML, and jQuery Javascript. The code is pretty self explaining, sorry for localized language variables. Have fun! If you have any trouble mail me at info@webarto.com PHP: ...
Read more...

PHP CU3ER XML Configuration

Date: 14-04-2010 23:31:00
I wrote this PHP file to help me use awesome Cu3er 3D flash image slider. Main function of this file is to read all images inside directory a assign random transition effect on. You can add your own effects in $effects array. You have to change eg cu3er.xml to cu3er.php in JavaScript embedding, an...
Read more...

PHP MySQL Count Function

Date: 13-04-2010 01:05:20
You can use this function to quickly count number of records in table, just enter valid table in function argument, you can also directly echo it... echo sqlcount("members"); //will return member count [code]8[/code]...
Read more...

PHP Simple YouTube Gallery

Date: 06-04-2010 15:24:57
Enter all of video codes in array $video, upload and run the script, everything else is automated. You can add as many videos as you like (I lie, there is array limit :P), also it can be combined with JS, to show the movie in modal window. Demo link: [url]http://www.smchiptuning.com/video.php[/ur...
Read more...

PHP Calculate Percentage

Date: 01-04-2010 04:02:57
You can use this function to calculate sale price for example 10% off price value. <div class="code"> function saleprice($price,$percent) { return number_format($price-(($price/100)*intval($percent)),2,'.',''); } </div> Live example: http://www.fotozunic.com/shop...
Read more...

PHP Remove VAT

Date: 13-03-2010 21:24:08
One of the shortest functions I ever wrote, but I needed it a lot of times :) <div class="code"> /** * @author Dejan @ webarto.com * @copyright 2010 */ function udripdv($cijena){ return (intval($cijena)/100)*14.53; } echo udripdv(117); //returns 17 </div>...
Read more...

PHP Lotto Number Generator

Date: 27-02-2010 00:01:10
If you want to try different approach for playing lotto, this is the solution :) <div class="code"> function lotto($broj = 6, $red = 8, $min = 1,$max = 42) { srand((double)microtime()*1234567); for($i=1;$i<=$red;$i++){ for($b=1;$b<=$broj;$b++){ echo rand($min,$m...
Read more...

PHP Image Crop

Date: 10-02-2010 02:53:28
This simple PHP image cropper does the job just fine. Just set height and width of picture ( or you can provide it over parameters ) and run the script. Example: <a rel="nofollow" href="http://webovi.com/crop.php?slika=prati.ba.jpg" target="_blank">HERE</a&g...
Read more...

PHP Parameters ( GET, POST, COOKIE )

Date: 10-02-2010 01:54:42
Tired of typing $_GET["something"] or $_POST["something"] or $_COOKIE["something"]... this little functions makes that job a lot easier! Usage is very simple just assign it do some variable. $something = param("something"); If GET or POST or COOKIE wi...
Read more...

PHP Search Engine Optimized URL

Date: 10-02-2010 01:43:28
Why is this important to Google ? Well, the same reason we find "http://webarto.com/13/php-search-engine-optimized-url" more self-explaining then "http://webarto.com/node.php?id=13". The following code replaces all characters that are not alphanumeric, this way we clean URL...
Read more...

PHP Google Keywords

Date: 10-02-2010 01:19:38
This PHP code shows you how to catch keywords from Google visitors. This comes handy if you want to show relevant articles, or just want to keep track of keywords for search engine optimization. <div class="code"> $ref = urldecode($_SERVER['HTTP_REFERER']); if(strstr($ref,&q...
Read more...

Random Sentence Spinning

Date: 07-02-2010 05:29:08
Usage: Just put word inside brackets separated by "|" (default) delimiter and echo it. <div class="code"> function randomize_sentence($sentence, $start = "{",$stop = "}", $delimiter = "|"){ srand ((double) microtime() * 1000000); $random ...
Read more...

jQuery Dropdown Menu

Date: 06-02-2010 23:24:16
After searching for simple jQuery dropdown menu and not finding any (?) I have decided to write my own ( it works btw :P ). Ok, we need CSS, HTML, and of course JS. 1. CSS ( please modify it to suite your needs ) <div class="code"> #menu{margin: 0 auto;width:1000px;height:39px...
Read more...

PHP W3C Validation

Date: 06-02-2010 23:08:52
This little PHP snippet shows you how to check if site is W3C valid. There is a cURL and file_get_contents() version, both of them are correct just pick one that suits your needs. If you want to use it with AJAX, just replace return with echo, and then check with JavaScript. That's all there is to ...
Read more...

htaccess www

Date: 03-02-2010 19:18:43
First of all you need to turn the rewrite engine on :) <p class="code"> Options +FollowSymlinks RewriteEngine on</p> Redirect www to non-www ... eg http://www.webarto.com > http://webarto.com <p class="code"> RewriteCond %{HTTP_HOST} ^www\.webarto...
Read more...