Wednesday, August 18, 2010

8 ways to reduce hand coding

The size and complexity of Web sites is increasing dramatically. Nowadays, most Web sites don’t consist of just static HTML pages with hyperlinks. Instead, they’re sophisticated and interactive systems with dynamic databases, administration backend and other bells and whistles. Developing such applications takes much time and effort and is a real challenge to those lacking development skills.
But the good news is that you can free yourself from some of the programming complexity or even code less to produce quality web sites and applications. In this post we take a look at 8 ways you can reduce hand coding.

Scripts

Scripts are full-featured web applications that can be downloaded either for free or a fee and installed on your own server. They provide the easiest way to launch a web site or add functionalities to an existing one without any hand coding. You’ll find scripts for virtually any type of web site from photo galleries scripts to Facebook clone scripts on HotScripts.

Plugins, Modules and Components

When scripts fail to provide the customization or tweaks you require, you can resort to using their plug-ins/modules. Most popular scripts offer a plugin system, which can be installed and configured to extend the existing built-in features.  For example, Wordpress has over 10,000 plugins making it infinitely extensible.

One-click Script Installers

If installing and configuring scripts still presents a level of technical complexity for you, then one-click script installers will help you install and upgrade your scripts automatically. A lot of web hosting companies already provide automated script installation software like Fantastico, but if yours doesn’t then you can always turn to SimpleScripts. SimpleScripts offers remote script installation for over 70 popular open source scripts to your existing web hosting account. It also has an automated notification feature that will inform you whenever a new script version is available.

Web Widgets

Web Widgets are codes that you can copy and paste into any HTML web site to display content or add interactivity to your site. For example, with a few lines of readily available codes, you can add a voting poll to your site, weather forecast, twitter stream of your followers or even videos and Flash games to your site. A common example if the ‘Tweet this’ button you’ll find on many blogs including the HotScripts blog. You can find a huge collection of widgets at widgetbox.com. Some sites will use different terminology for widgets – Google calls widgets ‘Google Gadgets’ while others might refer to widgets as Web Apps.

APIs

A common misconception of APIs is that they are hard to use. While this holds true for certain APIs, there are however a lot of APIs that can bring added-features to your sites with just a few lines of code. Most API providers nowadays provide ample of documentation and sample codes and to make this even easier. For example the Google Maps API is extremely easy to understand and use.  If you’re looking for APIs, remember to check programmableweb.com. (They also showcase Mashups which are basically combination of different APIs).

Frameworks & Libraries

Frameworks and libraries offer rapid application development by providing reusable code wrapped in either functions or API. They are designed to support the development of dynamic web sites, web applications and web services. Framework helps a lot in alleviating the overhead associated in developing web application like database access, templating framework, user authentication, etc.  If you’re looking for the most popular web frameworks for the different programming platforms, take a look atthis post.

Website Builders

Website builders can be pretty handy to quickly generate a web site without touching a single line of code. Some website builders are offered as SaaS applications whereby which you can signup and choose different template designs and use the built-in CMS to manage your content. They offer a much cheaper alternative to a custom design and coded websites. There are also several website builders scripts that you can install on your own server and use it to easily launch new sites. Here’s our collection of PHP website builders scripts.

Code Generators

Writing a simple database application in can take a lot of time and effort – you will have to design the HTML form, write queries, implement validation/error handling, test the application, etc. You can save yourself a lot of time and reduce development cost if you use a code generator. Code generators are desktop or web-based applications that once installed will allow you to define your database and it will automatically generate all the required HTML, CSS and server-side files. You can then simply update these files to your server and get complete running applications in a few minutes.

5 Powerful PHP Code Generators

Writing a simple database application in PHP and mySQL can take a lot of time and effort – you will have to design the HTML form, write queries, implement validation/error handling, test the application, etc. You can save yourself a lot of time and reduce development cost if you use a PHP code generator. Code generators are desktop or web-based applications that once installed will allow you to define your database and it will automatically generate all the required HTML, CSS and PHP files. You can then simply update these files to your server and get complete running applications in a few minutes.
Here’s our showcase of the top 5 PHP code generators on HotScripts:

ScriptCase

ScriptCase is a complete PHP Code Generator. Through a friendly web interface, the developer can generate rich web applications extremely fast, such as: web forms, html reports, container applications, pdf reports, menus, editable grids, webhelp pages, FLASH charts, auto-complete components using JQUERY technology, master/detail forms and grids.

PHP MySQL Wizard

PHP MySQL Wizard is a smart PHP code generator, with absolute zero knowledge of coding the wizard can generate a functional web application driven from your MySQL database, saving you hours of tedious programming. Using the generated application both administrator and/or users will be able to view, search, sort, edit and delete records from your MySQL Database . The wizard has many friendly and easy to use features such as: fully customizable appearance of the generated application, validation rules, custom error messages, etc.

PHPMaker

PHPMaker is a powerful automation tool that can generate a full set of PHP quickly from MySQL, PostgreSQL, Microsoft Access and Microsoft SQL Server databases. Using PHPMaker, you can instantly create web sites that allow users to view, edit, search, add and delete records on the web. PHPMaker is designed for high flexibility, numerous options enable you to generate PHP applications that best suits your needs. The generated codes are clean, straightforward and easy-to-customize.

AppGini PHP Generator For MySQL

AppGini helps you develop web database applications instantly. You do not need to have any programming background to use it. Just define your database, set some options, click the Generate button, and you’re done! Applications generated will allow your users to view, search, edit data as well as allow administrator to access permissions. The application can then be easily customized using CSS and HTML templates.

ScriptArtist

ScriptArtist is a PHP & AJAX code generator software for MySQL. It helps helps you save a lot of developing times to create the completed CRUD operations (Create, Read, Update, & Delete), easily generates web forms (email or contact form) retrieved information from either database fields or user-defined fields and many more.

Friday, August 13, 2010

To Avoid "Page Has Expired" Warnings in IE

To avoid "Page Has Expired" warnings, set session.cache_limiter to private, and make sure that any form using the POST method submits to an intermediate processing page that redirects the user to a different URL.

ini_set('session.cache_limiter', 'private');

or

ini_set('session.cache_limiter', 'must-revalidate');

This is Helpful to Every One

To Avoid Copy and Paste of Textbox for Secure Website

Avoid copy and paste of textbox for secure website use this code in you html design

< input maxlength="50" type="text" onCopy="return false" onDrag="return false" onDrop="return false" onPaste="return false" >

It will work fine in IE, Chrome, Safari And FF

Display My Latest Tweet in My Web Page

<?
echo "Latest Tweet : ".returnTweet();
function returnTweet()
{

// Your twitter username.
$username = "XXXXXXXXXX";

// Prefix - some text you want displayed before yourlatest tweet.

// HTML is OK, but be sure to escape quotes with backslashes: for example href=\"link.html\"
$prefix = "";

// Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)
$suffix = "";

$feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1";

$twitterFeed = file_get_contents($feed);

$tweet = parse_feed($twitterFeed);
return $prefix.$tweet.$suffix;

}

function parse_feed($feed)
{
$stepOne = explode("", $feed);
$stepTwo = explode("
", $stepOne[1]);
$tweet = $stepTwo[0];
$tweet = str_replace("&l t;", "<", $tweet);
$tweet = str_replace("&g t;", ">", $tweet);
return $tweet;
}
?>