Hướng dẫn cài đặt, cấu hình Apache, PHP và MySQL
Monday, November 22, 2010 6:55:46 AM
Bạn xem chi tiết tại link sau nhé.
http://lapoo.vn/huong-dan-cai-dat-va-cau-hinh-php-webserver-voi-apache-php-va-mysql/
About anything of i interest
Monday, November 22, 2010 6:55:46 AM
Tuesday, November 16, 2010 9:18:00 AM

Tuesday, November 16, 2010 9:15:19 AM
Wednesday, November 3, 2010 2:52:19 AM

Friday, August 20, 2010 8:13:17 AM
Friday, April 9, 2010 7:37:20 AM
/// <summary>
/// Method for removing a column and resizing a multi dimensional array
/// </summary>
/// <param name="oldArray">Original array that you want to remove column and resize</param>
/// <param name="columnI">Column index that you want to remove</param>
/// <returns></returns>
private string[,] RemoveAtColumnI(string[,] oldArray, int columnI)
{
int rows = oldArray.GetLength(0); // Numbers of rows in the original array
int cols = oldArray.GetLength(1); // Numbers of columns in the original array
// Variation declare
int j = 0;
// Create a new 2 dimensional array with the size we want
string[,] newArray = new string[rows, cols - 1];
// Remove column columnI
for (int i = 0; i < rows; i++)
{
for (j = 0; j < cols - 1; j++)
{
if (j < columnI)
{
newArray[i, j] = oldArray[i, j];
}
else
{
newArray[i, j] = oldArray[i, j + 1];
}
}
}
Tuesday, February 23, 2010 7:26:04 AM
Saturday, October 24, 2009 4:11:35 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<title>Untitled Page</title>
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
var fileMax = 3;
$('#asdf').after('<div id="files_list" style="border:1px solid black;padding:5px;background:#fff;font-size:x-small;"><strong>Files (maximum '+fileMax+'):</strong></div>');
$("input.upload").change(function(){
doIt(this, fileMax);
});
});
function doIt(obj, fm) {
if($('input.upload').size() > fm)
{
alert('Max files is '+fm); obj.value='';
return true;
}
$(obj).hide();
$(obj).parent().prepend('<input type="file" class="upload" name="fileX[]" />').find("input").change(function() {doIt(this, fm)});
var v = obj.value;
//File size
if (navigator.userAgent.indexOf("Firefox") != -1){
var node = document.getElementById('element_input');
var fileSize = node.files[0].fileSize;
}else{
var myFSO = new ActiveXObject("Scripting.FileSystemObject");
var thefile = myFSO.getFile(v);
var fileSize = thefile.size;
}
if(v != '') {
$("div#files_list").append('<div>' + v + ' <font color=blue>File size : ' + fileSize + 'bytes.</font> <a href="#" class="remove" />remove</a></div>')
.find("a").click(function(){
$(this).parent().remove();
$(obj).remove();
return true;
});
}
};
</script>
</head>
<body>
<h1>Multiple File Upload</h1>
<form action="#" method="post" enctype="multipart/form-data" name="asdf" id="asdf" runat="server">
<div id="mUpload">
<input type="file" id="element_input" class="upload" name="fileX[]" /><br />
<input type="button" name="Submit" value="Submit" id="send" />
</div>
</form>
<script type+"text/javascript">
$('#send').click(function(){
alert('Demonstration Only: file upload disabled');
});
</script>
</body>
</html>
Thursday, October 22, 2009 2:03:53 AM
<head>
<script>
//Check file size with every file type
function checkFileSize()
{
if (navigator.userAgent.indexOf("Firefox") != -1){
checkFileSizeFireFox();
}else{
checkFileSizeIE();
}
}
//Check file size before upload, it is working well with Firefox
//It is not compatible with another browse
function checkFileSizeFireFox() {
var node = document.getElementById('file');
alert('fileSize = '+node.files[0].fileSize);
}
// It is working well with IE
function checkFileSizeIE()
{
var myFSO = new ActiveXObject("Scripting.FileSystemObject");
var filepath = document.upload.file.value;
var thefile = myFSO.getFile(filepath);
var size = thefile.size;
alert(size + " bytes");
}
</script>
</head>
<body>
<form name="upload">
<input type="file" name="file" id="file">
<input type="button" value="Size?" onClick="checkFileSize();">
</form>
</body>
</html>
Friday, February 6, 2009 3:54:29 AM
var ACTIVEX_OBJECT_STRING = "Microsoft.XMLHTTP";
var METHOD = "GET";
function getXMLHttpRequest()
{
if( window.XMLHttpRequest )
{
// IE7, Mozilla, Safari, Opera
return new XMLHttpRequest();
}
else if( window.ActiveXObject )
{
try
{
// IE 5.x, IE 6
return new ActiveXObject(ACTIVEX_OBJECT_STRING);
}catch(e)
{
window.status = e.message;
}
}
return null;
}
function sendRequest(xmlHttpRequest, url, callBackFunction)
{
if( !xmlHttpRequest )
throw "XMLHttpRequest is null";
xmlHttpRequest.open(METHOD, url);
xmlHttpRequest.onreadystatechange = callBackFunction;
xmlHttpRequest.send(null);
}
<script type="text/javascript">
var xmlHttp = null;
function onClick(){
xmlHttp = getXMLHttpRequest();
if( xmlHttp != null )
var url = "Text.txt";
sendRequest(xmlHttp, url, onCallBack);
}
function onCallBack()
{
if( xmlHttp == null || xmlHttp.readyState != 4 )
return;
if( xmlHttp.status == 200 )
{
var showResult = document.getElementById("result");
if( showResult != null )
showResult.outerHTML = "<h1>" + xmlHttp.responseText + "<h1>";
}
else
{
window.status = "Error: " + xmlHttp.status;
}
}
</script>
<form id="form1" runat="server"> <span id="result"> <input type="button" value="Hello" onclick="#onClick()" /></span> </form>
Nhà thiết kế website tại Đà Nẵng - Lapoo JSC
Nhà thiết kế website bán hàng trực tuyến - Lapoo JSC
Tư vấn đăng tin rao vặt hiệu quả - Lapoo JSC