September 2013
wordress Plugin Install Asks for FTP Details
Please use in wp-config.php define(‘FS_METHOD’, ‘direct’);This statement solve my issue.
PHP Fatal error: Allowed memory size
I am receiving the following error whilst trying to download huge size file from live php serve php Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1705654 bytes) Here are some options to increase PHP memory allocation If you can edit or override the system php.ini file, increase the memory limit. […]
How do you run executable files on Windows 7 using the command prompt?
We have Just write the file path of executable file into the command prompt and press enter, like this: c:/pathoffile/fileName.exe
jQuery UI Virtual Keyboard Plugin Example
Here is jQuery UI virtual keyboard plugin. This plugin will provide features like 1) An on-screen virtual keyboard embedded within the browser window which will popup when a specified entry field is focused.2) The user can then type and preview their input before Accepting or Canceling.3) Add custom keyboard layouts easily.4) Add up to four […]
How to Add javascript in Joomla
There are three ways to add javascript Inline JavaScript 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScriptDeclaration(‘ 4: window.event(“domready”, function() { 5: alert(“An inline JavaScript Declaration”); 6: }); 7: ‘); 8: ?> External JavaScript There are two ways to include a JavaScript file 1: <?php 2: $document = JFactory::getDocument(); 3: $document->addScript(‘/media/system/js/sample.js’); 4: ?> The second […]
How to convert php date into mysql format
1. MySQL column datatype is “DATE” $date = date(‘Y-m-d’, strtotime(str_replace(‘-‘, ‘/’, $date))); 2. MySQL column datatype is “DATETIME”: $date = date(‘Y-m-d H:i:s’, strtotime(str_replace(‘-‘, ‘/’, $date)));
php date() and mktime() example
This can be more reliable than simply adding or subtracting the number of seconds in a day or month to a timestamp because of daylight saving time. <?php $tomorrow = mktime(0, 0, 0, date(“m”) , date(“d”)+1, date(“Y”)); $lastmonth = mktime(0, 0, 0, date(“m”)-1, date(“d”), date(“Y”)); $nextyear = mktime(0, 0, 0, date(“m”), date(“d”), date(“Y”)+1); ?>
Money Booker Payment Integration
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <title>Untitled Document</title> </head> <body> <form action=”https://www.moneybookers.com/app/payment.pl” method=”post” target=”_blank”> <input type=”hidden” name=”pay_to_email” value=”merchant@moneybookers.com”> <input type=”hidden” name=”status_url” value=”merchant@moneybookers.com”> <input type=”hidden” name=”language” value=”EN”> <input type=”hidden” name=”amount” value=”39.60″> <input type=”hidden” name=”currency” value=”GBP”> <input type=”hidden” name=”detail1_description” value=”Description:”> <input type=”hidden” name=”detail1_text” value=”Romeo and Juliet […]
Integrate Alertpay payment gateway
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> <title>Untitled Document</title> </head> <body> <form method=”post” action=”https://www.alertpay.com/PayProcess.aspx” > <input type=”hidden” name=”ap_purchasetype” value=”item”/> <input type=”hidden” name=”ap_merchant” value=”apdevforum@gmail.com”/> <input type=”hidden” name=”ap_currency” value=”USD”/> <input type=”hidden” name=”ap_itemname_1″ value=”Item 01″/> <input type=”hidden” name=”ap_itemname_2″ value=”Item 02″/> <input type=”hidden” name=”ap_itemname_3″ value=”Item 03″/> <input type=”hidden” name=”ap_description_1″ value=”Lorem […]