Feeds:
Posts
Comments

Archive for August, 2006

Write pdf file in PHP

download the pdf lib file www.pdflib.com
coppy libpdf_php.dll to php extention folder and write these code for Hello world.
<?php
$p = PDF_new();
if (PDF_begin_document($p, “”, “”) == 0)
{die(“Error: ” . PDF_get_errmsg($p));}
PDF_set_parameter($p, “hypertextencoding”, “winansi”);
PDF_set_info($p, “Creator”, “hello.php”);
PDF_set_info($p, “Author”, “Md. Ashrafur Rahaman”);
PDF_set_info($p, “Title”, “Hello world (PHP)!”);
PDF_begin_page_ext($p, 595, 842, “”);
$font = PDF_load_font($p, “Helvetica-Bold”, “winansi”, “”);
PDF_setfont($p, $font, 24.0);
PDF_set_text_pos($p, 50, 700);
PDF_show($p, “Hello world!”);
PDF_continue_text($p, “(says [...]

Read Full Post »

What is the CLR?

The CLR is the heart and soul of .NET. The CLR is the runtime. In a nutshell, the CLR is a run-time environment in which .NET applications run. The CLR is layered on top of an operating system, and exists to provide services by being a layer between .NET applications and the operating system.  ref:http://samgentile.com/clr.htm

Read Full Post »

This is a possible solution for fixing error 80048820 in MSN messanger
This is often caused due to Incorrect Time/Date Settings in Windows. So the first thing you should do is make sure that you system has got the correct clock settings. To change the system time setting, just double-click on the time display on your [...]

Read Full Post »

Upload file in PHP

HTML Code:
<form enctype=”multipart/form-data” action=”uploader.php” method=”POST”>
<input type=”hidden” name=”MAX_FILE_SIZE” value=”100000″ />
Choose a file to upload: <input name=”uploadedfile” type=”file” /><br />
<input type=”submit” value=”Upload File” />
</form>
PHP Code:
$target_path = “uploads/”;
$target_path = $target_path.basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
{
echo “The file “.  basename( $_FILES['uploadedfile']['name']). ” has been uploaded”;
}else
{
echo “There was an error uploading the file, please try again!”;
}
If you want to give style for that file input type and [...]

Read Full Post »

Create a button run time

‘Create the button
Dim btn As New Button()
‘Specify the location and the size
btn.Location = New System.Drawing.Point(200, 30)
btn.Size = New System.Drawing.Size(100, 20)
btn.Text = “New Button”
‘Add it to the forms control collection
Me.Controls.Add(btn)
‘Link the event to the event handler
AddHandler btn.Click, AddressOf Me.ClickButton

Read Full Post »

Create Controls at Runtime

Someitme we need to create control at runtime, Here is a good example to create control runtime.
http://www.developerfusion.co.uk/show/4393/

Read Full Post »

SqlConnection is the SqlServer implementation, OleDb was everything ‘else’ . That’s been minimized to some degree since the addition of the ODBC and Oracle libraries in the 1.1 framework so OleDbConnection should probably be renamed to PeopleWhoStillUseMSAccessConnection

Read Full Post »

Here is a good reference for embedding swf file and get w3 authentication
http://blog.deconcept.com/swfobject/

Read Full Post »

XML Reader in VB.NET

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 ReadXMLFromFile()
End Sub
Private Sub ReadXMLFromFile()
 Dim reader As New XmlTextReader(“c:dom.xml”)
 Dim contents As String = “”
 While reader.Read()
  reader.MoveToContent()
  If reader.NodeType = XmlNodeType.Element Then
   contents &= reader.Name & “: “
  End If
  If reader.NodeType = XmlNodeType.Text Then
   contents &= reader.Value & ControlChars.CrLf
  End If
 End While
 TextBox1.Text = contents
End Sub

Read Full Post »

Color your scrollbar

we can color scrollbar and can customize this
<style type=”text/css”>
.innera {
overflow:auto;
width:495px;
height:267px;
scrollbar-3dlight-color:none;
scrollbar-arrow-color:#000000;
scrollbar-base-color:#DEDEDE;
scrollbar-darkshadow-color:#DEDEDE;
scrollbar-face-color:#ECECF5;
scrollbar-highlight-color:#DEDEDE;
scrollbar-shadow-color:#000000;
}
</style>
<div class=”innera”>write here what you want </div>
 

Read Full Post »