Code Snippets Interview Questions
Questions Answers Views Company eMail

How can get current system time continuously without refresh of page?

1 10777

What is difference between in_array and array_search?

TCS,

2 6992

I have array like $array = array(1, "hello", 1, "world", "hello"); if i want the following output then how can i do this? Array ( [1] => 2 [hello] => 2 [world] => 1 )

NIIT,

2 3970

If i have an array $string = array(1,2,6,2,9,6,7,3,1,2); How can i get only unique values from it? Array ( [0] => 1 [1] => 2 [2] => 6 [4] => 9 [6] => 7 [7] => 3 )

2 3567

what is main difference between array_push and array_pop?

3679

Which framework is best in php among Smarty, Cakephp, Joomla, Drupal, Zend or Something else...? If any then Why?

HCL,

2 8032

How can get all database name using Php and Sql?

NIIT,

1759

Is there any static classes are in java give some examples

1670

How can i know that how many user are visited to my page in php?

NIIT,

1609

How can restrict user to type upto 8 characters in textbox in php?

1563

Which keyword is alias for count keyword in php?

1676

Is there any way to open notepad within php?

1698

How can export database using php code?

1578

How can import database to mysql using php code?

Wipro,

1 3303

What is used of serialize and unserialize in php?

2568


Un-Answered Questions { Code Snippets }

write a program that reverses the input number of n.Formulate an equation to come up with the answer.

7017


Design a timer circuit using VHDL which has the following: input : start_timer(ST) output: long_time(LT) short_time(ST) when the timer is triggered by the ST(either 0 or 1) signal the timer should generate two timing signals accordingly.While the long time is going ON the other should be OFF and vice versa.

2094


Coding for Synchronizing Cache Access in ASP.NET?

3113


How to Bind Nested XML to a Repeater Control with Container.DataItem?

3213


What is used of serialize and unserialize in php?

2568






plzzzzzzzzz xplain this code import java.awt.*; import java.awt.event.*; public class Link extends Frame implements ActionListener { Label l1; Button b1; public static void main(String sr[]) { new Link().setVisible(true); } public Link() { super("Warning"); setSize(500,500); setBackground(Color.lightGray); setLayout(null); l1=new Label("There is no Link"); l1.setBounds(0,0,500,460); l1.setFont(new Font("TimesRoman",Font.BOLD,35)); l1.setAlignment(Label.CENTER); add(l1); b1=new Button("QUIT"); b1.setBackground(Color.orange); b1.setBounds(0,460,500,40); b1.addActionListener(this); add(b1); } public void actionPerformed(ActionEvent e) { this.dispose(); } }

1578


What is the functionality of GetWindowText?

542


Is there any static classes are in java give some examples

1670


What is XPath in XML?

364


what are the other loops except for for,while,do while and until?

2278


how to use the GetTickCount() properly and what is that procedure for?

2724


How to use Client-side Script to Focus Controls in ASP.NET?

2351


can we pass variable in array to traverse it?

1942


Code for Adding Scripting Support to an Application?

1374


Hello I am hosting remoting within IIS. Everything works just fine as long as I allow anonymous access at the IIS level. When I allow only Windows Authenticated sessions, something very strange happens: If the client activates the remote object with IP address - works fine If the client activates it using a machine name - get http 401 exception is thrown. The exception is thrown when the client calls the remote method. I set the channel's useDefaultCredentials property to true. Any idea how to allow Windows Authentication? Here is the call stack: System.Net.WebException: The remote server returned an error: (401) Unauthorized .. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean handshakeComplete) at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob, Boolean handshakeComplete) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials) at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials) at System.Net.AuthenticationState.AttemptAuthenticate (HttpWebRequest httpWebRequest, ICredentials authInfo) --- End of inner exception stack trace ---

4231