tag:blogger.com,1999:blog-25802282169805310592024-02-08T07:39:41.250-08:00PHP & MySQLWeb development, hosting services and much moreUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2580228216980531059.post-16982150885958203042012-08-07T14:19:00.005-07:002012-10-09T08:33:50.594-07:00<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script>
jQuery.fn.countdown = function(userOptions)
{
// Default options
var options = {
stepTime: 60,
// startTime and format MUST follow the same format.
// also you cannot specify a format unordered (e.g. hh:ss:mm is wrong)
format: "dd:hh:mm:ss",
startTime: "01:12:32:55",
digitImages: 6,
digitWidth: 53,
digitHeight: 77,
timerEnd: function(){},
image: "digits.png"
};
var digits = [], interval;
// Draw digits in given container
var createDigits = function(where)
{
var c = 0;
// Iterate each startTime digit, if it is not a digit
// we'll asume that it's a separator
for (var i = 0; i < options.startTime.length; i++)
{
if (parseInt(options.startTime[i]) >= 0)
{
elem = $('<div id="cnt_' + i + '" class="cntDigit" />').css({
height: options.digitHeight * options.digitImages * 10,
float: 'left', background: 'url(\'' + options.image + '\')',
width: options.digitWidth});
digits.push(elem);
margin(c, -((parseInt(options.startTime[i]) * options.digitHeight *
options.digitImages)));
digits[c].__max = 9;
// Add max digits, for example, first digit of minutes (mm) has
// a max of 5. Conditional max is used when the left digit has reach
// the max. For example second "hours" digit has a conditional max of 4
switch (options.format[i]) {
case 'h':
digits[c].__max = (c % 2 == 0) ? 2: 9;
if (c % 2 == 0)
digits[c].__condmax = 4;
break;
case 'd':
digits[c].__max = 9;
break;
case 'm':
case 's':
digits[c].__max = (c % 2 == 0) ? 5: 9;
}
++c;
}
else
elem = $('<div class="cntSeparator"/>').css({float: 'left'})
.text(options.startTime[i]);
where.append(elem)
}
};
// Set or get element margin
var margin = function(elem, val)
{
if (val !== undefined)
return digits[elem].css({'marginTop': val + 'px'});
return parseInt(digits[elem].css('marginTop').replace('px', ''));
};
// Makes the movement. This is done by "digitImages" steps.
var moveStep = function(elem)
{
digits[elem]._digitInitial = -(digits[elem].__max * options.digitHeight * options.digitImages);
return function _move() {
mtop = margin(elem) + options.digitHeight;
if (mtop == options.digitHeight) {
margin(elem, digits[elem]._digitInitial);
if (elem > 0) moveStep(elem - 1)();
else
{
clearInterval(interval);
for (var i=0; i < digits.length; i++) margin(i, 0);
options.timerEnd();
return;
}
if ((elem > 0) && (digits[elem].__condmax !== undefined) &&
(digits[elem - 1]._digitInitial == margin(elem - 1)))
margin(elem, -(digits[elem].__condmax * options.digitHeight * options.digitImages));
return;
}
margin(elem, mtop);
if (margin(elem) / options.digitHeight % options.digitImages != 0)
setTimeout(_move, options.stepTime);
if (mtop == 0) digits[elem].__ismax = true;
}
};
$.extend(options, userOptions);
this.css({height: options.digitHeight, overflow: 'hidden'});
createDigits(this);
interval = setInterval(moveStep(digits.length - 1), 1000);
};</script>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2580228216980531059.post-91226401014363144152011-11-15T12:10:00.000-08:002011-11-20T12:19:20.182-08:00Introduction<div class="MsoNormal">Welcome to PHP & MySQL Web Development. </div><div class="MsoNormal">First let me introduce myself. My name in Filip , in advance I’d like to apologize for my grammar mistakes, and not so fluent English, because it’s not my native language. I won’t use <span class="hps"><span lang="EN">severe</span></span><span class="shorttext"><span lang="EN"> </span></span><span class="hps"><span lang="EN">expressions</span>, all the explanations will be simple and the code correct written. Due to insufficient funds, I am starting my tutorials as a blog, but later on, if the audience will be interested in my topics, I will make webpage. If you would like to donate, just click on adfly link (picture donate), it’ll cost you just 5 sec, and enable me to make real webpage with forum, more interactions etc. Enough about me let’s see what this is all about.</span></div><div class="MsoNormal">Here You will learn, how to create interactive Web sites, from simple Web forms to creating e-commerce sites, forums, Email Service, CMS, gaming sites, and social network from scratch.</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2580228216980531059.post-17412178607281609102011-11-15T12:07:00.000-08:002011-11-20T12:19:34.400-08:00Setting up hosting and domain nameThere are few types of hosting : - Paid hosting<br />
- Free hosting<br />
- Hosting on your computer<br />
<br />
<br />
While developing your webpage you can use free hosting, or host page on your computer. But later on when you gain huge amount of traffic, you should consider buying hosting services from big companies. I'll cover this section later after finishing all tutorials about web development.<br />
<br />
So lets start with hosting your page on computer. Here are the steps :<br />
<br />
1. We need to install server on our computer. Many people know from their own experience that it's not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl. <br />
XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. The link to XAMPP : http://www.apachefriends.org/en/xampp.html , just download, extract and start. In control panel star Apache and MySQL.<br />
<br />
2. All files that your web page consist of needs to be hosted at XAMPP, under HTDOCS folder. First go and delete all files in HTDOCS folder, create a basic HTML page, and save it as index.html inside HTDOCS folder.<br />
<br />
3. Now open your browser and type http://localhost/ and there it is your webpage.<br />
<br />
4. Setting up domain name: Visit this link : http://dyn.com/dns/ register. After logging in go to my host, click on your host and just update IP address. After that you can visit your webpage just by typing your domain name into browser, and you can access it worldwide.<br />
<br />
Free hosting :<br />
<br />
1. Go to this link and register http://www.freehostia.com/ <br />
2. After registration you have to create domain name so visit: http://register.cu.cc/ here you can register domain name. On my domain tab click manage your domain, than nameserver it should be inactive, so click on that and input nameserver1, and nameserver2, with informations you got from freehostia.<br />
<br />
If you have any problems registrating your free hosting, leave a comment and I'll make a video thoroughly explaing all the steps above. Point of this tutorial is just to set up a webhosting and domain name so you can follow incomming lessons. If you have any suggestions also leave a comment.Unknownnoreply@blogger.com0