Create SEF Tags – Helpers

SEF Helpers

This function will create unique links for your URL’s
It will genrate a string of different tags joined together.

// ------------------------------------------------------------------------

* SEF Helpers
* @package SEO/SEM
* @subpackage Helpers
* @category Helpers
* @author SEO/SEM 316 Dev Team
* @link http://

// --------------------------------------------------------------------------

* Create SEF Tags
* This function will create unique links for your URL's
* It will genrate a string of different tags joined together.
* @category function
* @access public
* @param string
* @return string
function create_sef_tags($tag_string='')
// Clean the string with all the dirty or unwanted characters
$mixed_search = array("!", "#", "$", "%", "^","&", "*", "(",
")", "+","=", "|", "\\", "{", "[",
"}", "]", ":", ";", "\"","'", "<", ",", ">", "?","/", "~", "`", "@", ".");
$mixed_replace = "";
$tag_string = str_replace($mixed_search,$mixed_replace,$tag_string);

// Replace space or underscore with (minus) character
$mixed_search = array(" ","_");
$mixed_replace = "-";
$tag_string = str_replace($mixed_search,$mixed_replace,$tag_string);

// Convert all the characters to lower case
$tag_string = strtolower($tag_string);

// Return formated string


Lets try and example :

// Example
echo create_sef_tags('@@Austin Noronha 316 Rockz.......@@');



So enjoy the code………

Do you want to share this code or provide a short link to this post use :

Secure PHP Applications (PHP Security)

To understand PHP security better let us first understand what is PHP and Security

Security is a process, not a product, and adopting a sound approach to security during the process of application development will allow you to produce tighter, more robust code.

(PHP Hypertext Preprocessor) A scripting language used to create dynamic Web pages. With syntax from C, Java and Perl, PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database and present it on the Web page

PHP is a powerful scripting language for building web applications, and also one of the easiest ways for hackers to gain access to your web server. Developers need to understand how their scripts can be exploited in order to protect them.

PHP is widely used in many high-end applications that maybe a Web Based (Internet) or and Intranet Applications. We can say that from the total PHP in Web Based (Internet) Applications : 80% and Intranet Applications:20%.

As IBM as suggested few basic principles that we could follow to make our website secure and guard our application from any vulnerabilities:

Validate input
Guard your file system
Guard your database
Guard your session data
Guard against Cross-Site Scripting (XSS) vulnerabilities
Verify form posts
Protect against Cross-Site Request Forgeries (CSRF)
  1. Validate input
  2. Guard your file system
  3. Guard your database
  4. Guard your session data
  5. Guard against Cross-Site Scripting (XSS) vulnerabilities
  6. Verify form posts
  7. Protect against Cross-Site Request Forgeries (CSRF)

Windows XP DOS Commands And Tricks

Very few of us know some trick of CMD of windows XP i have used many and also known some. So i have created a list of useful Win XP CMD tools that can be used.

Hope it helps you!!!!

ipconfig – Windows IP configuration

Useful for troubleshooting your internet connection. Displays the current IP address of your computer and the DNS server address. If you call your ISP for reporting a bad internet connection, he will probably ask you to run ipconfig.

fc – Free BeyondCompare in XP

FC is an advanced DOS Command that compares two files and displays the differences between them. Though the file comparison results are not as interactive as BeyondCompare or Altova DiffDog, fc is still very useful. You can even set fc to resynchronize the files after finding a mismatch.

type – open text files sans Notepad

Similar to Unix cat command, Type is my favorite DOS command for displaying the contents of a text files without modifying them. When used in combination with more switch, type splits the contents of lengthy text files into multiple pages. Avoid using the type command with binary files or you’ll hear alien PC beeps and see some greek characters on your PC.

ping – Say hello to another computer

Ping network command followed by the web-address or IP address tells you about the health of the connection and whether the other party is responding to your handshake request. Ping tool can also be used to convert the web address to a physical IP address.

tree – visual directory structure

You often need to take prints of your physical directory structure but XP has no simple “visual” commands for printing directory contents. Here, try the Tree DOS command and redirect the output to a text file.

tree > mydirectory.txt

print mydirectory.txt

attrib – make hidden files visible

Attrib lets you change attributes of System files and even hidden files. This is great for troubleshooting Windows XP. Say your XP doesn’t boot ever since you edited that startup boot.ini file (Hidden), use attrib to remove the Hidden attibute and edit the file using EDIT dos command.

assoc – which program will open that .xyz file

The assoc DOS command can be used to either isplay or even modify the file name extension associations. The command assoc .htm will quickly tell you the name of your default web browser (see picture)

move – more flexible than copy-paste

Say you got a lot of XLS and DOC files in you MyDocuments folder and want to move only those XLS files that have their name ending with 2006. In XP Explorer, you have to manually select each file and then cut-paste to another folder. However, the DOS move command make things much simpler. Just type the following at the command prompt:

move *2006.xls c:\2006Reports\


Configures, queries, or changes Boot.ini file settings.


Locates and consolidates fragmented boot files, data files, and folders on local volumes.


Manages disks, partitions, or volumes.


Queries for a list of drivers and driver properties.


Enables an administrator to create a custom event in a specified event log.


Lists the events and event properties from one or more event logs.


Displays and configures event triggers on local or remote machines.


Manages reparse points, managing sparse files, dismounting a volume, or extending a volume.


Obtains the media access control (MAC) address and list of network protocols


Starts Help and Support Center.


Configures Internet Protocol Security (IPSec) policies in the directory service, or in a local or remote registry. Ipseccmd is a command-line version of the IP Security Policies Microsoft Management Console (MMC) snap-in.


Manages and schedules performance counter and event trace log collections on local and remote systems.


Queries, displays, or disconnects open files.


Displays and configures the paging file Virtual Memory settings of a system.


Enables you to open a Performance console configured with settings files from Windows NT 4.0 version of Performance Monitor.


Configures or displays configuration information about a printer.


Adds, deletes, and lists printer drivers from local or remote print servers.


Pauses, resumes, cancels, and lists print jobs.


Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.


Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.


Prints a test page, pauses or resumes a printer, and clears a printer queue.


Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL.


Retrieves and sets information about services. Tests and debugs service programs.


Schedules commands and programs to run periodically or at a specific time. Adds and removes tasks from the schedule, starts and stops tasks on demand, and displays and changes scheduled tasks.


Shuts down or restarts a local or remote computer.


Queries the system for basic system configuration information.


Ends one or more tasks or processes.


Displays a list of applications, services, and the Process ID (PID) currently running on either a local or a remote computer.


Processes event trace logs or real-time data from instrumented event trace providers and allows you to generate trace analysis reports and CSV (comma-delimited) files for the events generated.


Writes performance counter data to the command window or to a supported log file format.


Eases the use of Windows Management Insturmentation (WMI) and systems managed through WMI.

Exception Processing Message c00000a3 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c

Windows – Drive Not Ready
Exception Processing Message c00000a3 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c
Cancel Try Again Continue

Exception Processing Message c00000a3 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c

Exception Processing Message c00000a3 Parameters 75b6bf7c 4 75b6bf7c 75b6bf7c

I was getting this message when i inserted my pendrive (memory stick) in my machine, the when i was trying to remove the pen drive using the “Safely remove drive”, it was giving me some error so removed it manually without stopping it and after that when i restarted my machine it gave me this error.

There were many solutions that i found on the net using GOOGLE but only one worked for me.

Solution 1: Go to Control Panel -> System -> Hardware -> Device Manager -> Disable Floppy Disk
And your done the message will not pop any more

If you need to know more about the error message or the pop up then you can click on
1. Start -> Run -> and type eventvwr.msc
2. In that click on System and there would be a list of the pops ups or errors information.

Open a new window using Javascript

JavaScript :

There are few times we would like top open a pop window to show some data or also be user interactive bu showing a good form in a pop window, can be used for this pupose

We can directly write in the anchor tag, but let be more innovative and give more flexibility to our code, so we write a wrapper function around it.

The below example provides a broader view:

/* Function : New Window
| Description : This parameter defines how you want the new window to appear.
| This parameter is ignored if an existing window is to be reused.
| The contents of this parameter is a comma separated list of sub-parameters.
| Arguments :-
| left : yes or no
| specifies the recommended distance from the left of the
| screen to the left of the new window.
| top : yes or no
| specifies the recommended distance from the top of the
| screen to the top of the new window.
| width : yes or no
| specifies the width of the content area for the new window
| (including any scrollbars etc). |
| Note. IE7 will not allow you to set width below 250px.
| height : specifies the height of the content area for the new window
| (including any scrollbars etc).
| Note. IE7 will not allow you to set height below 150px.
| menubar : can be set to yes or no to indicate whether or not the new window
| should display a menubar.
| toolbar : can be set to yes or no to indicate whether or not the new window
| should display a toolbar.
| location : can be set to yes or no to indicate whether or not the new window
| should display the location |
| status : can be set to yes or no to indicate whether or not the new window
| should display the status bar.
| resizable : can be set to yes or no to indicate whether or not the new window can be resized.
| scrollbars : can be set to yes or no to indicate whether or not the new window
| should display scrollbars if required.
| Optional :-
| replace : This parameter defines how an existing window is to be reused.
| If true then the new page replaces the current page in the browser history.
| If false the new page is added to the browser history.
| Example:“URL”,”width=350, height=400, toolbar=no, resize=yes, scrollbars=yes, status=no, menubar=yes”);
| @access public
| @param string
| @param int
| @param int
| @return void
function new_window(url,swidth,sheight)

var width = (swidth) ? swidth: 600;
var height = (sheight) ? sheight: 500;

if(url != “”),”new_window”,”toolbar=no, width=”+width+”, height=”+height+”, status=no,scrollbars=yes, resize=yes, menubar=no”);