//
archives

Web Based

This category contains 39 posts

SSH Using PHP

Install SSH2 PHP in Centos 6.5 Before we start, please ensure that you have the EPEL repo installed. If you don’t, goto http://fedoraproject.org/wiki/About_EPEL to get instructions. Firstly, we’re going to install the dependencies: yum install gcc php-devel php-pear libssh2 libssh2-devel These will allow us to build the SSH2 extension using pecl. pecl install -f ssh2 After running … Continue reading

Javascript Google Maps V3, multiple Marker with color dan label

1. get API key from google.com All Maps API applications* should load the Maps API using an API key. Using an API key enables you to monitor your application’s Maps API usage, and ensures that Google can contact you about your application if necessary. If your application’s Maps API usage exceeds the Usage Limits, you must … Continue reading

Installing Apache and PHP5 at CentOS Linux

CentOS comes with Apache v.2.2.3 and PHP v.5.1.6 and they are easily installed via the default CentOS Package Manager ‘yum’. The advantage of using yum (as opposed to installing via source code) is that you will get any security updates (if and when distributed) and dependencies are automatically taken care of. Apache Install A basic … Continue reading

Pattemplate for PHP, call template in different page

Can I re-use templates in different pages? Of course you can. Let’s say you’v got a footer and a header, which should be the same in all of your pages, so you have to change it only once and it will be updated in all pages. To accomplish this, at first create the two files, … Continue reading

Simple Encrypt/Decrypt String, ASP.NET/VB

This sample class for Encrypt/Descrypt string : Imports System.IO Imports System.Security.Cryptography Imports System.Text Public Class globalSecurity Protected key As String = “&/?@*>:>” Public Sub New() ‘constructor End Sub Public Function encryptString(ByVal strtext As String) As String Return Encrypt(strtext, key) End Function Public Function decryptString(ByVal strtext As String) As String Return Decrypt(strtext, key) End Function ‘The … Continue reading

POS Printing Using PHP (dotmatrix Printing)

source : http://mocopat.wordpress.com/2012/01/18/php-direct-printing-printer-dot-matrix-lx-300/ <?php $tmpdir = sys_get_temp_dir();   # ambil direktori temporary untuk simpan file. $file =  tempnam($tmpdir, ‘ctk’);  # nama file temporary yang akan dicetak $handle = fopen($file, ‘w’); $condensed = Chr(27) . Chr(33) . Chr(4); $bold1 = Chr(27) . Chr(69); $bold0 = Chr(27) . Chr(70); $initialized = chr(27).chr(64); $condensed1 = chr(15); $condensed0 = … Continue reading

PHP Report : iReport (JasperReport) with PHP JavaBridge

NOW! Professional Reporting can embeding in PHP source, that report will be helping Reporting data from Mysql and handle paper size dan page number. iReport will helping design and setting print data. A. AppServer AppServ 2.5.10 Apache 2.2.8 PHP 5.2.6 MySQL 5.0.51b phpMyAdmin-2.10.3 Download Sourceforge.net : http://prdownloads.sourceforge.net/appserv/appserv-win32-2.5.10.exe?download MD5SUM : 279c0c39866fbecb8a3904969fd5d0f4 B. iReport Download from http://sourceforge.net/projects/ireport/files/iReport%20(classic)/ (test using iReport 0.5.0 … Continue reading

ASP.NET : Read & Write Text File

Reading From a Text File The first step in reading from a text file is hooking up a StreamReader to the specified file. This is accomplished by using the File class’s OpenText() method. This can be accomplished in the following single line of code: ‘VB.NET Dim sr as StreamReader = File.OpenText(“C:\test.txt”)// C# StreamReader sr = File.OpenText(“C:\\test.txt”); A couple quick things to … Continue reading

Upload Image File with refresh image

If using IE browser, after upload image file and viewing the image you cannot getting preview of new image after upload that image component viewing last image before upload. You need trick to refreshing the image. See below : Example : <asp:Image ID=”img” runat=”server” />  ASP.NET scipt : dim fpath as string = “../upload/image.jpg”  img.ImageURL … Continue reading

Website Security Stressing

1. download portable version : Genuine version see : http://www.acunetix.com/index.htm [B]Acunetix Web Vulnerability Scanner[/B] http://www.fileserve.com/file/3HVnzhQ 2. Create project, File ==>> New 3. Choose webscanner 4. Add your URL website that you want stressing 5. Choose your profile, or chosee default for run all profile/type 6. Click Start to stressing your website 7. Below, trial testing using Joomla … Continue reading

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 10 other subscribers
May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archives

Web Statistic

Blog Stats

  • 187,130 hits