If you want to give your site users to access your website content in different languages like spanish, dutch, german etc. automatically! then this simple script can do it in seconds using google translator. Best part is, you do not even need to know languages yourself!
<?php $defaultLang = 'en'; /* * Don't edit under here */ $hostname = $_SERVER['SERVER_NAME']; $url = 'http://'.$hostname. htmlentities($_SERVER['REQUES T_URI']); ?> <script type="text/javascript"> <!-- function DoTranslate(lang){ if(lang == "<?=$defaultLang?>"){ url = "<?=$url?>"; }else{ url = "http://209.85.135.104/translate_c?hl= <?=$defaultLang?>&langpair=<?=$defaultLang?> |"+lang+"&u=<?=$url?>"; } eval("parent.location='"+url+"'"); } //--> </script> <a href="javascript:DoTranslate('en')">English</a> | <a href="javascript:DoTranslate('es')">Spanish</a> | <a href="javascript:DoTranslate('de')">German</a> | <a href="javascript:DoTranslate('it')">Italian</a> | <a href="javascript:DoTranslate('nl')">Dutch</a> | <a href="javascript:DoTranslate('pt')">Portuguese</a> | <a href="javascript:DoTranslate('zh-CN')">Chinese Simplified</a> | <a href="javascript:DoTranslate('el')">Greek</a> | <a href="javascript:DoTranslate('ar')">Arabic</a> | <a href="javascript:DoTranslate('ru')">Russian</a>
I added 10 languages (English, Spanish, German, Italian, Dutch, Portuguese, Chinese Simplified, Greek, Arabic, Russian) for my project but you can add more languages that google translator support. Please visit google translator site for more reference.
For any advise/help please contact with me.
Thanks…
[Note: Please do understand that the translations are dependent on the quality of language in your site in terms of grammar and spelling. ]
Once I needed to curve an image using css but I failed. I fixed it then using JavaScript but now I am feeling happy because css3 solved curve issue and also many more. Though there has a browser issue (IE) but I think this article will be helpful for all but specially joomla/mambo developers. (This article copied from: http://www.css3.info/preview/)
Some functions and features of CSS3 are:
Text effects
User-interface
- box-sizing
- resize
- outline
- nav-top, nav-right, nav-bottom, nav-left
Selectors
Basic box model
- overflow-x, overflow-y
Generated Content
- content
about eSelect Plus (similar to authorize.net AIM):
eSELECTplus is the first e-payment system to be developed by a Canadian acquirer. As the first solution completely developed and managed by a Canadian Acquirer/Processor. Moneris’ Payment Gateway will bring stability and support to the Canadian eCommerce market. It also supports batch and call centre environments. Through the payment gateway we are providing solutions that address issues unique to the Canadian market as well as ensure compliance to international payment regulations.
———————–
I developed a very simple and straightforward php class (also modified classes provided by eselect) to integrate eselect payment gateway in one of my project. If you are thinking to integrate eselect payment gateway in your web site then you can use my class which is here. An example given below how to use this script.
Pre-requisite: php>=5
<?php /*----- Including Main Class --------*/ require_once ("IWMoneris.php"); /* # # Transaction Array # */ $transactionArray = array( /*@--- TRUE = test mode :: FALSE = live mode ----*/ 'test_mode' => TRUE, /*@------ TRUE = ssl enabled :: FALSE = ssl disabled ----*/ 'ssl_enabled' => FALSE, /*@------- API strore id used to submit transactions.----*/ 'store_id' => 'monusqa002', /*@------- API Token id used to submit transactions.----*/ 'api_token' => 'qatoken', /*@Merchant defined unique transaction identifier - must be unique for every Purchase. Characters allowed for Order ID: a-z A-Z 0-9 _ - : . @ spaces.... Max Size: 50*/ 'order_id' => 'ord-'.date("dmy-G:i:s"), /*@ Max Size: 50 */ 'customer_id' => 'cust_123', /*@ Max Size: 20. Credit Card Number - no spaces or dashes. Most credit card numbers today are 16 digits in length but some 13 digits are still accepted by some issuers. This field has been intentionally expanded to 20 digits in consideration for future expansion and/or potential support of private label card ranges. */ 'cc_card_number' => '5454545454545454', /*@ Max Size: 4. Expiry Date - format YYMM no spaces or slashes. */ 'cc_exp_date' => '0909', /*@ Max Size: 9/decimal. Amount of the transaction. This must contain 3 digits with two penny values. The minimum value passed can be 0.01 and the maximum 9999999.99 */ 'amount' => '12.00', /*@ Max Size: 17. Level 2 Invoice Number for the transaction. Used for Corporate Credit Card transactions (Commercial Purchasing Cards). Characters allowed for commcard_invoice: a-z A-Z 0-9 spaces */ 'invoice_number' => 'inv 123', /*@ Max Size: 9/decimal. Level 2 Tax Amount of the transaction. Used for Corporate Credit Card transactions (Commercial Purchasing Cards). This must contain 3 digits with two penny values. The minimum value passed can be 0.01 and the maximum is 9999999.99 */ 'tax_amount' => '0.00' ); /* # # Initiating payment gateway class # constructor param: transaction array # */ $moduleObj = new IWMoneris($transactionArray); /* # # Creating Items # At list one item needed # */ $item1 = array( /*@ Product Item Name */ 'item_name' => 'Registration1', /*@ Product Item Quantity */ 'item_quantity' => '1', /*@ Product Item Code */ 'item_code' => '416-555-555511', /*@ Product Item Price. Max Size: 9/decimal */ "item_amount" => '12.00' ); $item2 = array( /*@ Product Item Name */ 'item_name' => 'Registration2', /*@ Product Item Quantity */ 'item_quantity' => '1', /*@ Product Item Code */ 'item_code' => '416-555-555512', /*@ Product Item Price. Max Size: 9/decimal */ "item_amount" => '12.00' ); /*------ Adding items to transaction object ----------*/ $moduleObj->SetItem($item1); $moduleObj->SetItem($item2); /* # # Customer email notification (optional) # */ $email = array( /*@ Customer email address */ 'email' => 'email@email.com', /*@ email instructions */ 'instructions' => 'make it first', ); /*------ Adding email notifications array to transaction object ----------*/ /*------ Comments/Remove this if not needed ------------------------------*/ $moduleObj->SetEmailInstruction($email); /* # # Customer billing information (optional) # */ $billingArray = array( 'first_name' => 'Joe', 'last_name' => 'Thompson', 'company_name' => 'Widget Company Inc.', 'address' => '111 Bolts Ave.', 'city' => 'Toronto', 'province' => 'Ontario', 'postal_code' => 'M8T 1T8', 'country' => 'Canada', 'phone_number' => '416-555-5555', 'fax' => '416-555-5555', 'tax1' => '0.00', 'tax2' => '0.00', 'tax3' => '0.00', 'shipping_cost' => '0.00' ); /*------ Adding billing information to transaction object ----------*/ /*------ Comments/Remove this if not needed -------------------------*/ $moduleObj->SetBillingInfo($billingArray); /* # # Customer shipping information (optional) # */ $shippingArray = array( 'first_name' => 'Joe', 'last_name' => 'Thompson', 'company_name' => 'Widget Company Inc.', 'address' => '111 Bolts Ave.', 'city' => 'Toronto', 'province' => 'Ontario', 'postal_code' => 'M8T 1T8', 'country' => 'Canada', 'phone_number' => '416-555-5555', 'fax' => '416-555-5555' ); /*------ Adding Shipping information to transaction object ----------*/ /*------ Comments/Remove this if not needed -------------------------*/ $moduleObj->SetShippingInfo($shippingArray); /* # # Sending request to payment gateway server # Returns an array. Array keys: # success = true/false, code = transaction code, message = response message # */ $response = $moduleObj->Process(); if($response['success']) { echo 'Transaction Successfull::<br />'; } else { echo 'Transaction Failed::<br />'; } echo 'Code:: '.$response['code'].'<br />'; echo 'Msg:: '.$response['message'].'<br />'; echo '<br />Details response is given below:<br />'; $moduleObj->DumpResponse(); ?>
As I developed this script very urgently so many things are skiped which are also necessary. Hope you will make it more reliable when you will use it.
For any advise/help please contact with me.
Thanks…
Today, i have written a script named “Dynamic ID card generator” for one of my php project. The output of this script is an image id card from given input values. Customers/Users need to save it to their desktop and then they can print it .
If you are planning to provide id card to your website users and if your site is running on php (version > 4.1) platform and have GD enabled, then this script for you. You can easily customize font color, font type, card theme, image border color etc. from configuration file.
As this script created very urgently so bugs are not unexpected and I beg pardon for this. The drawback of this script, I think image/text placing is very straight forward. I believe it can be more dynamic. If I get time in future I will do it but you guys can give a more professional look.
Inputs: = array();
You need to pass a two dimensional array to constructor.
Output: = image;

For the above image output, code given below:
(please do not change array keys except $params['card_holder']['details'][])
<?php define("_SLG_", 1); // including configurable variables file require_once("constants.php"); // including image processing class require_once("libs/Class.ImageProcessing.php"); // including id generator class require_once("libs/Class.GenerateIdCard.php"); // declaring empty array $params = array(); // card holder's ID $params['card_holder']['id'] = 'p1254edce'; // card holder's name $params['card_holder']['name'] = 'Muhammed Imran Hussain'; // card holder's image name. This image must be locate in script images directory $params['card_holder']['image'] = 'customer.jpg'; // card holder's basic info. Maximum 3 elements. // Array keys will be title and value will be field value $params['card_holder']['details'] = array( 'DOB'=>'23/10/1985', 'City'=>'Dhaka', 'Nationality'=>'Bangladeshi' ); // card issue date $params['card_holder']['issue_date'] = "10/25/2008"; // card expire date $params['card_holder']['expire_date'] = "10/25/2010"; /*-------------------------------------------------*/ /*------------ Card provider's title text ---------*/ /*-------------------------------------------------*/ $params['card_provider']['card_provider_title_text'] = "beta version 2.0"; /*---- creating GenerateIdCard class object -----------*/ $objCard = new GenerateIdCard($params); /*---- giving output -----------*/ $objCard->ImageOutput(); ?>
Thanks all.
If your windows pc suffering for spyware or suspicious activities like registry edit blocked, task manager disabled, folder.exe virus or others unexpected activities which your Anti virus software couldn’t detect then try with Combofix.
ComboFix is a program written by sUBs, that removes spyware, malware, rogue antispyware apps and Vundo infections. Also it deletes a bunch of files related to the infections and is updated fairly regularly. When Combofix finished, it will produce a report for you. Power user can use the report to search and remove infections that are not automatically removed.
For more reference:
- http://www.myantispyware.com/2007/10/08/combofix-another-free-anti-spyware-tool/
- http://www.bleepingcomputer.com/combofix/how-to-use-combofix/
Thanks to: who created this tool and $qc->getMyBrother(”razu“), for giving me this very important tool from your collection.
at last I launched my blog imranweb7.com. though i have 3+ years experience in web programming but i am seeing now i know nothing that i can cope with current trends that’s why my site theme is “imran - beta version 2.0“. from now i am very serious and i wish in the next 1 year i will develop myself in a way that i can run with latest technologies and technique. I expect pray from all of my well wishers.
i would like to thanks all of my colleagues of quantumcloud who helped me to launch this site. specially thanks to enamul bhai, razu bhai, zoha bhai and salam bhaia for their suggestions and inspiration. i also would like to thanks rafiq bhai who is my all time teacher from whom i am learning programming techniques.
and many many special thanks to MD of quantumcloud for giving me a chance to work in his company when i just completed my first year of hon’s education and ringku bhai who teaches me how to lead and become a problem finder. they built up my confidence level from their “nothing impossible” mentality.
as long as i will alive i will not forget some great people. my pray will continue always for them and they are shimul bhai, rupom bhai, proson bhai, nazmul bhai and rakib bhai for their non stop guidance and help.
i would like to mention here two great designers name james bhai and hasan bhai who are really great personally and professionally.
—————————
thanks to all
thanks my dad, my mom, my brothers, my beloved sister, chotto fuppy (aunt), and grand’ma.

Recent Comments