Friday, December 31, 2010
3 Steps to implement Mobile version of your blog
Full Details : http://www.anil2u.info/2010/12/31/3-steps-to-implement-mobile-version-of-your-blog/
Wednesday, December 22, 2010
1st birth day of Anil Labs
Tuesday, November 30, 2010
How to request a cross domain ajax with in the js file
In this post i going to explain about the how to cross domain ajax request with in the js (JavaScript) file.
Source : http://www.anil2u.info/2010/11/14/how-to-request-a-cross-domain-ajax-with-in-the-js-file/
Tuesday, October 26, 2010
How to get loaded modules in the server using php code - Anil Labs
We have confuse that which loaded are available in the server, when we are trying to code then we got the error that particular module is not loaded in the server. Before complaint (request ) to the hosting provider (eg: godaddy, hostgator etc … ).
More information with demo : http://www.anil2u.info/2010/10/24/how-to-get-loaded-modules-in-the-server-using-php-code/
Wednesday, July 21, 2010
62 ways to show your love
1. Say "I love you."
2. Don't compare them to anyone.
3. Be courteous at all times.
4. Embrace the present moments without fear or guilt.
5. Live by the Golden Rule (Do unto others….).
6. Give them your full attention when talking.
7. Become their biggest fan!
8. Toast each other regularly.
9. Tell them how they bring love to your life.
10. Share funny quotes or events.
11. Talk about your day during mealtimes.
12. Read books aloud together.
13. Say you're sorry.
14. Recall good and bad memories.
15. Let go any bad experience and anger.
16. Encourage health in all its forms.
17. Let the tears flow together.
18. Act silly together.
19. Be lavish in praise.
20. Ask questions about opinions, feelings, thoughts.
21. Forget about labels.
22. Encourage adventures and risks!
23. Show your joy when they come home.
24. Bake cookies.
25. Forget about past mistakes.
26. Use flannel sheets in the winter.
27. Solve problems together – crosswords or war.
28. Show your gratitude for them.
29. Be a good sounding board.
30. Take pride in them. Show your pride.
31. Compliment them in front of others.
Tuesday, July 13, 2010
Work with SVN
Now a days maintaining backup files very difficult with small changes in the file. Example If we taken file and backup it and done few changes in that file. After few days if we look into that file,it is difficult us to identify at which part we changed in the new file when compare to old backup file.
So, to avoid such types of difficulties we can implement SVN(Subversion).
Complete information @ http://www.anil2u.info/2010/07/13/work-with-svn/
Tuesday, June 29, 2010
Traffic to my blog - anil labs
Friday, June 11, 2010
Events calendar implementation in oscommerce using php code
Wednesday, April 14, 2010
How to prevent php website from sql injection
In this post, i would like to explain what is sql injection and how to prevent from this attacks to our website.
SQL Injection:
SQL injection is another vulnerability of PHP. SQL injection refers to the act of anyone can inserting a MySQL statement to be run on our database without our knowledge. Injection usually occurs when you ask a user for input, like their name, and instead of a name they give you a MySQL statement that you will unknowingly run on your database
Complete information at http://www.anil2u.info/2010/04/12/how-to-prevent-php-website-from-sql-injection/
how to configure oscommerce site
Today I want to discuss how to configure the oscommerce if we are files at subfolder and run at localhost or site .
http://localhost/oscommerce/shop/We may get errors at this point, suppose we are run oscommerce shop in a sub folder then we have to think that how to configure this file to run the site success . Follow below points to configure file to run the shop at your localhost or site.
Complete post at http://www.anil2u.info/2010/04/08/how-to-configure-oscommerce-site/
How to import and export big database files
today i want to share some basic concepts but we need to know about import and export databases. If it is small database file, we can directly export or import from the phpmyadmin.
Process to export:
1) Go to phpmyadmin -> click on database -> there we have button called “export”.
2) When we click on that button, we got a screen like in which format do want to export from database ( Like .sql,.txt,.zip,.zar or just open it that browser) 3) When we click on “Go” button, we will get database backup file.
Process to import:
1) We have the database, but we want to import database to that existing database.
2) Click on “import” button and then we have the separate screen click on browse and select the database file and click on “Go” button, it will successfully import the database.
Complete article at @ http://www.anil2u.info/2010/04/03/how-to-import-and-export-big-database-files/
Tuesday, March 30, 2010
How to implement google map in smarty?
Hi friends ,
the following script will discuss for how to implement google map in smarty application.
1) Sign up for API key of googlemap
http://code.google.com/apis/maps/signup.html
2) Create a google map class.
3) Create a tpl file
Complete post is available at http://www.anil2u.info/2010/03/28/how-to-implement-google-map-in-smarty/
Thursday, March 25, 2010
Monday, March 1, 2010
Simple keys to be a successful Website
- Meta Tags
- Navigation
- Search Engine Optimized
- Google Analytics/Tracking System
- Contact Us Information
- Privacy Policy/Disclaimer
- Copyright Notice
- Search Box/Site Map
- Newsletter Sign Up/RSS Feed
- Social Media Share Button
- Trust Seals/Testimonials
Monday, February 22, 2010
Guess how many faces are in this image
Wednesday, February 3, 2010
Sending mails using phpmailer class
The following script is for how sending mails using php code.
1) Download php classes from below url
http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/
2) Place in your application www/yourapplication/
those files are class.phpmailer.php and class.smtp.php
3) Now take a another php file to send the mails.
require(“class.phpmailer.php”);
require(“class.smtp.php”);// including files in your send mail file.
$mail = new PHPMailer(); // create a object to that class.
$mail->IsMail();
$mail->Timeout = 360;
$mail->Subject = ‘Test Subject’;
$from = ‘Anil Labs’;
$mail->From = ‘mail@yourdomain.com’;
$mail->FromName = ‘Anil Labs’;
$mail->AddReplyTo(‘mail@yourdomain.com’, $from);
$to = ‘user@somedomain.com’;
$mail->AddAddress($to, “”);
$mail->Body = “<html>
<head><title></title>
</head>
<body>
Test Message
</body>
</html>”;
$mail->IsHTML(true);
$mail->Send();
Then it will sends the mail to particular email-id.
Tuesday, January 26, 2010
How to configure the url aliases in drupal
suppose your url like :
http://www.yourdomain.com/node/1
this page for about us page, then we can convert into in your friendly urls like
http://www.yourdomain.com/aboutus
1) Administrator -> Site building -> URL aliases
2) Click on Add alias – then it go to form admin/build/path/add
3) Give the Existing system path like:
node/1
to Path alias:
aboutus
Thursday, January 21, 2010
Thumbnail creation in codeigniter
In the following function will create thumbnails in codeigniter.
? >function _createThumbnail($fileName) {
$config['image_library'] = ‘gd2′;
$config['source_image'] = ‘uploads/’ . $fileName;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 75;$this->load->library(‘image_lib’, $config);
if(!$this->image_lib->resize()) echo $this->image_lib->display_errors();
}
Call the above function like :
? >$this->_createThumbnail($fInfo['file_name']);
After creation of thumbnail clear the caches.
? >$this->image_lib->clear();
Hope that it will be useful.
Monday, January 18, 2010
Using PHP remove the consecutive whitespaces.
function remW( $content )?>
{
$content = trim(ereg_replace(“\n|\r|\r\n|\n\r”, ”, preg_replace(‘/\s+/’, ‘ ‘, $content)));
return $content;
}
Tuesday, January 12, 2010
ctp,thtml configure in dreamweaver for cakephp
ctp and thtml extension files, are not properly displayed at dreamweaver, if we want to code difference between php codes and normal text, then we have to configure.
in C:/program files/dreamweaver/configuration/documentTypes/
open the file MMDocumentTypes.xml
<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5l” macfileextension=”php,php3,php4,php5″ file=”Default.php” writebyteordermark=”false”>
to
<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5,inc,module,ctp,thtml” macfileextension=”php,php3,php4,php5,inc,module,ctp,thtml” file=”Default.php” writebyteordermark=”false”>
Once close the dreamweaver and open that file in dreamweaver that will display code difference php code and normal.