Though quite different in their design and implementation, both .NET and Java platforms and their associated programming APIs were designed with caution and precision. It is not a matter of chance that one of them has a feature that the other lacks, but is often the result of an intentional design implementation. When different methods are used to tackle the same issue, each will present itself with advantages and disadvantages. So a difference between the .NET and Java platforms will be the effect of a conscience decision, a matter of choice in which to implement a solution in a certain way. This article tries to portrait how .Net is different from Java and other widely used platforms, and also what each can or can not do.
Feature comparison
Compiled Code – Increases website speed (precompiled is the fastest)
this post is got from another blog. we try to use it, but we little confuse with that tutorial. so we create the better tutorial just for you.
fisrt what is FCKeditor? oh you can find it here. that is WYSIWYG Text and HTML Editor for the web
and what is CodeIgniter? well you can find it here. that is PHP framework.
now how to integrate it? let’s do this:
1. copy FCKeditor to your web directory.
2. use FCKeditor as javascript plugin. see the documentation.
This function is used for date validation on a string
Return of this function is boolean.
function is_date($str){
$return = (bool) preg_match("(\b([1-9]([0-9]{3}))\-(1[0-2]|0[1-9])\-(3[01]|[12][0-9]|0[1-9])\b)",$str);
if(strlen($str)==10){
return $this->is_date_time($str);
}
if($return){
$return = (bool) (strlen($str)==10);
}
return $return;
}
This function is used for time validation on a string
Your application in code igniter is a PHP-Site.You can use Code Igniter to create multiple application using one core. You can create subdomain for each application (not only one domain).
But still in one model for one application. so the application has their own model. and the model can’t be used by other application. :p
Imagine if you has multiple application with the same feature and same database and the application is connected(integrated). so you create a model using copy paste? maybe it can be a problem if you forgot to copy paste.
How to use multiple application using one core and one model? so the application you has created just using one model. and you just create and edit one file.
interesting.
this script is using for countdown (waiting) timer.
you can use for download script, website popUp, and other think.
let’s check it out.
this is the container or targer for countdown script:
<div id="antiteori">
<a href="#" onclick="return false;">link for what you want to go</a>
</div>
this is the javascript function
<script>
dn4 = 5; // how long the countdown
function countdown(){
if ((0 <= 100) || (0 > 0)){
dn4--;
if(dn4 == 0){
//countdown finished
document.getElementById('antiteori').innerHTML = "<a href=\"#\" onclick=\"return false;\">" + "My Link </a>";
}
if(dn4 > 0){
document.getElementById('antiteori').innerHTML = 'Please wait <font color="#FF0000"><b> ' + dn4 + '</b></font> second..';
setTimeout('countdown()',1000); //1000 is in mili seconds so it same as 1 second
}
}
}
countdown();
</script>
very easy eh?thats right!
This code is simply and easy to use,
and you can modify what you want.
thanks 4 reading….
SQL injection is a dangerous hacking techniques. How to prevent that?
example: http://target.com/news.php?id=19
In most applications made by a beginner programmer, the code in the program are as follows news.php
<?php
require_once("connections.php");
$sql = "SELECT * FROM news WHERE id=".$_GET['id'];
$result = mysql_query($sql);
while($news = mysql_fetch_array()){
echo "<h2>".$news['title']."</h2>";
echo "Posting pada tanggal: ".$news['date_post'];
echo $news['content'];
}
?>there is no filter in $_GET['id']. This is a very dangerous! Cmon,..lets do this.
Load HTML from a remote file and inject it into the DOM.
Default request is “GET” – but if you pass in any extra parameters then a POST will occur. You can specify a jQuery selector in the URL(in jQuery 1.2). Doing so will filter the incoming HTML document, only injecting the elements that match the selector. The syntax looks something like “url #some > selector”.
examples :
$("#links").load("/Main_Page #p-Getting-Started li");
arguments:
$(’selector’).load(’url’,'data’,'callback’);
url => The URL of the HTML page to load.
data => Key/value pairs that will be sent to the server. (optional)
‘callback’ => The function called when the ajax request is complete (not necessarily success). (optional)
live example JQuery Ajax Load
now i want to share about how to create thumbnails image without writing file on server
for example: the default image is 800*600px.
if you using the html code like :
<img src="imgpath/imgname.jpg">then the dimension(width & height) is outomatically same as the original image dimension.
how about
<img src="imgpath/imgname.jpg" width="200" height="150">the image dimension is same as on the script, but the original size is not change
check this script
insert this javascript in your page
javascript:setting
var sliderwidth="734px"
var sliderheight="130px"
var slidespeed=1
var slidebgcolor=""
var table_style="margin:auto;padding:0;"
var a_img_height=100
var a_img_width=125
var a_img_folder="images/"
var a_img_style="margin:10px 6px;float:left"javascript():create link with image
function linkimage(preview,thumnail){
alink = '<a href="'+a_img_folder+preview+'">'
alink += '<img align="absmiddle" src="'+a_img_folder+thumnail+'"'
alink += ' height="'+a_img_height+'" width="'+a_img_width+'"'
alink += ' style="'+a_img_style+'"></a>'
return alink
}
recaptcha are the anti spam method using captcha. may captcha just using leter and or number but recaptcha using 2 word in different image with AES (Advance Encryption System) on sending the code.
this is available in wordpress plugin called WP-reCAPTCHA

