Head Resist

Web design, Programming, Development and SEO

Archive for the 'Tutorials' Category

Beginning PHP: One Goal at a Time

Saturday, November 19th, 2011

A couple of months ago, I knew almost nothing about PHP, only that is was a programming language that I needed to learn. Today, my whole site relies upon PHP and I have gained the confidence that almost anything is possible using PHP. I accomplished this achievement using methods that I will describe in this article.

Set Small Goals That You Can Achieve

One of the most destructive things a programmer can do is to try to develop an extensive program or complicated website all at once. When I started to create my new site, I began with a simple goal–to make a members’ area that users could log into and out from. I didn’t decide what features the members area would have, I just wanted to successfully code the restricted area. I made a very simple form of registration–a database for users and the PHP functions that were required to transfer the data to the MySQL database. It was not a ‘mission impossible’ goal, but it was something that I knew I could accomplish and then I could move on to the next goal.

At that point I determined how to secure the data that was entered by users in the form. Keeping in mind that hackers might try to mess up my database by abusing the auto-registration or filling it with spam, I decided to make a simple security key using an image. The user is required to enter the text from the image in order to prevent spam/robotic registrations.

My next task was to decide how people can login and logout and how to validate the form to make sure someone did not enter garbage data in the email field. Then I needed to figure out how to send an email when the user finished the registration process. This was needed in order to make sure that the user entered a valid email.

After I worked out the features mentioned above, I started to think about my next task. I decided to allow members to post their own tutorials on the site and store them in the MySQL database. I wanted to be able to:

- rate these tutorials

- create a profile for each user

- allow users to comment on several pages

- allow users to search through these areas

- integrate the JavaScript with the PHP code

The PHP code along with the JavaScript provided me with dynamic content, which enabled me to insert the new tutorial titles into a JavaScript drop down menu. I improved the method I used for rating to use “Asynchronous JavaScript and XML”, commonly referred to as AJAX, so the page would not need to be reloaded if user rated a tutorial or profile.

The Internet Is a PHP Developer’s Friend

Even if you don’t have any PHP manuals or books, if you’re reading this article, you’re in luck! Internet search engines, discussion forums and the PHP manuals located at www.php.net can be your best tools. The first place I look for any PHP function syntax or implementation methods is at the PHP manual site mentioned above. Then I try out the PHP code myself, and if I haven’t found what I need or am faced with a problem, I use search engines or forums to find the answer to my problem.

Keep in mind that by searching the discussion forums, I have also found some very complicated solutions to problems that I was able to solve in a much simpler manner. Nevertheless, the forum posts can provide you with an idea of what is going on with your code, or what you need to do to accomplish your goal.

One of the issues I faced that took a lot of time was when I made the security key for my site. An instance of PHP was mysteriously running twice, so the key that was shown as an image to the user was different from the actual key that was sent to the PHP form processing page. This issue was occuring only with the Mozilla browser. I didn’t know at the initially that PHP was running twice and I didn’t suspect that it was related to the browser until I searched online and found some posts in forums from folks that had similar problems. They explained that Mozilla requests HTML and images using separate requests. Using this info, I was able to come up with a working solution.

Everything You Want, You Must Code

While you do not want to use other developers’ code, you can certainly learn from their work. If you depend on using other programmers’ work, it will only take you longer to learn the tricks of the trade, so to speak. For example, if I had used the open source forums as a tool for creating my tutorial submission mechanism, I would have ended up not knowing how to store the caret in a form’s textarea.

Hack Your Own Site

Security issues are very important for any developer, even for the most rudamentary applications. For instance, you do not want to wake up one morning to find your site’s guestbook full of junk and porn advertisements.

If there is any possibility of an application not working properly, your site has a flaw. One of the best things about PHP is that it is a server side language, which means that users will not be able to see the code directly–things will work behind the scenes. Conversely, if you write bad code, you might inevitably allow your users to really mess things up on your site. For instance, you would never want to allow the transfer of a variable that is entered through a form directly to your database. You should use htmlspecialchars to avoid allowing someone to add malicious code to your database.

Interactive Site?

These days, to be topical, sites have to be flexible and interact with their visitors. The best way to create some interaction is to mix JavaScript and PHP and let these “teammates” work together. One of the most promising new technologies is AJAX, which does just that. I recently started to use AJAX on my site. It is easy, fast and saves users from waiting for your page to reload again just to post a comment (or rate a tutorial, in my case). Because PHP is a server-side language, you only need to reload the page to pass a variable. Using XmlHttpRequest or other Ajax methods with JavaScript, however, you can communicate with the server in the background and bring the results back to the user without having to reload anything.

Conclusion

Although I am still learning PHP, by using the techniques I mentioned above, I was able to create my own interactive website. I continue to add to my site, and my knowledge of PHP increases with each new feature I add. I encourage you to begin your own journey into PHP programming–you won’t be sorry.

Top 10 Photoshop Tutorial Sites for Web Design

Thursday, November 17th, 2011

Adobe Photoshop, or simply Photoshop, has been an indispensable tool for web development. Though Photoshop was commonly used as a graphics editing program, Photoshop today is now integrated for web development purposes such as creation of website layout, buttons, navigation, logo, fonts, and graphical materials frequently seen in a website.

There are hundreds of sites in the web that provide learning materials in using Photoshop, may it be for the web, photo editing or others. Here is the top 10 list of popular websites that offer different and useful tips and tricks in Photoshop.

PSDTuts.com

PSDTuts.com is one of my most favorite sites that provide useful “Spoonfed” tutorials for beginners and professionals. Much like any Photoshop tutorial sites, PSDTuts.com also offers different kinds of how tos for text, image effects, and web design. The unique thing about this website is that, this is open for all who are willing to impart their knowledge in Photoshop for the use of all.

PSDTuts.com provides a great way of exposure by allowing artists to write tutorials and articles as well as earn cash.

Visit an online Web design Philippines site to learn more about web design tips and tricks.Visit http://www.myoptimind.com for more info.





PSHero.com

PSHero.com is another site that provides useful and effective Photoshop tutorials as it offers comprehensive graphic designs that include navigational bars for web, complex repeating background patterns, and cool and useful font effects, as well as the popular artistic sepia on photos.

Tutorial9.net

Tutorial9.net is a collection of teachers, experts, and caring folks from around the world, all gathered in one place to pass along their knowledge to absolutely anyone interested in learning.

Tutorial9.net offers Photography, illustrator, and web tutorials which include SEO, blog designs such as adding thumbnails to wordpress or usability improvements for blogs, and other tools to understand a website’s viewers.

PSDLearning.com

PSDLearning.com also provides some of the juiciest and coolest effects in photo, text, other special effects, and interface for web pages. One of its features is its comprehensiveness, i.e. step by step guidelines in Photoshop.

This site is a perfect place to find various ways on creating portfolios, in addition to coolest trends in web design such as smart objects and videos. It offers a detailed step by step process on each tutorials.

Pixel2Life.com

Pixel2Life.com caters to graphic designers, webmasters and programmers, having 45,154 tutorials listed in 88 categories. They also feature a massive and diversified community with 36,847 registered members that participate in their forums.

Different webmasters can benefit from Pixel2Life.com by receiving a large initial influx of traffic for every accepted tutorial they submit, and continue to do so as long as it stays in the site’s index. The best thing about this site is that it’s free. No membership is required, and there’s no requirement to link back to them.

Learn more about web design by visiting an online Web design Philippines site.

Good-Tutorials.com

Good-Tutorials.com is a website that provides a collection of different how tos from Photoshop, Illustrator, JavaScript, PHP, CSS, Flash, HTML, and many more that web designers can benefit from. One good thing about this site is that, much like PSDTuts.com, it also offers a way to submit tutorials which can help beginners and professionals alike.

TutorialSphere.com

TutorialSphere.com offers 3D graphics, audio editing, video editing, and other website development tools such as CSS, HTML, JavaScript, PHP, XML, and Photoshop among others.

Same as the previous sites, it also allows designers and developers to submit their own know hows and articles in the site.

Pegaweb.com

Pegaweb.com directly gives out web design tips using Photoshop. As owner is a web designer himself, he can provide the latest trends in web design, and a way for beginners to learn how Photoshop can enhance the site’s capability to attract viewers.

PhotoshopTalent.com

Another great website is PhotoshopTalent.com as it offers how tos on photo, text, color effects, animations, buttons and icons, web layouts, and Photoshop basics for beginners.

One great thing about this website is that it also shares videos so as to help beginners learn how to use Photoshop in creating specific effects on images, texts, and on web layouts.

For web design and development needs, visit an online Web design Philippines site to learn more.





PhotoshopSupport.com

PhotoshopSupport.com is one of the best places where enthusiasts can come and learn the tips and tricks involved in Photoshop. It provides different information from PS scripts, web templates, web design tips, blog templates, tips and tricks for beginners, to the simple keyboard shortcuts. PhotoshopSupport.com specializes in offering their viewers a comprehensive list of tutorials mainly from Photoshop.

Get your free scripts today!

Wednesday, November 16th, 2011

Whether you are looking for a PHP script, DHTML tutorials or you are more attracted to website design, it’s practically impossible not to find something that strike’s your interest. Plus, who doesn’t love some free scripts?

Wanting to satisfy the preferences of all the people visiting their website, the specialists offering web scripts have included Ajax, C++, graphic design and Photoshop among their resources. You can trust similar resources to discover an ASP script, a PERL tutorial and even an Ajax tutorial. The information is presented in clear and comprehensive terms, making it quite easy for everyone to understand.

Let’s say you are interested in learning how to send an email from a PHP script. Well, all you have to do is go online and check out the PHP tutorial presented especially for those interested. You can simplify the search process by finding the category in which the PHP tutorial is found meaning PHP e-mail systems. For all those of you there interested in sending an email using PHP programming, this tutorial is more than perfect. You will be instructed which functions to use – mail() – and given arguments on the subject.

Do you want to add a chess game to your website? Are you interested in free scripts Java? All of these things can be found on specialized websites. Java web scripts can be used for numerous reasons, including the ones that were mentioned above. They are often preferred by those who want to install different games on their websites, making them both fun and entertaining. Other free scripts can be found for creating email links, create meta data using special generators and encrypting the source code of one’s webpage. All of these things require a great deal of knowledge and this is the reason why there are not a lot of people searching the web for free scripts.

You can use the free scripts to create buttons for your website, to generate a combo box or even to color the scrollbar of your website. The list of opportunities is endless, especially since there are so many web scripts to be found over the Internet. There are status bar messages for links that can be created with JavaScript, digital clocks and timer-controlled pop-up windows.

Create an account on one of these websites and make sure that the best programming scripts are made available to you. Check out the DHTML tutorials but also the free scripts, not to mention all the advice present on the website. Don’t hesitate to submit your own web scripts and impress everyone with your knowledge in programming language. In case you have any questions regarding the free scripts found online, contact the specialists working for the website and wait for their feedback. They will certainly provide the answers you were looking for and even more!

Review of Directbuy Complaints

Friday, November 11th, 2011

Firstly, probably many people are interested in doing shopping using directbuy method because it offers many benefits for them. They will be offered good quality of products with the competitive prices. Then, they also will get easy deals in determining the price because they purchase the price which has been determined by the company and suppliers. Booth the company of DirectBuy and supplier agree about the price offered to the customers. So, the customers do not need to negotiate the price with the suppliers. Many customers believe that shopping using the directbuy method will save the money compared to doing shopping in retailers. They also believe that the directbuy do not use markup system like retailers.

But nowadays, many customers of directbuy send their complaints on direct buy complaint to express their complaints about the products.  The furniture, for instance, is one of the products offered by the directbuy to the customers. There are many customers are interested in owning luxurious furniture such what has been promoted through the advertisement. They are so enchanted with the look of that furniture.

Sometimes, the customers will face the disappointment because the products they want are not suited with what has been expected. Probably the qualities such as material, design, or color, are not same with the product on the advertisement. This case has become the part of direct buy scam.

How To Get A Better Website Position In Search Engines – Advice And Tips On SEO

Tuesday, November 8th, 2011

It is an incredibly common situation to find yourself in; you have created your first website and you are very proud of how it looks and what it does, you have lots of great information on it, or products to sell, but there is just one thing missing…visitors!

You are not alone, and all is not lost.  What you require is a basic knowledge of search engine optimization, or SEO for short.  SEO is a huge subject, which cannot be covered in detail in any one article, but I will highlight some of the most fundamental points that you need to be aware of in order to drive traffic to your website.

Unless you are prepared to pay for traffic to your website by using adverts on other websites and on search results pages, you need your website to show up in the results pages when someone uses a search engine.  This is the only way to get a constant flow of visitors that you know are looking for what it is you can offer.

The best starting point is probably a rough overview of how search engines work, which will help you understand what it is you need to be doing to keep them happy.  While you must understand that this is a drastic simplification, what a search engine such as Google does when someone searches for something, is along the following lines.  It will sift through all the records it has of every web page it knows about, and see which ones are most relevant to the term being searched for. It then presents them in an order with the sites which it thinks are the most authoritative sources for that subject at the top.

What SEO involves, therefore, is doing the things that will let Google know what search terms your site is relevant to, and demonstrating that your site is an important and authoritative one on that subject.  The slightly more complicated part is how exactly you do that!  Google judges the importance or authority of a website to a large extent by looking at the number and type of other sites that have links to it.  Google sees a link to your site as a vote of confidence in your website by other webmasters.

You can roughly divide SEO activities into two main areas.  There are the things you do to your actual site, which you clearly have direct control over, and then the things you need to do which are off-site.  Building links is the main off-site activity that you will need to engage in.  As it is not possible to go into all aspects of SEO in one article, I will focus on link building as this is the main activity that will help your site rise up the search engine rankings.

Without lots of links from other sites to yours, your website will never appear at the top of the search engine results for any search phrase for which lots of other sites are competing.  It is fair to say that if your site does not appear in the top thirty results of a search, it may as well not exist.  In addition to that, I would say that the difference between being number ten and number one can make an enormous difference to the amount of traffic you get.  A huge number of people do not look further than the top three results

All links are not equal, and links from other sites that Google does not think are important will not count for much.  Neither will links from sites which are about a completely unrelated subject matter.  By far the most useful links you can have are those that come from sites which are about the same subject as your own, and which Google already considers to be an authority on that subject.  One good link is worth dozens of bad ones.

SEO is a vast subject, and the first thing you need to do is read up on it.  It involves a lot of work to get your site to the top of the search results, but it can be done, and there are various useful tools available which can help to speed up the whole process and guide you through the steps you need to take.