Archive for the ‘Tutorials’ Category

JSON Tutorials

JSON (JavaScript Object Notation), is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is used by many other technologies like PHP and Java for data interchange format over the Internet. What is JSON? JSON is ultra-weight data interchange data format […]

Run a cron job more than every minute

The standard cron syntax lets you specify the minute(s) at which a task runs, but you cannot specify an interval less than once a minute (using * * * * * *). You can run a cron job more than by a minute by creating a simple shell script that repeatedly runs the task, with […]

Cron Job Configuration Guide

Cron Jobs basic setup via Cpanel. Some time you need to run a peace of code on specific time interval. Cron Jobs module is used for this work. This can be done by adding the following line via Cpanel/Cron Jobs: /usr/local/bin/php /home/your-site-root-dir/public_html/cron-file.php Wget Method * * * * *   wget -q -O – ‘http://www.mydomain.com/cron.php’ […]

PHP Object Oriented Programming Concepts

Starting with PHP 5, the object model was rewritten to allow for better performance and more features. This was a major change from PHP 4. PHP 5 has a full object model. Among the features in PHP 5 are the inclusions of visibility, abstract and final classes and methods, additional magic methods, interfaces, cloning and […]

The CSS Box Model

The CSS box model describes the rectangular boxes that surround content in Web pages (seen and unseen). The CSS box model describes the boxes that are formed around elements of content in a Web page. Every element in a Web page is in a box or is a box, even if it’s an image of […]

Json Tutorial for beginners

What does it stand for? JavaScript Object Notation. And what does that mean? JSON is a syntax for passing around objects that contain name/value pairs, arrays and other objects. Here’s a tiny scrap of JSON: {“skillz”: { “web”:[ {“name”: “html”, “years”: “5” }, {“name”: “css”, “years”: “3” }], “database”:[ {“name”: “sql”, “years”: “7” }] }} […]

Cascading Style Sheets Tricks

Adjust Text with CSS Text is different from fonts – text is the blocks of content written with fonts. With CSS you can affect how the text displays including the color, alignment, decorations and more. Coloring Text You can change the text or foreground color with the CSS color property. You can define your colors […]

How You Write Your HTML Can Affect SEO

The HTML tags that you use can affect your SEO. The first thing you should think about is that search engine robots are a lot like very simple Web browsers. Most of them can’t view images, can’t see Flash, and ignore any non-standard HTML. So when you’re working on SEO the first thing you want […]

Enhancing Your Web Forms

Once you understand the more advanced tags for forms, you can enhance the look using CSS and manipulating the form tags with that. There are also fun ways to use JavaScript to manage and manipulate your forms. Use CSS to Improve the Look of Your Forms CSS is a great way to make your forms […]

Dress up your form with Form Tags

Forms can be pretty boring looking. Most designers simply line up the text fields one after the other, or put them in tables. All of which are fine, but you can do more with forms than just slapping the tags up on a page. There Are Lots of Other Form Tags The LABEL Tag The […]

Copyright © Sunware Technologies - Your web partner