Head Resist

Web design, Programming, Development and SEO

Web Design: Increase your leads and sales

Sunday, January 1st, 2012

There are millions of websites on the internet. All websites have one role: increase the sales. To be precise, a website can really help a business grow. You must remember that your website is simply not a shopping cart. It’s an interface between you and your customers. This is primarily the reason why your website should be attractive and SEO friendly.  If you just put up your products on display in a website, sale will not increase. The design should be perfect and users should feel comfortable while using your features.

In this era of cut-throat competition, business needs the much needed push to reach out to the customers. Internet marketing has become an important medium these days because more and more people are having access to internet. A good website can do wonders to your business as you can reach out to millions of customers across the globe instantly. This stresses the role of web designing. Web designing is a specialized field which requires skill. You should have a great looking website to maximize up your online presence. You can find many professional web designing companies that can create extraordinary websites including e-commerce sites for you. One such company is Avenues Consult.

If you are in need of an e-Commerce site or more of an information-focused website or whether you are looking to improve your web site then redesigning or even creating a novel design, we can help you out. Our creative designers are innovators and experts in their field. Our layouts are so attractive that it can easily catch the eye of potential clients. The first thing that we keep in mind while designing a web page is the text, navigation tools, general design, links etc., we make it apt so that it helps the users. We take care of all the features including the SEO features. Our websites are user-friendly and SEO friendly.

At Avenues Consult, we offer more than 3000 brilliant website designs to our customers based across the globe. Once you choose, we then customize it according to your needs and deliver it within 3 business days. Our web design and graphics design services are the most sought after services. Avenues Consult offers attractive packages which are one of the best in their segment. Our services are cost-effective and give value for money.

To end with, it can be said that web design plays a pivotal role in generating leads and sales. Web Design can make or break the fortune of an online company.

PHP- Automated Housekeeping

Wednesday, November 2nd, 2011

PHP- Automated Housekeeping

Queries are run by users through the web interface and by administrators through either administrative web interfaces or from the MySQL command interpreter. However, sometimes automated querying is necessary to produce periodic reports, update data, or delete temporary data. We discuss how queries can be automated in this section.

To show how queries can be automated, consider an example from the online winestore. The shopping cart in the online winestore is implemented using the winestore database. As discussed in Chapter 12, when an anonymous user adds a wine to their shopping basket, an order row is added to the orders table. The row is for a dummy customer with a cust_id=-1, and the next available order_id for this dummy customer. A related items row is created for each item in the shopping cart. The order_id is maintained in the session variable order_no so that orders by different anonymous customers aren’t confused.

Our system requirements in Chapter 1 specify that if a customer doesn’t purchase the wines in their shopping cart within one day, then the shopping cart should be emptied. This is an example of a DELETE operation that should be automated. It is impractical to require the administrator to run this query each day to remove junk data.

The following query can be run from the Linux shell to remove all orders rows that are more than one day old and are for the dummy customer:

% /usr/local/mysql/bin/mysql -uusername -psecret

-e ‘USE winestore; DELETE FROM orders WHERE

unix_timestamp(date) <

(unix_timestamp(date_add(now( ), interval -1 day)))

AND cust_id = -1;’

The MySQL time and date function unix_timestamp( ) converts a timestamp attribute to an integer that is accurate to the nearest second. In this query, we compare the value of the entry in the orders table with the value of exactly one day earlier from the current date and time. If the row is older than one day, then it is deleted. The same query works for the items table, when orders is replaced with items in the FROM clause.

13.1.1 cron Jobs

Having designed and tested the query, it can be inserted into a Unix cron table to automate the operation. The crond daemon is a process that runs by default in a Linux installation and continually checks the time. If any of the entries in user tables match the current time, then the commands in the entries are executed. Consider an example:

30 17 * * mon-fri echo ‘Go home!’

This prints the string at 5:30 p.m. each working day. The two asterisks mean every day of the month, and every month of the year respectively. The string mon-fri means the days Monday to Friday inclusive. More details about cron can be found by running man crontab in a Linux shell.

We can add our housekeeping query to our cron table by running:

% crontab -e

This edits the user’s cron table.

We have decided that the system should check for old shopping carts every 30 minutes. To do so, we add the following two lines to the file:

0 * * * * /usr/local/mysql/bin/mysql -uusername -psecret

-e ‘USE winestore; DELETE FROM orders WHERE

unix_timestamp(date) <

(unix_timestamp(date_add(now( ), interval -1 day)))

AND cust_id = -1;’

30 * * * * /usr/local/mysql/bin/mysql -uusername -psecret

-e ‘USE winestore; DELETE FROM items WHERE

unix_timestamp(date) <

(unix_timestamp(date_add(now( ), interval -1 day)))

AND cust_id = -1;’

The first line contains the complete query command for the orders table from earlier in this section, and the second line the items query. The shopping cart orders DELETE query runs exactly on each hour, while the items DELETE query runs at 30 minutes past each hour. Different times are used to balance the DBMS load.

Reports, updates, delete operations, and other tasks can be added to the cron table in a similar way. For example, we can output a simple report of the number of bottles purchased yesterday and send this to our email address each morning:

0 8 * * * mon-fri /usr/local/mysql/bin/mysql -uusername

-psecret -e ‘USE winestore; SELECT sum(qty) FROM

items WHERE unix_timestamp(date) >

(unix_timestamp(date_add(now( ), interval -1 day))) AND

cust_id != -1;’ | mail help@webdatabasebook.com

We could also have automatically written the information to a log file or to a table in the database.

More PHP Tutorial

Cgi Web Hosting – 3 Vital Scripts for One’s Business

Thursday, October 8th, 2009

An all round self-skilled web site is the need of the hour for many people. Today the root businesses of many companies are on the shoulders of those sites, which have interactive quality to get a mob of people and can produce the business. Automated features can also play a “behind the scenes” role, by generating the qualities in one’s site like making it easy to use, smooth running and promoting online sales and password protection.

There are several ways by which one can generate such type of automation in his/her site, but all the processes engage either client side or server side scripting. There are several programming languages present specially designed for the web; such programming languages are used for writing scripts. Generally, customer side scripts are written in one of the best web programming languages i.e., Java. But some functions are to be accomplished through the scripting on server side; however, frequently used programming languages on this side are PHP, PERL, and CGI. PHP and PERL are fresher and are on every mouth in the market but one can’t ignore the mother of all web-scripting languages, CGI due to availability of features suitable to it.

Shopping Carts

No one can say that the online sales site is complete without a functioning shopping cart and generally best among them have been written in CGI script. CGI web hosting is ideal for shopping cart scripts because of it’s better interaction with majority of databases, which includes popular MYSQL and MS Access databases, it can be applied with simplicity of similar range on the servers like Windows, UNIX, LINUX, and MACOS, thus simply configured for sales tax and shipping cost calculations. In the market, PHP and PERL are used to apply on the newer shopping cart scripts, but the first choice still prevailing is the use of good old CGI web hosting scripts.

Password Shielding

There are several sites, which require some sort of registration and entry of a password for the user to enter the site’s features. One should need to do it due to the boundations of several reasons like simply a desire to pathway visitors for marketing reasons, like to allow postings on message boards and ensuring that users have paid any required fees associated with use of the site. One should apply the CGI scripts for the automated registration process and in the process of issuing user name/password and generally it is done in this manner only.

Form Managers

There are several people who don’t know about how the forms, they fill out online are handled. They must know that such forms are handled by CGI webhosting. When a user fills in that form and hits the “submit” button, a CGI script takes over and sends the contained data via Email or writes it to a database where the site’s administrator is able to access it later on.

Thus the above mentioned are some of the uses of the uses for CGI scripts on today’s web sites. Like these there are many more and if there is possibility for doing anything on the website, surely it can be done with CGI. PHP and PERL are gaining popularity due to any reasons, but CGI was the one since beginning with the user and is even not going anywhere. So as long as there are web sites, CGI web hosting will remain the Jack of all trade.