Web Development Tools

new technology induction

  • Review developercase.wordpress.com on alexa.com

PHP Server Side Scripting

Posted by Ravi Saxena on June 1, 2011

Reasons for the rise in PHP based applications:
Companies are shifting their web-related applications to pure PHP as it comes to us as an Open Source complete package. Now the frameworks in PHP are becoming more rich and robust as far as security is concerned due to the policy in practice.

PHP stands for recursive “Pre Processor PHP”. It is basically used for Server side scripting and can be fine tuned, optimized to interact with client side objects.
Also all the related packages are open source, viz. Apache, MySQL.

Minimum requirements for installing and using PHP:

1) The best way is to use the self extractable files if trying to install PHP on Linux based OS. On Windows one can use WAMP or XAMP to install the package in a jiff.

2) Getting started with your first MySQL connectivity:

$con = mysql_connect(“localhost”,”root”,””);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}

mysql_select_db(“developercase”, $con);
$sql=”select * from mapsgateway”;
$result = mysql_query($sql);

Keep the root user password as blank.

3) PHP has no limitations in paradigm of the programming which has both side effects:

The power of PHP strength is in the simplicity of its use but requires self discipline from the programmers’ side and thereby providing the complete flexibility in programming. In case of popularity all over the world, PHP has left .NET, .ASP, Ruby, etc all far behind and is competeing with the much advanced security mechanism of JSP. In short PHP is going to engulf more than half of the SMB. Due to open source codes, the frameworks are freely distributable which again marks the beginning of new innovative and further development.

Posted in scripting languages | Leave a Comment »

htaccess 301 folder redirect

Posted by Ravi Saxena on May 11, 2011

To redirect a complete website, one needs to do the following changes to the root .htaccess file:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [NC]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,NC]

However points to remember when there is some one-t-one relationship in the redirection. As in the case you might be required to have all the 3 conditions:

  • redirect some high traffic pages to particular different pages on a different domain,
  • redirect entire folders to some other folder,
  • redirect rest of the pages to a different domain altogether.

Example:

1. Redirect a particular page:

RewriteRule ^2011/05/vtiger-pbx-integration.html http://www.amosvision.com/web-development/crm-modules-development.html [L,R=301]

2. Redirect entire folder:

RewriteRule ^2011/05/ http://www.amosvision.com/ [L,R=301]

3. Redirect rest of the pages:

RewriteRule ^/ http://www.amosvision.com/ [L,R=301]

In this case the RewriteRule sequence must be followed for all the requirements to be correctly meet.

Related Links:

Posted in PHP ini htaccess | 3 Comments »

XHTML Mobile Compatibility

Posted by Ravi Saxena on April 3, 2011

Many points revolving around XHTML:

  • New restrictions imposed on the use of HTML,
  • CSS version to be employed,
  • Type of DB Engines to be used for making the web applications fault-tolerant,
  • Caching at the end of browser level,
  • Server side caching,
  • Method to be employed in visitor’s tracking,
  • Real time monitoring bandwidth overload.
Related Links:

Posted in Mobile Applications | 1 Comment »