How to learn any technology quickly?

As my point of view technology is just a problem for developer and we need to find the solution. So to learn any technology you should know the methods how to solve this problem. So I have just written some steps which may helps to any fresher.

Step-1 : Developer should be aware of some basic knowledge of particular technology. ( Don’t open any book for this. Just take some introduction from any senior person.) This basic knowledge means some required syntax, platform to run it, some necessary rules to work with it. So I think it should take only 2-3 hours for this. Please don’t go very deep in any technology at initial level. Because as much you will try to go deep as you will confuse about it. So it will totally waste of time.

Step-2 : Senior person please give one development example by development like simple form in php. It should contain insert, update and delete. Then give another example to her/him to do. If he/she will face any problem then help her/him. Also senior person should teach some debugging method if she will face such situation. Continue this thing for 1-2 days only depend on skill of person.

Step-3 : Now again give any one complex and big example to do and senior just give introduction to her/him what to do but don’t teach how to be done? Now let him/her to do. If she will face any problem then just give some hints to use some debugging method. But don’t fully help him/her till 1-2 days. Please continue this thing till 1-2 days even he/she being frosted. After two days show him/her what was the problem and which are the ways to solve it.

So I think fresher should follow these 3 steps and that’s it!!!! So start to learning new technology is just a game of 3-5 days. But don’t think that you learn whole technology. It is just the first step you taken in the world of that particular technology because any technology don’t have end.

Best Luck Guys,
Coreway Solution.

10 Points for Responsive Web Development with PHP

With advancement in mobile technology and launching of mobile devices such as smart phones, tablets and iPads, demand of responsive web development (RWD) enhanced rapidly. It is meant to build a site to proffer visitors a finest viewing experience having excellent and trouble-free navigation and easily readable content with minimum scrolling, resizing for different devices such as smart phones, tablets, laptop, PC, etc.

Everyone knows about popularity of PHP web development across the world. More than twenty millions of websites are powered by this effectual web development platform. Even social networking sites that ruled on the internet and become the necessity of regular internet users namely WikiPedia and FaceBook utilize PHP technology in blend with open source technologies including WordPress and Drupal. When looking for efficient web development solution, think about responsive web development using PHP.

Here we discuss some important things about Responsive PHP Web Development.

  • Structured Page Layout – In responsive sites, it requires to compose elements in web pages in such a way that it automatically shape, size, and place according to browser screen width. Hence, grid-based and modular GUI design is more demanding as well as structured page layout using proven design methodology works better.
  • Good Navigation – For RWD sites, good navigation is an important factor. Make concentration on viewing design. The user should get interest to explore further from image icon to content.
    • Image or content position should be at the right place
    • Use bright and bold colour appropriate to site background
    • Use symbols or arrows or bold text for important content to give it more emphasis
    • Always try to proffer some extra creativity in your page that attract users at first click
    • Give more information with less clicks to provide engaging navigation experience to user
    • Don’t put many buttons to confuse user. Site users prefers slide, swipe, punch, etc that you can replace instead of button. It helps in create quality visual designs with better surfing experience.
      It is necessary to make your e-commerce site responsive because for online shopping increasing number of people started using their smart phones and tablets. Hence, it is necessary to provide easy shopping solution, payment and shipping process that gives them pleasant shopping experience in small screen, as well.
  • Perfect Look – The core of RWD is use of CSS3 media queries helps in switch site layout based on size of the screen. The site should look perfect on smart phone, PC or tablets without any effect on content. Your site should need adaptable and flexible to all devices. Also consider about pixel perfectionism that ease users to read your site content easily on big or small screen.
  • Image Adjustment – Image adaptation is a significant issue in responsive website. You should set image width 100%. When max-width set to 100%, it will not go over parent container.
  • Useful Tools – If you are not known to RWD, you should use tools that help in design responsive web site such as fittext JavaScript file, responsive web site testing tool, adaptive image tool for image adjustment, Less Framework for designing adaptive site and other. There are also tools available useful for create mock-ups. It becomes very easy to prepare screen shots using these tools.
  • Simple Source Code – It becomes more helpful in PHP web development to keep source code simple with dynamic output. Attractive dynamic features such as animators and floating tools for navigation can be added to site.
  • Content Management Capability – One more important thing to consider for responsive web site is proffering support to create and mange content easily. Give content management flexibility and capabilities in your site by best optimising CMS based software interfaces and using powerful content editors.
  • Font Makes Difference – Attractive animations and images make your site eye-catching, but with availability of Google Type-Kit and fonts, you can give extra zing to your site without placing more images. It gives flexibility to users for fast downloading your site. Don’t forget, font of text is an effectual element to attract users. Provide precise font size, line spacing and padding using CSS to make it readable clearly.
  • Use Plug-ins – You should use flexible font size using JavaScript plug-ins that makes flexible font size according to the requirement of user.
  • Social Media Click – Do not forget to add social media sites. Nowadays, increasing number of users use mobile devices and they are keenly associated with social media sites. Therefore, your site need single click connectivity with popular social networking sites such as LinkedIn, FaceBook, Twitter, Google+ and more. This helps in boost promotional activities of your website.

Do not forget to test responsive site using different screen resolution to make it perfect for all devices. With blend of creativity and technology, you can build responsive PHP website that becomes optimised for PC and mobile devices perfectly.

How to create SEO Friendly WordPress Site

If you’re new to WordPress, you might not be aware of plugins. These are small bits of add-on software that you may install on your site to add new features and capabilities. There’s a plugin for almost everything, even ranking higher in search engines. In reality, there are numerous plugins created expressly to increase the SEO of your site.

These plugins can provide minor, specialised functions like building a sitemap (more on that later). For even better results, utilise a full SEO plugin like Yoast SEO, which will add a slew of optimization-focused features to your site.

Seo-friendly wordpress is considered one of the best options for developing a small business site, it inherently possesses some features that are not as desired. Following is the list of processes you should follow to create your SEO-friendly WordPress site.

1) Theme or Design: You must design your site with care or select a theme which allows the crawler to index properly. Moreover, a decent theme will give you a better conversion rate. I recommend you go with responsive design to get the benefits of increasing mobile visitors.

2) Meta title and meta description: To get the custom title and description, you will require to install WordPress all in One SEO Pack or SEO by Yoast plugin. You can also install another plugin as per your taste.

3) Site Loading Speed: Nowadays, this one-page website seo friendly is important from an SEO perspective as Google also said that speed is part of their algorithm. We recommend you install the W3 total cache plugin; this will allow you to serve content with gzip, cached, minified HTML, CSS and js.

4) Social Sharing: This is also a part of the algorithm of Bing and Google. Add share this or any other plugin that enables your visitor to share your content on social media with easily available social buttons.

5) Always write content for users and try to add at least one desired keyword to it.

6) Disallow unnecessary pages:  Either use the robots.txt plugin or manually you should disallow unnecessary pages like wp-admin, wp-content, thanks, tag, and category. Try to create seo friendly wordpress, which will help you work on SEO plugins where you will get options for adding meta robots like nofollow and noindex for page-specific requirements.

7) On the blog index page, always show post excerpt and don’t display full content because sometimes this may cause duplication issues. You can do this by changing content word with excerpt in bog index.php file in editor mode.

8) Always avoid stop words in URLs. And install a custom url plugin to modify them.

9) In the settings section, select post name as url

10) Always redirect your old page to new with the 301 redirection method. Install the Redirection plugin as this will ease your task.

11) Alt tags are important and add relevancy to your image so use descriptive alt tags.

12) google analytics will give your visitors statistics and help you go in the right direction. To add analytics code in an all-in-one SEO pack will automatically be inserted into required pages.

13) After inserting the analytics code, you can verify with the Google webmaster to get an insight into search performance and receive error messages.

14) Sitemap.xml plugin helps you create it automatically and ping it to major search engines. You can also serve the sitemap.html page for human visitors.

15) Prepare social media presence and business page.

16) After social media presence, share your pages with them.

17) Register with great open directories like DMOZ.

18) Submit your site to good and niche directories.

19) Social Bookmarking sites will help you get awareness about one-page website seo friendly in a short time, so do it in good SB sites.

20) Maintain Consistent URL Formatting- If you use dashes (“-“) to divide words in your articles, don’t use underscores (“_”) on your pages. Use the standard dash to separate terms in your URLs, as WordPress does.

21) Finally, good quality content is the king, so you should prepare it and share it with guest posting and infographics on your site, articles sites, and social media networks.

Conclusion

It is critical to have a site that is SEO-friendly. And, with WordPress, you can choose from thousands of SEO-friendly layouts or themes. A WordPress website that is SEO-friendly will have a few different qualities. Your website should load quickly and be mobile-friendly. Both search engines and people should be able to read your material. Use relevant keywords throughout your material, and make sure your article title tags are descriptive and correct.

 

 

How to change timezone in php website

Hello Everyone,

Sometime we need to change timezone in website to apply some condition on time base .

If it is Indian website then we can set time zone to India as per below.

To change time zone for website you need to add two line code in site, it is as below:

$timezone=’Asia/Calcutta’;

Date_default_timezone_set($timezone);

 

By writing above line your website time is as per calcutta time.

Some timezone  as below:

-> Asia/Calcutta

->America/New_York

->Australia/North

->Australia/Perth

 

hope  it helps…

Coreway Solution

connect with external database in joomla

Joomla! Is an open source website development and content management system (CMS) platform that is free to use. Joomla! Like other content management systems, it automates much of the technical aspects of creating and maintaining a website.

Some noteworthy aspects include:

  • Offers plug-ins and site modules to improve webpages and content; over 6000 extensions are accessible.
  • Responsive templates optimize webpages for many platforms, including mobile devices.         
  • Permission levels limit site user file access while granting site workers access to the files they require to complete their tasks.
  • Support for many languages for various sites or sections of a site. 
  • Polls, search, and web link management and analysis are all supported.

Joomla! is based on Mambo, an older CMS developed by the same software’s development team. Joomla! Was founded by the development team to enhance and safeguard open source principles that they felt were being exposed.

Over the last decade, Joomla has grown to become one of the most extensively used content management systems on a global scale. It has effectively captured a vast audience since its introduction in 2005, with over 99 + million downloads to date.

Joomla is created in PHP and stores data in a MySQL database using object-oriented programming techniques. It may be installed with a single click from the web hosting management panel. There are hundreds of articles on the web that will show you how to install Joomla. There are several Jooomla hosting options available.

The Model-View-Controller (MVC) design architecture is used by Joomla. When Joomla processes a request, it first analyses the URL to determine which component will handle the request, according to the MVC pattern. The model holds the data that the component uses. It is also the Model’s responsibility to update the database as needed. The view is responsible for the output. It can make contact with the model to obtain the necessary information.  After the output of the view has been produced, the component returns control to the Joomla framework, which then executes the template.

So, while learning What is Joomla, you also become acquainted with how Joomla’s internal mechanism functions. Let’s get back to the matter. Joomla is a well-known open source CMS, but do you understand what a CMS is? If so, excellent; if not, see the explanation below.

Advantages of Joomla

Joomla is a powerful choice for building a website of any size. Some of its key characteristics are listed below.

Simple to Use

Joomla is an open source project that is completely free to use. But just because it’s free doesn’t mean it’s lacking in functionality. In fact, the entirely user-friendly interface will astound you with its WYSIWYG function, which produces identical results every time. Another thing to be happy with is the frequent updates. Joomla is constantly being updated with new features and functionality. It becomes easier to work with each new update.

Responsive in Nature

Nowadays, having a responsive website is expected. Because every second person is using a smartphone to access the internet. As a result, it is essential to create a website that functions flawlessly on any device of any size. And Joomla provides you with a fully responsive website. As a result, you will never lose a potential website visitor.

Exceptional Security

Security is an important consideration while developing a website. To reduce the possibility of hacking, Joomla offers two-factor authentication. So your site will not be hacked, but if you choose a very popular login and password and someone gains access, you can quickly recover the compromised Joomla site.

Multilingual

Being multilingual benefits everyone. Obviously, it is a feature to be glad about for individuals who do not understand English. Yes! Joomla supports multiple languages. It supports 75 different languages. I must admit, this is a lengthy list.

Joomla is easy to use. There are also a number of other factors that make it simple to work with. And it is distinguished by these characteristics.

What makes Joomla the best choice?

Apart from the advantages mentioned above, there are countless other reasons to use Joomla. Let’s dive into the vast ocean of Joomla features.

  • Joomla will provide you with a fully SEO optimised website. There are several Joomla SEO techniques that might help you build a great website.
  • Over 8,000 extensions are available to dazzle you with their features.
  • User Management (ACL), where ACL stands for Access Control List, which is useful for controlling your site’s users.
  • Create as many menus as you wish.
  • Images are simple to manage.
  • URL redirection is a straightforward process.
  • Adding a contact form is simple.
  • Get updates with a single click.

But sometimes we may need to use any external database within our existing Joomla setup. Of course we can do it by using core PHP code. But this is not a good way to follow. So we can connect with the external database using below code.


$options = array();
$options['driver'] = 'mysql';
$options['host'] = 'localhost';
$options['user'] = 'dbuser';
$options['password'] = 'dbpassword';
$options['database'] = 'databasename';
$options['prefix'] = 'tblprefix_';
$db = & JDatabase::getInstance($options);
$query = "SELECT * FROM #__example_table";
$db->setQuery($query);
return $db->loadAssocList();

We should put all database connection related information in array variable $options. Then use the getInstance() function from Database. Now you can use Joomla’s default database operation.

So, these are some of the most notable things that Joomla has to offer. It does, however, this article will allow you to employ a variety of third-party extensions and plugins. The Joomla Extensions Directory has thousands of vetted third-party extensions to improve your site experience.

Hope it helps ….

Keep it up.. Coreway Solution

Save data in database with HTML tag in Joomla

A Joomla site consists of a single database and a big number of files and directories. Joomla keeps the majority of its data in this database, from article content to menu items, users to extension settings. In this post, we’ll show you how to use phpMyAdmin to connect to the Joomla database.

Many features of Joomla aid in the work of securing apps and extensions created on it. If at all possible, you should use these features because they have been tried and checked by many eyes in the development community, and any updates that may be required in the future will be automatically available anytime a Joomla update is applied. The following is an explanation of best practises for using the Joomla API to ensure the security of your extensions.

What exactly is a database?

A database is a collection of structured data stored as one or more tables. This is comparable to, say, an Excel Worksheet, which has numerous tabs, each with a table containing distinct data organised into rows and columns.

How do people work with databases?

There are several methods for accessing and editing databases: MySQL is the most widely used database system. Many database-driven apps, such as Joomla, make extensive use of it. The most common open source tool for accessing and editing MySQL databases is phpMyAdmin. It can be used to view/edit data, create/restore backups, and perform a variety of other tasks.

Adding/Accessing phpMyAdmin

phpMyAdmin is a PHP-based programme that can be quickly uploaded to any webspace and run in your browser. However, because it is so prevalent, many web providers supply a pre-installed version to save time.

  • phpMyAdmin with a WebHost
  • Open the admin panel of your webhost
  • Search for the link to phpMyAdmin (it varies across hosting providers)
  • Login with the username and password specified in your admin panel
  • Download phpMyAdmin from the official site

Extract the .zip file

  • Rename config.sample.inc.php to config.inc.php
  • Open the file with a text editor and the localhost to the location of your database hostname

$cfg['Servers'][$i]['host'] = 'localhost’;

Add a ‘Blowfish Secret’

  • Create a random string containing 32 characters
  • Add a line in the config.inc.php

$cfg['blowfish_secret'] = 'PutTheRandom32CharacterStringHere';

Upload the folder to your Joomla directory

Go to the phpMyAdmin URL (usually www.yoursite.com/phpmyadmin)

  • Login using your username and password

Basic usage of phpMyAdmin

Hopefully by now you’ve managed to sign into phpMyAdmin.

Now let’s access your database!

List of databases

Click on the ‘Databases’ tab. This will open a list of the databases in your phpMyAdmin instance.

Tables in a database

Upon opening one database, you will see various tables. Each of these tables has a specific purpose. All of them have the same prefix, the one that was setup when installing Joomla. Upon closer inspection, you will most likely realise what some of them do. Let’s open one of the tables and see what it contains.

Opening a table

I have chosen the Joomla Users table. Can you guess which data will be stored here?

Yep! Here you can find all of the users registered on your Joomla site. Their usernames, emails, dates of registration, dates last visited…even their passwords.

It’s easy to change any value by simply double clicking it. Everything is automated and gets saved the moment you press the Enter key.

Backing up (exporting) a database

Backing up your database is an easy and quick procedure. Choose the database you wish to backup and press the ‘Export’ button above.

This will open a window asking you for some additional details.

Since we are making a simple backup, there is no need to change anything. Press GO and your database will be downloaded in SQL format.

You have a file which contains your full database. Store it somewhere safe and hopefully you won’t have to use it ever again.

In case you have problems and wish to restore, the procedure is pretty straightforward…

Restoring (importing) my database

If you made a backup like we mentioned previously, the process of restoring is also quite simple.

Clicking the ‘Import’ button will bring you to a window requiring you to choose a .sql file from your computer. You have that file, right?

Find the required .sql file and press GO.

After a few moments, you should have a database with the data from the .sql file.

This concludes our article about simple database manipulation using phpMyAdmin.

Add new module position in content OR in component file

As far as customization concern Joomla become very famous for its flexibility of each parts. In some cases we need to use module in content section or within content. So how we can make it possible?

Here we I explain two way based on where we have requirement of module.

Load module in article :

->If we have such case in which we have to put our module within article OR within our component section. That time we just have to put

{loadposition position_name}

short code to load position. Then set required module to that particular position. If position is new then don’t forget to add this position in templateDetails.xml file. Check if the plugin load module is enable . Now you can load module by selecting this position to anywhere within content.

Load module in custom component file:

->When we are making any custom component or trying to customize existing component and for some functionality we require to add position to that particular component then we can load position by using below code:

$modules = JModuleHelper::getModules('positionname');
foreach($modules as $module)
{
echo JModuleHelper::renderModule($module);
}

Here in place of position name you can write any position name which you wish to load. Then follow same procedure as above. This way doesn’t require any plugin support. This is we are doing by custom code.

Hope this helps you guys…

Keep it up..
Coreway Solution 🙂

Which one is the best web development language- PHP, JAVA, Asp.Net, or any else?

Since the emergence of Internet decades ago, its functionality has increased manifold in every spectrum of our lives. The advent of social media has further revolutionised the way we think, relate with others or do business. The internet is not dependant on its administrator any more. People, who use web can make changes, create blogs and websites – tweaking stuff to suit their own requirements. Thus the public is allowed to make moderations to social networking sites, blogs, forums, etc. This has become possible due to the various web development languages created like – HTML, PHP, JAVA, Asp.Net. These web languages have opened the door to dynamic possibilities for the web administrator as well as for the web user.
Out of all these web languages, PHP has carved a niche for itself and has become extremely popular. A lot of famous websites like YouTube, Facebook and Yahoo! use PHP as their web language.

There are many reasons for the preference towards PHP. Firstly, PHP is relatively easy to learn than other web languages. Web developers who are familiar with languages like C and JAVA can easily pick up PHP as it is quite similar to the other two. As a result programmers understand it extremely fast because of its uncomplicated style of format.

PHP has an edge over other web languages for providing custom web solutions. PHP provides brilliant standards as a result of its efficient output and easy usage. For online businesses PHP is the way to go as it provides dynamic websites.
PHP developers have worked endlessly towards making PHP the beat web language since a long time. It has excellent speed and works extremely well with the relational database systems.

Another beneficial element of PHP is that it is cost-effective. The developments of websites which have PHP as their web language require a very affordable investment as PHP is an open source language. These PHP made websites are extremely user friendly.

India provides a huge market of PHP developers who have an excellent wealth of knowledge and experience of the web language at a very affordable rate and time constraints are also maintained.