Blog

How to send email in asp.net C#
How to send email in asp.net C#I'm very new to ASP.net C# area. I'm planning to send a mail thru asp.net C# and this is the smtp address from my ISP: smtp-proxy.tm.net.myBelow is what I tried to do but failed.<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SendMail…[ More ]
How to send email in asp.net C#
How to send email in asp.net C#I'm very new to ASP.net C# area. I'm planning to send a mail thru asp.net C# and this is the smtp address from my ISP: smtp-proxy.tm.net.myBelow is what I tried to do but failed.<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="SendMail…[ More ]
Using fpdf to modify existing pdf in php
I have a bank of pdfs on my server which when downloaded need text appended to every page. I am using fpdf to try and open the file, append the text to each page, close the file and serve to the browser.$pdf = new FPDI();$pdf->setSourceFile($filename); // import page 1 $tplIdx = $pdf->importPage(1);…[ More ]
fpdf, fpdi, fpdm & fpdf_merge with multi page pdf - php conflicts
Hoping for some help. I'm trying to use the php below to do 4 things. The 1st long chunk adds a signature image to my sig.pdf template. The 2nd chunk fills form fields in my template3.pdf template.The 3rd chunk should merge both files. And the 4th chunk emails the merged pdf.1 and 4 by themselves wo…[ More ]
How-to: Create PDF preview images in PHP – Part 2
How-to: Create PDF preview images in PHP – Part 2There were comments on the original part of this example expressing that it wasn’t very newbie friendly since I didn’t show much code and focussed mostly on the installation of ImageMagick and not what to do once you have it installed. This post…[ More ]
How to create a runnable Jar File
How to create a runnable Jar FileCompile your class files into an executable JarHow to compile and run .java files from windows command prompt How to pass parameters to class from command promptBefore you learn how to create a Jar file, you should be proficient compiling and running Java source file…[ More ]
Problem executing .jar in php
Problem executing .jar in phpI am trying to run a simple .jar file in php. The .jar is supposed to read a file called test.txt and write a file called test2.txt.After creating the jar, I execute java -jar "C:\wamp\www\Sistem\Sistem\dist\Sistem.jar" in cmd and it works just fine, the test2.txt is mod…[ More ]
How to use Eclipse for PHP developers.
How to use Eclipse for PHP developers.This guide shows how to develop PHP applications using Eclipse PDT.Install Eclipse and the PHPDebugger.incDownload and install Eclipse for PHP developers.Create a PHP project and drag and drop PHPDebugger.inc to your eclipse PHP project.Activate the PHPDebugger …[ More ]
PDF convert and manipulation API - php
PDF convert and manipulation API - phpClick here for Instructions to use C# LibraryStep by step instructionsStep 1: Click here to obtain an api license key (opens in new window)By using our registration form, you will get an API key which will be needed to make calls to PDFaid.com. Step 2: Click her…[ More ]
openssl_pkcs7_sign
openssl_pkcs7_sign(PHP 4 >= 4.0.6, PHP 5)openssl_pkcs7_sign — Sign an S/MIME messageDescription ¶ ¶bool openssl_pkcs7_sign ( string $infilename , string $outfilename , mixed $signcert , mixed $privkey , array $headers [, int $flags = PKCS7_DETACHED [, string $extracerts ]] )openssl_pkcs7_sign() …[ More ]
openssl_pkcs7_encrypt
openssl_pkcs7_encrypt(PHP 4 >= 4.0.6, PHP 5)openssl_pkcs7_encrypt — Encrypt an S/MIME messageDescription ¶ ¶bool openssl_pkcs7_encrypt ( string $infile , string $outfile , mixed $recipcerts , array $headers [, int $flags = 0 [, int $cipherid = OPENSSL_CIPHER_RC2_40 ]] )openssl_pkcs7_encrypt() ta…[ More ]
Java Functions
Java Functions Table of Contents java_last_exception_clear — Clear last Java exceptionjava_last_exception_get — Get last Java exceptionadd a note add a noteUser Contributed Notes 26 notesupdown1 Anonymous ¶8 years agoFor those who want to run php with a recent tomcat version, you'll need the fo…[ More ]
Installation This » PECL extension is not bundled with PHP.
Installation This » PECL extension is not bundled with PHP.Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be …[ More ]
FPDF / FPDI addPage() Orientation
FPDF / FPDI addPage() Orientation'm using the following code to add a new page to my existing PDF document and save it.require('addons/fpdf.php');require('addons/fpdi.php');$pdf = new FPDI();   $pagecount = $pdf->setSourceFile($orgpdfpath);for($i = 1; $i <=  $pagecount; $i++){  $pdf->addPage();  $tp…[ More ]
Edit Existing PDF multiple page File using FPDF & PDFI
Edit Existing PDF multiple page File using FPDF & PDFII am usinf FPDI to edit my existing pdf file and its work perfect for single page. As ou can see i am editing my $tplIdx = $pdf->importPage(1); first page. I have six page pdf file and need to add 2 variable in different page.Is is possible ? How…[ More ]
add existing pdfs to fpdf
add existing pdfs to fpdfis there any function that I could call in order to inlcude an existing pdf in my fpdf file?for example$pdf->AddPage(from file example.pdf); .. something like that? is it posible?fpdi is what you are looking for - see http://www.setasign.de/products/pdf-php-solutions/fpdi/  …[ More ]
Signing large files with PHP openssl extension
Signing large files with PHP openssl extensionThe openssl extension for PHP provides the openssl_sign() function to sign data.The drawback of this function is that the data is fed with a single variable holding the entire data to be signed. This implies that all your data must fit in memory. This is…[ More ]
PHP sha1_file() Function
PHP sha1_file() FunctionPHP String Reference PHP String ReferenceExampleCalculate the SHA-1 hash of the text file "test.txt":$filename = "test.txt";$sha1file = sha1_file($filename);echo $sha1file;?>The output of the code above will be:aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434dDefinition and UsageThe s…[ More ]
openssl_x509_export_to_file
openssl_x509_export_to_file(PHP 4 >= 4.2.0, PHP 5)openssl_x509_export_to_file — Exports a certificate to fileDescription ¶ ¶bool openssl_x509_export_to_file ( mixed $x509 , string $outfilename [, bool $notext = TRUE ] )openssl_x509_export_to_file() stores x509 into a file named by outfilename in…[ More ]
openssl_x509_export
openssl_x509_export(PHP 4 >= 4.2.0, PHP 5)openssl_x509_export — Exports a certificate as a stringDescription ¶ ¶bool openssl_x509_export ( mixed $x509 , string &$output [, bool $notext = TRUE ] )openssl_x509_export() stores x509 into a string named by output in a PEM encoded format.Parameters ¶…[ More ]