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
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
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
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
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
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
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
You must enable mod_rewrite before you can use it. If you want to enable it in httpd.conf, then use Options FollowSymLinks Fileinfo or Options SymLinksIfOwnerMatch Fileinfo If you wish to enable mod_rewrite at the .htaccess level (i.e. only in certain (sub)directories within each vHost and not for all (sub)directories of each vHost), then you must set allowOverride Options (at a … Continue reading
Title TestDetailsPattern Title Expression ^\$[0-9]+(\.[0-9][0-9])?$ Description Validates a dollar amount including a dollar sign and 2 decmals. The decimal and cents are optional. Matches $1.50 | $49 | $0.50 Non-Matches 1.5 | $1.333 | this $5.12 fails Title TestDetailsPattern Title Expression ^(\d{1,3}'(\d{3}’)*\d{3}(\.\d{1,3})?|\d{1,3}(\.\d{3})?)$ Description This regex match numeric data in the following format: thousands are separated by (‘) apostrophe, decimal places are separated by … Continue reading
Google Analytics is easy to set up and it won’t cost you a dime. More importantly, you can have lots of great data about your visitors tracking within the hour. Google Analytics and most other analytics applications are installed by pasting a few snippets of javascript code in the footer of the site. If you … Continue reading