Archive for August, 2006

Write pdf file in PHP

download the pdf lib file http://www.pdflib.com
coppy libpdf_php.dll to php extention folder and write these code for Hello world.

$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 PHP)”);
PDF_end_page_ext($p, “”);
PDF_end_document($p, “”);
$buf = PDF_get_buffer($p);
$len = strlen($buf);
header(“Content-type: application/pdf”);
header(“Content-Length: $len”);
header(“Content-Disposition: inline; filename=hello.pdf”);
print $buf;


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 Taskbar (usually in the lower right corner of your screen).

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” />
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”;
    echo “There was an error uploading the file, please try again!”;

Read Full Post »

‘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
‘Link the event to the event handler
AddHandler btn.Click, AddressOf Me.ClickButton

Read Full Post »

Someitme we need to create control at runtime, Here is a good example to create control runtime.


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 »

Older Posts »