If you have forgotten your Windows Administrator password then by using guest account or any other limited account you can reset administrator password very easily. All you have to do is to create a file, paste the following script in it and set desired new password in it. Save that file in .vbs format. Run it, Administrator password will be changed.
There are some situations where simple code may work properly in case of PHP online or at localhost if register_globals are on. But not necessarily if register_globals are off.
Warning: Undefined Index – Use of Undefined constant selected
Warning: Header already sent
Sometimes messages like above that header already sent or undefined variable/ index can appear.
Suppose we have a website and we want to get the user IP address and want to display it for him or we want to store it and get a log for the hits of website. Also sometimes users may share same IP address for internet sharing & usage so his PC’s IP will be something like 192.168.0.2 (Proxy Case) and actual IP address which he is using for internet, shared by his internet service provider will be different. We can find these both IP by this simple example of PHP code.
Setting up a database connection can be a difficult task. Search Google and the scripts you will find will amaze you. These are lengthy and boring. Here is the easy most method to create a dbconnection for PHP and mysql.