Posts

How to make remote connection in database?

The following is the process to make a remote connection in database: Use SQL Server Surface Area Configuration Tool for enabling the remote connection in database. Click on Surface Area Configuration for Services and Connections. Click on SQLEXPRESS/Database Engine/RemoteConnections Select the radio button: Local and Remote Connections and select ‘Using TCP/IP only’ under Local and Remote Connections. Click on OK button / Apply button

MySQL root password recovery

First log in to the system as the same person who is running the mysqld daemon (probably root). Kill the process, using the kill command. Restart MySQL with the following arguments: bin/mysqld Skip-grant USE mysql; UPDATE user SET password = password('newpassword') WHERE User = 'root'; Exit bin/mysqladmin reload The next time you log in, you will use your new password

Name a new feature introduced with PHP 5

PHP 5 introduces (among other things) SQLite support, improved XML support, and a significantly improved object model.

Will the include() statement slow down my scripts?

Because an included file must be opened and parsed by the engine, it will add some overhead. The benefits of reusable code libraries often outweigh the relatively low performance overhead, however.

Q: - Can I create arrays for values entered into elements other than select and check box fields?

Yes, in fact any element name ending with empty square brackets in a form resolves to an array element when the form is submitted. You can use this fact to group values submitted from multiple fields of any type into an array.

How to Execute PHP from a .html File

How can I execute PHP code on my existing myfile.html page? When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn't have anything to process on the server. If it sees a .php extension (or .shtml, or .asp, etc), it knows that it needs to execute the appropriate code before passing it along to the browser. Here is the problem: You find the perfect script, and you want to run it on your site, but you need to included PHP on your page for it to work. You could just rename your pages to yourpage.php instead of yourpage.html, but you already have incoming links or search engine ranking so you don't want to change the file name. What can you do? First let me preface this by saying that if you are creating a new file anyway, you may as well use .php. This is to help people who have existing .html pages they need to execute

What Is My IP?

Show your user's their IP address: Retrieving the user's IP address is actually much simpler than you might think, and can be done in a single line. Getenv("REMOTE_ADDR") will return the IP address of the person visiting your site. Generally this is accurate, however if the user is running through a proxie server, then it will return the address of the proxie. In this example, we retrieve the user's IP and then simply echo it's value back to the user.   <?php    //Gets the IP address $ip = getenv("REMOTE_ADDR") ; Echo "Your IP is " . $ip;    ?>

Windows 7 key

342dg-6yjr8-x92gv-v7dcv-p4k27

Windows XP Keys

WIN XP : FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8 SP1 : MYHVT-WQ4GM-QRPVF-V86FC-P3R8Y SP2 : MBG8X-MMZK7-VWM8D-KFG96-9C4MY    OR   YQ7XW-QPT6C-233QF-RRXV7-VF7TY   OR  DYMRC-TM3K2-KXHR7-FP8DV-MC6X3 SP3 : QDWAX-3XQ7W-F68F4-HYQ36-DXR7W

How to set the focus to a child window without refreshing it?

Image
Now when click on a link, it opens a popup window, which contain a data entry form, I entered some information into that form. Then I need to review other information, from other popup window, so I go back to the main window, click on another link, a new popup window get open which contain the information I need to review. I get the information and close this popup window, so now I am on the main window, then again I click on the link for that data entry form, so the popup window comes up but I lost the information that I have entered, that's because I am relodiing the popup window once again. Let us see how it works, When attempt to open the window again with the same name in the second parameter of the windows open method, you will to get the windows handle. If the window is already open, it will return the handle of the opened window or it will open a new window and return it's handle The first parameter (the url) is passed as an empty strin

What is QR code ??

Image
This is the basic of QR CODES