sandip's blog

Annuaire (Directory) Postnuke Blocks

Annuaire (Directory) Postnuke Blocks - Annuaire (Directory) is a tool that offers families, associations, or other groups a way to manage a private directory on the Internet. Addresses, e-mails, phone numbers, and a photograph of each member is stored in a MySQL database. Data is created and updated from a web browser.

phpBB Blog

For people that want to add a blog to their phpBB forum, phpBB Blog is here... It is implemented with just 2 PHP files. One file displays a phpBB forum as blog entries. The other file displays the same forum as an RSS feed.

There are couple other interesting projects and offsite readings by Anthony Boyd.

Web Client Programming with Perl - Automating Tasks on the Web

An excellent free ebook which imparts knowledge on how the Web technically works and how to write software that is more flexible, dynamic, and powerful than the typical web browser using perl and perl tk. The goal is to give you the ability to retrieve, manipulate, and redistribute web-based information in an automated fashion.

The Linux Cookbook

Tips and Techniques for Everyday Use by Michael Stutz. This free book presents "recipes" for preparing or accomplishing a particular, specific thing. The author has selected what he considers to be the easiest and most effective methods for accomplishing particular tasks, and have arranged these recipes in general sections according to subject matter.

The layout is very simple and the book is an excellent resource for daily linux use.

Become a shell script expert !

The Unix shell is the main scripting environment of every Linux, Mac OS X and Unix system, whether a rescued laptop or a million-dollar mainframe. This cookbook of useful, customizable, and fun scripts gives you the tools to solve common Linux, Mac OS X and Unix problems and personalize your computing environment. Among the more than 100 scripts included are an interactive calculator, a spell checker, a disk backup utility, a weather tracker, and a web logfile analysis tool. The book also teaches you how to write your own sophisticated shell scripts by explaining the syntax and techniques used to build each example scripts. Examples are written in Bourne Shell (sh) syntax.

Quick E-Commerce with PHP and PayPal

Author: Peter Lavin

This article gives a great insight into developing a small website that incorporates your own shopping cart or a third-party cart in conjunction with PayPal.

Finding a secure method of payment can be a problem for small businesses without merchant credit card accounts or access to a secure server. This article concerns creating an e-commerce site using your own shopping cart or a third-party cart in conjunction with PayPal. This solution will maximise the business benefits and minimise the inconvenience to the customer. A database and server-side scripting will be implemented using MySQL and PHP. Some knowledge of these technologies and of HTML is assumed.

Redirect browser to use SSL

You can redirect browser to use SSL secure port using .htaccess file with Rewrite Rules.

Create a .htaccess file with the below Rewrite rule.

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ https://secure.yourdomain.com%{REQUEST_URI} [NS,R,L]

Server Environment Variables

One of the methods that the web server uses to pass information to a cgi script is through environmental variables. These are created and assigned appropriate values within the environment that the server spawns for the cgi script. They can be accessed as any other environmental variable, like with %ENV{'VARIABLE_NAME'} (in Perl). Many of them, contain important information, that most cgi programs need to take into account.

To get a list of such environment variables, use the below script:

#!/usr/bin/perl
foreach $value(keys %ENV) {
  print "$value: $ENV{$value}\n";
}
exit;

The Power of Find !!

find is one of the most usefull and important utilities any *NIX has. We will try to demonstrate you with some find basics.

find begins at a specified point on a directory tree and searches all lower branches for files that match a given set of parameters.

$ find path operators

path is the directory in which find will begin to search. Any number of directories can be specified. The search is recursive.

opeators/options tells find which files you are interested in.

Advanced Bash Scripting Guide

Advanced Bash Scripting Guide - The Advanced Bash Scripting Guide is both a reference and a tutorial on shell scripting. This comprehensive book (the equivalent of about 556 print pages) covers almost every aspect of shell scripting. It contains 293 profusely commented illustrative examples, and a number of tables. Not just a shell scripting tutorial, this book also provides an introduction to basic programming techniques, such as sorting and recursion. It is well suited for either individual study or classroom use.

Syndicate content
Comment