MyBlogPlanner

July 21st, 2010

Store which will sell your product a day.

Do you want to sell your one product a day. Also your customer can bid on that product and can buy the product.

Simply gain your product accessability much easier to customer and get best price for your product.

I have built a new script like that If you are interested on it you can simply check out by clicking here

Feature Available for this script.

1. Add product according to the date available.

2. Add 5 different bid price.

3. Add shipping for each product/ Or you can use any shipping module you like.

3. Credit Card, Pay pal , Authorize.net, Bank Payment Facility.

4. If Highest bidder do not buy the product the product will just transfer to the second highest bidder. That wil help you to get sure shot customer to sell your product.

5. Deals will automatically close with auto program and choose bidder.

6. The product which are not sold will be shown in prvious work gallery.

7. If customer directly buy just clicking on highest bid the product wil be locked for sell.

There are more features are there. For more inquiries Contact

June 7th, 2010

Exclude Directory While zip file in unix platform

If you want to zip file and exclude some directory while file zip in linux you can simply use the below command.

zip -r filename.zip folder -x folder1 folder2

Where as folder is the going to zip in the name of filename.zip and folder1 and folder2 will be exclude from while zipping.

May 20th, 2010

Web Master Beaware of Domain name scammer

Just today I got one email to my mailbox. That some one is trying to buy our keyword domain name They mentioned the name “Jiahe International Investment Co” is trying to buy domain with our brand name. I scared after seeing that and then and there I email them that we are not aware of that and we don’t know  “Jiahe International Investment Co” please don’t sell domain to them.

At night I just casually searching about them to find out who are they and I found a post they are simple spammer they will send you this type of email and then they will ask you to pay an absurd amount to buy those domain.

Below is the email if you get any email just ignore it.

 

 

Dear Manager

 

We are a professional intellectual property rights consultant organization, mainly engaged in domain name registration and internet intellectual property rights protection.

 

We formally received an application from Jiahe International Investment Co., Ltd on May.20, 2010, whom applied for registering the internet keyword “itcslive  ” and some related domain names with our organization.

 

During our preliminary investigation, we found the keyword of those domain names is identical as your trademark. Therefore, we need to confirm with you whether you consigned Jiahe International Investment Co., Ltd to register with us or not? Or, is Jiahe International Investment Co., Ltd your partner or distributor? If you don’t have any relationship with this company, they may probably have other purposes to obtain those domain names and internet keyword.

 

We have already suspended this company’s application temporarily due to the seriousness of this issue. In order to avoid the vicious domain name grab, please let your principal make a confirmation with me via telephone or email as soon as possible. Thank you for your support to our work!

 

 

 Best Regards

 

 

  July Chen

 


4A, Units 20/F, Far East Consortium Bldg.

121 Des Voeux Road, Central, HongKong

Tel:+852-6517 0670

Fax:+852-3069 6940

Email:july@

April 12th, 2010

simple regular expression to search all the emails from a web page.

Hi Developers If you want to search all the emails from a web page you can use this simple regular expression to search all the email from any website.

(href=[”|\’])(mailto:)(.*?)([”|\’])

If you are using php script then your code will be like this.

preg_match(’(href=[”|\’])(mailto:)(.*?)([”|\’])’, $Your String, $Return the data in Array);

February 10th, 2010

Ion Cube installtion in linux dedicated server.

Hi All,

If you have dedicated server and like to install ioncube on your server without any hassle then follow my below notes to do easy installtion.

Let me introduce you what is ioncube. 

ioncube is basically a encoder (encryption method) used to help protect the php files from software piracy. It is normally used by software vendors to deliver their php software(s) in some sort of encoded format to help protect their copyrights and licensing distribution.

Here is the installtion procedure.

 You can always download latest version of ioncube from this below link.

http://www.ioncube.com/loaders.php

Step 1: Use wget command to download the latest version of ioncube in your linux  server.

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Step 2: Untar the package and place ioncube in proper directory.
tar -zxvf ioncube_loaders.tar.gz
cd ioncube
mv ioncube /usr/local/

Step 3: Check your php.ini file using grep command or you can find out from your web browser Just create one file phpinfo.php and add <?php phpinfo();?> and check where is your php.ini file is located.

Or simply you can use this command to find out your php.ini file

php -i | grep php.ini
Step 4: Edit your php.ini file using vi or emacs or nano
        Generally php.ini located in this path /usr/local/lib/php.ini
        So your command may be
        vi /usr/local/lib/php.ini
        or
        emacs /usr/local/lib/php.ini
        or
        nano /usr/local/lib/php.ini
Step 4: Then, add the below line in the php.ini
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so

Congratulation your ion cube software installed.
You can check that from phpinfo.php or just writing a unix command.
root@subikar [/home/myblogplanner]# php -v
PHP 5.2.9 (cgi) (built: Feb  9 2010 13:26:04)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with the ionCube PHP Loader v3.3.10, Copyright (c) 2002-2009, by ionCube Ltd.

The green color text is indicating you have successfully installed ion cube in your server.

If you need any help in this matter you can just make call to my number +919836892283 or 033 25290568

September 17th, 2009

How to add external javascript and stylesheet in joomla component

This is very easy step you can add external javascript or css in head tag of the page.  According to seo you cannot add javascript/css  in the middle of the page.

So here is the code snippet.

$document =& JFactory::getDocument();

$document->addStyleSheet($stylesheeturl.’styles.css’);

$document->addScript($jsurl.’scripts.js’);

Have a happy w3c validate page :)

September 14th, 2009

Import and export big db in linux

Here is my short blog post lets share with my friends who are learning linux and want to import or export data to phpmyadmin using linux. So here is the code for that.

Data Export in linux

mysqldump -u dbusername -h dbhost -pdbpassword dbname > dbname.sql

Data Import in linux

mysql -u dbusername -h dbhost -pdbpassword dbname < dbname.sql

This will solve your problem when you are not able to upload or download db from user inetrface of phpmyadmin.

July 31st, 2009

How to create simple block module in drupal 6.x

Creating simple block module in drupal is easy you just need to concentrate on this artcile to learn to create simple block module in drupal step by step.

For drupal all block module whould uploaded to the folder sites/all/modules

Suppose I am creating an exampl module to display news from a single category.

Step 1: You Need to create one folder mydrupalnews and under that folder you need to crate 2 file mydrupalnews.info and mydrupalnews.module

Step 2:  File mydrupalnews.info contain the information about the block

;$Id$
name = mydrupalnews
version = 1.0
description = “My Drupal News”
core = 6.x
PHP = 4.3

Step 4: file mydrupalnews.module contains the behavior of the block. In programming language I can say you need to code what ever you like here.

I am pasting the content of the file here for better understand  of the coding.

<?php

function mydrupalnews_block($op=’list’,$delta=array(),$edit=array())
{
switch ($op)
{

case ‘list’:
$blocks[0][’info’] = t(’My Drupal News’);
return $blocks;
break;
case ‘view’:
ob_start();
$content = ob_get_clean();

$SQL = ‘Select * from category_node as cn
left join node as n  on cn.nid = n.nid
left join image_attach as ia on cn.nid = ia.nid
left join image as i on ia.iid = i.nid
left join files  as f on i.fid = f.fid
Where cn.cid =53 AND i.image_size = \’_original\’ order by n.nid desc LIMIT 0,3′;

// 53 is the category id of my site news. For your site you can change it easily.

$rowobj = db_query($SQL);
$content = ‘<div class=”news”>My Drupal News</div>’;

while($Row  = db_fetch_array($rowobj))
{
$content .= ‘<div class=”box”><div class=”img_box”><div class=”img”><img src=”‘.$Row[’filepath’].’” width=”92″ height=”92″></div>
<div class=”img_text”><a href=”node/’.$Row[’nid’].’”><strong>’.$Row[’title’].’</strong></a><br> <font color=”#996666″ style=”font-size:10px; padding-left:5px;” >’.date(’Y-m-d’,$Row[’created’]).’</font></div>
</div>
</div>’;
}

$blocks[’subject’] = t(’My Drupal News’);
$blocks[’content’] = $content;
return $blocks;
break;
}
}

You are done with your programming. After everything done you just need to upload the folder mydrupalnews to the folder sites/all/modules

Now login to administrator go to module link publish your custom module. Now go to block link you will see your block is listed there in block page change the position where you want to display the block in your drupal page.

July 15th, 2009

Currency converter calculator in php

I hope a lot of people will like this module.

Let me show you the demo work here if you like it just click here for Free Download. And install it to your website.

Step guide how to install and use to your own website.

1. Download the code from here Free Download

2.  Add your db details to currency.php file And run the sql (tblcurcontrycode.sql) through phpmyadmin.

3. Run the script currency.php through browser you are done.

If you need any help just drop an email to subikar (at) itcslive.com

June 16th, 2009

Digital forums resgiter problem for last 10 week.

Last 2 month ago one of my office colleague signed up with digital forums and got  error and even not received any email from digital point

Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235

I thought it may be they have updated  some code so it is not working and will get fixed after some day.

Today I tried again with digital forums I am not able to login with my id. I have tried with some other friend id that was too not working. So I tried to sign up for an account and unfortunately the same error I see again

Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235

It seems dp is not doing any development or testing to there script. Do any one have any idea or facing problem like me. Please share your thought so me and other can get help on the matter.