Blog dedicated to the protection of web sites.
favorite and startpage

On many websites you can find special links, by clicking where the page is automatically added to your favorites or set as a page in your browser. Insertion of this script is quite simple. Simply paste it anywhere on the page:

Select the code

<script type=”text/javascript”>

/ / <! [CDATA [

var address = ‘web address’;

var title = ‘Page Title’;

var favorite = ‘Add to favorites’;

var page = ‘Set as start page’;

var template = ‘{FAVORITE} <br /> {HOME}’

if (adres.toLowerCase (). indexOf (‘http://’)! = 0) Address = ‘http://’ + address;

var browser = navigator.userAgent;

ie_ver var = 0;

if (przegladarka.indexOf (“MSIE”)! = -1 && przegladarka.indexOf (“)”) == -1) ie_ver = parseInt (przegladarka.substring (przegladarka.indexOf (“MSIE”) +5));

if (ie_ver> = 4) document.write (szablon.replace (/ \ {FAVORITE \} /, ‘<a href = “javascript: void (0)” title = “Add to favorites” onclick = “window.external . addFavorite ('’ + address + ‘', '’ + title + ‘') return false ‘onmouseover = “window.status = ' Add to favorites "; return true “onmouseout =” window . status = \ ‘'; return true “> ‘+ favorite +’ <’+’ / a> ‘). replace (/ \ {HOME \} /,’ <a href =” javascript: void (0) “title = “Set as start page” onclick = “this.style.behavior = " url (# default # homepage) \ ‘; this.setHomePage ('’ + address +’ \ ‘) return false’ onmouseover = “window.status = \ ‘Set as start page \ “; return true” onmouseout = “window.status = ' \ ‘; return true”>’ + page + ‘<’ + ‘/ a>’));

/ /]]>

</ script>

Apache and MySQL on Windows

Each web application developer begins by searching free web servers, which can test their own projects. With time, it appears that these servers have limits on the transfer, reducing the possibility (eg file write off or the function mail ()), sometimes do not work, or simply transfer to them is so slow that the sending of any file ftp’em almost impossible At this point the question is asked: “Can I run a web server on your home computer?”

Of course you can! There are two simple ways that enable the creation of active localhost …

The first, which takes virtually everyone (the few exceptions is within the statistical error) to look for cash, which without much effort from the designer will install all the necessary applications. Feature such is a little on the web. For example, FoxServ, AppServ, Dwarf, PHPTriad, WAMP5 … The user downloads a package, the installer starts i .. that’s it, I do not even know where everything is located and what it’s for. So after some time it rains the next question: “Can I install and configure everything myself?” Of course. The installation process I describe in this article.

After reading, we have installed a web server with PHP and MySQL available.

To start we will need a home server (the version numbers in parentheses are based on the article):

Web Server: In this case Apache - http://httpd.apache.org (2.0.49) we are interested in a file with the extension *. Msi. This is a Windows installer file.
Interpreter PHP: Download from http://php.net (4.3.4) we obtain the zip file, which can be found in the “Download” just under “Windows Binaries”.
MySQL database server http://mysql.com (4.0.18) - Here is also a downloadable installer for Windows.
After sucking the required files, you should make room on the server. I propose to create a directory C: \ WebServer - it is put all the binaries.