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 [...]
Archive for August, 2006
Write pdf file in PHP
Posted in PHP, tagged PHP on August 27, 2006 | Leave a Comment »
What is the CLR?
Posted in General, tagged CLR, General on August 23, 2006 | 1 Comment »
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
Do you receive Error Code 80048820 when attempting to sign into MSN Messenger?
Posted in General, tagged General on August 22, 2006 | 11 Comments »
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 [...]
Upload file in PHP
Posted in PHP, tagged PHP on August 21, 2006 | Leave a Comment »
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 [...]
Create a button run time
Posted in Uncategorized, tagged Archive, vb.net on August 13, 2006 | Leave a Comment »
‘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
Create Controls at Runtime
Posted in C#.NET, tagged C#.net, control on August 13, 2006 | 1 Comment »
Someitme we need to create control at runtime, Here is a good example to create control runtime.
http://www.developerfusion.co.uk/show/4393/
Difference between OleDBConnection and SqlConnection?
Posted in General, tagged General, OleDB, sql on August 13, 2006 | Leave a Comment »
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
SWFObject: Javascript Flash Player detection and embed script
Posted in General, tagged SWFObject on August 12, 2006 | Leave a Comment »
Here is a good reference for embedding swf file and get w3 authentication
http://blog.deconcept.com/swfobject/
XML Reader in VB.NET
Posted in VB.NET, tagged vb.net on August 8, 2006 | Leave a Comment »
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

