20 October, 2009

How to Design a Secure Systems

The following sections present a preliminary set of guidelines for secure interaction design.applying them in practice will help to assess their

completeness.Completeness cannot be proved, as it is impossible

to guarantee the success of a user interface.


  1. Understanding Threats

  2. Designing-In ecurity

  3. Convenience and Security

  4. Security By Obscurity

  5. Open vs. Closed Source

  6. A Game of Economics


All Topics :Ajax|Apache Web Server |Articles|CMS|CSS|Documentation|download|ebook| Forums| HTML and XHTML|Jobs | Linux| MYSQL| PHP| PHP Classes|PostgreSQL|| Top Sites| UML| WAMP/XAMPP| Web Security| Webhosting control panel | xml

14 September, 2009

Smarty installation steps on WAMP and XAMPP

This document assumes that your webserver and php5 is running.
1 Download Smarty - http://smarty.php.net
2 Installation – Windows, IIS/Apache, PHP5
3 Extract files, rename Smarty.x.x.x to smarty (suggest OUTSIDE of your www root!)
Example: d:\smarty
4 Run phpinfo.php to find out your php.ini location
5 Edit php.ini’s include_path and add the location of the libs folder.
example: include_path = “.;d:\smarty\libs”
6 Restart IIS/Apache
7 Setup these two folders INSIDE your www root:
(wwwroot)/smarty/templates (this is where your templates will go)
(wwwroot)/smarty/configs
8 Setup these two folders OUTSIDE of your www root:
d:/smarty/templates_c
d:/smarty/cache
9 Setup security settings for the webserver to write to these four folders

<span style="font-weight:bold;">Example </span>
In (wwwroot) create index.php and in (wwwroot)/smarty/templates/index.tpl with the following code:
<?php

// load Smarty library
require(’Smarty.class.php’);

$smarty = new Smarty;

$smarty->template_dir = ‘d:/inetpub/wwwroot/smarty/templates’;
$smarty->config_dir = ‘ d:/inetpub/wwwroot/smarty/config’;
$smarty->cache_dir = ‘d:/smarty/smarty_cache’;
$smarty->compile_dir = ‘d:/smarty/smarty_templates_c’;

$smarty->assign(’name’,'fish boy!’);

$smarty->display(’index.tpl’);
?>


index.tpl


<html>
<body>
Hello, {$name}!
</body>
</html>

Now open index.php in your web browser (requested from your webserver)

http://webserver/index.php

You can work this out to a referenced script/class:
smarty_connect.php:
<?php

// load Smarty library
require(’Smarty.class.php’);

class smarty_connect extends Smarty
{
function smarty_connect()
{
// Class Constructor.
// These automatically get set with each new instance.

$this->Smarty();

$this->template_dir = ‘ d:/inetpub/wwwroot/smarty/templates’;
$this->config_dir = ‘ d:/inetpub/wwwroot/smarty/config’;
$this->compile_dir = ‘d:/smarty/templates_c’;
$this->cache_dir = ‘d:/smarty/cache’;

$this->assign(’app_name’, ‘Intranet’);
}
}
?>

index.php:
<?php

require(’smarty_connect.php’);

$smarty = new smarty_connect;

$smarty->assign(’name’,'Ned’);

$smarty->display(’index.tpl’);
?>

index.tpl:
<html>
<body>
Hello, {$name}!
</body>
</html>

02 July, 2009

How To Install XAMPP in Support with PostgreSQL And phpPgAdmin

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl, plus many additional modules. The whole package is well integrated and can save a lot of time and hassle for the inexperienced web developer. It's available on four platforms Windows, GNU/Linux, Mac OS X and Solaris which gives a lot practical benefit to those who use it.

PostgreSQL is a well known database that may be more suitable for some tasks or workloads than others. phpPgAdmin is a web-based administration tool for PostgreSQL, exactly as phpMyAdmin for MySQL.

1. Install PostgreSQL and phpPgAdmin in Windows :

1.1 Install PostgreSQL
Assuming you have already download and installed XAMPP into c:\XAMPP, go and get the latest version of PostgreSQL for Windows. Download the version with the installer, not the one with only binaries.

Usually, it's a .zip package, extract it and install Microsoft Visual C++ 2005 redistributable vcredist_x86.exe first!

Now, double-click postgresql-8.3.msi, choose your install language, then have a look at installation notes as you may find useful info there.

Change the default install folder to c:\xampp\pgsql
The default install options in the following step are OK, but select everything you are unsure.

Enter a password for the user account "postgres" and leave everything as is in Service Configuration, then proceed to the next step. (You will need that password for future upgrades)

In Initialize Database Cluster:
  • Enable "Accept connections on all addresses, not just localhost" if you want.
  • Choose a different Encoding for both Server and Client (i.e: UTF8 for unicode support)
  • Enter a password for the DB administrator account "postgres".
Proceed as PL/pgsql is enabled by default in Procedural Langauges, then select Contrib Modules you want (select everything if you are unsure). Click on Install.

1.2 Install phpPgAdmin
Go and get the latest phpPgAdmin zip package and extract it into C:\xampp\phpPgAdmin\ . Make sure the files and folders extracted are in that folder, not within another sub-folder.

Then open "config.inc.php" found in C:\xampp\phpPgAdmin\conf\ and set "extra_login_security" to false
$conf['extra_login_security'] = false;

Now, open c:\xampp\php\php.ini and make sure "extension=php_pgsql.dll" is uncommented

Finally, open c:\xampp\apache\conf\extra\httpd-xampp.conf and in section add
Alias /phppgadmin "c:/xampp/phpPgAdmin/"

AllowOverride AuthConfig
Order allow,deny
Allow from all

That's all, you can now access phpPgAdmin from your web browser with http://localhost/phppgadmin/

Notes:
  • For more info about PostgreSQL Installer visit http://pginstaller.projects.postgresql.org/FAQ_windows.html
  • You may use Stack Builder shipped with PostgreSQL to add new functionalities.
  • Visit the phpPgAdmin FAQ for any further info http://phppgadmin.sourceforge.net/?page=faq

07 June, 2009

How to remove data , website, weblink from Google Cache

The URL Removal Tool
If you have deleted a web page or an image and it has been removed from the server and, the URL returns a 404 page not found error, then you can request Google to remove the page from their indexed cache. Remember the URL of the page to be removed must return a 404 error otherwise this tool will not work.

Use the URL removal tool to request that information be removed from Google Web Search and Image Search results. You can use this tool to request the following types of removals:

  • Remove outdated or missing webpages.
  • Remove information or images.
  • Report inappropriate content appearing in SafeSearch filtered results.

Google will investigate and provide an update on the status of your request as soon as possible. Removals that are processed through this tool are excluded form Google search results for six months.

Blogging tips

  1. Locate the URL of the page you’d be like to be removed from Google’s search results.
  2. Verify that the URL returns a 404 – not found error message.
  3. If you don’t already have one, then set up a Google account and a Webmaster Tools account.
  4. Sign into your Google account and go to this URL and follow the instructions

Recession Does Not Affect Website Development and it is mainly possible through open source technology like LAMP Stack

The current economic climate has dissuaded many people from launching new business web portal. This is unfortunate because this is the perfect time to launch a new revenue generating strategy since the need for additional money is more important now than ever before. But, some may assume that it would be impossible for a business to profit in a recession. While this is true of some businesses, it is not true of all businesses. For example, those businesses that are centered on internet can do quite well even in a recession.
 
Copyright © 2009 PHP Web Scripts ( phpwebscript.blogspot.com) .
All rights reserved.
Shyju Narayanan.