Windows Logon and Logoff Scripts
Last Updated on Saturday, 26 February 2011 11:04 Written by A.Jesin Saturday, 26 February 2011 11:04
Create windows scripts and execute them when logging on or logging off. Windows Logon and Logoff scripts can be set in the group policy editor (gpedit.msc). In a workgroup environment when a windows logon or logoff script is set it works for all the users on that computer. Logoff and Logon scripts can be very useful to perform automated tasks such as take backups synchronize certain files and folder, delete temporary files etc. These scripts can be windows batch files (.bat), VBscripts (.vbs) or any other script than should be run on Logoff or Logon. Read More…
Checkbox in PHP
Last Updated on Tuesday, 5 July 2011 10:53 Written by A.Jesin Saturday, 19 February 2011 09:11
This tutorial explains how to use checkboxes with PHP to get values which are checked by the user. Use checkboxes in PHP and insert the values into MySQL. Usually using other HTML form controls with PHP is easy. The input element is assigned a name and values entered can be retrieved using GET or POST method. But in the case of checkboxes it might be ticked or left empty also. Using checkboxes in PHP involves setting the name attribute of all checkboxes to a common name with an empty square bracket denoting an array. When the form is submitted the vales of the items checked are send as an array which is explained here Read More…
Multiple submit buttons in PHP
Last Updated on Tuesday, 5 July 2011 10:47 Written by A.Jesin Wednesday, 16 February 2011 09:21
This tutorial explains how to use multiple submit buttons in a HTML form and have PHP handle it. Usually a HTML form has only one submit button but there are situations when you might need to use more than one submit buttons and have PHP check which button has been pressed and an action to be done according to the button pressed. Having multiple submit buttons and handling them through PHP is just a matter of checking the the name of the button with the corresponding value of the button using conditional statements. Read More…
Apache Redirect directive
Last Updated on Saturday, 2 July 2011 09:06 Written by A.Jesin Sunday, 13 February 2011 08:47
This tutorial describes how to use the Apache redirect directive to redirect your website to another URL. Redirecting to another URL and passing the correct HTTP headers is extremely useful from SEO point of view if you migrate your website/blog from one URL to another. Other than redirecting to URL you can also use the redirect directive to send certain HTTP status codes when a page is accessed. The Redirect directive can be used in both the httpd.conf file as well as .htaccess file. Read More…
PHP IP Address
Last Updated on Friday, 4 February 2011 10:56 Written by A.Jesin Friday, 4 February 2011 10:56
PHP can be used to get the IP Address of a website visitor, IP address of the server hosting the website and resolve the IP address to get the hostname a.k.a reverse DNS records. PHP has predefined $_SERVER array variable using which IP addresses of both visitors and host can be retrieved. The gethostbyaddr() function is used to find out the hostname. The indices REMOTE_ADDR and HTTP_HOST contain the visitor IP address and host IP address Read More…
