Scripts_Markup Code Interview Questions
Questions Answers Views Company eMail

What is difference between in_array and array_search?

TCS,

2 7495

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 4337

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 3999

what is main difference between array_push and array_pop?

3936

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

HCL,

2 8426

How can get all database name using Php and Sql?

NIIT,

1956

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

NIIT,

1804

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

1733

Which keyword is alias for count keyword in php?

1847

Is there any way to open notepad within php?

1868

How can export database using php code?

1766

How can import database to mysql using php code?

Wipro,

1 3668

What is used of serialize and unserialize in php?

2768

How can manage theme in php?

2202

What is used of phpinfo() function in php?

1 3562


Un-Answered Questions { Scripts_Markup Code }

code to detect availability of cookies

1969


write a code that user can choose/alter Body Text Size

1799


How to add flash or *.gif file in edit panel in java?

2101


What is XML Element?

504


Can someone please explain more about how the XML Gateway works and what its purpose is?

2109


i have some csv files in a directory which have sub-directories also. now how can i merge all .csv files in to one with a single header. for example: have some 4 files. 1.csv--------name,age,sal abc,25,4000 2.csv--------name,age,sal vgd,32,3500 3.csv--------name,age,sal hfg,20,5000 4.csv--------name,age,sal asd,15,2000 now my output file should be like 5.csv----------name,age,sal abc,25,4000 vgd,32,3500 hfg,20,5000 asd,15,2000 and please explain the code for me. as i am new to scripting. thank you in advance

1594


How to store the iterations value in some variable/ in excel? Dim objExcel, ObjFolder, objPath, objWorkbook, objSheet, ObjFSo, ObjFolderName, strExcelPath Const xlExcel7 = 39 ObjFolderName = "Testing" & Hour(time()) & Minute(time()) &Second(time()) objPath = "D:\" strExcelPath = objPath & ObjFolderName & "\testing.xls" Set ObjFSo = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.CreateFolder(objPath & ObjFolderName) On Error Resume Next Set objExcel = CreateObject("Excel.Application") If (Err.Number <> 0) Then On Error GoTo 0 Wscript.Echo "Excel application not found." Wscript.Quit End If On Error GoTo 0 Set objWorkbook = objExcel.Workbooks.Add() Set objSheet = objExcel.ActiveWorkbook.Worksheets(1) Dim arr1, arr2, arr3 Set outputLines = CreateObject ("System.Collections.ArrayList") arr1 = 123arr2 = 99 arr3 = 10 outputLines.Add arr1 outputLines.Add arr2 outputLines.Add arr3 outputLines.Sort() For Each outputLine in outputLines WScript.Echo outputLine ' how to store this value in excel/ variable? Next objExcel.ActiveWorkbook.SaveAs strExcelPath, xlExcel7 objExcel.ActiveWorkbook.Close objExcel.Application.Quit This above code is working fine but the qs is is there any way to store the sort data in variables / in the excel and how?

2632


code to get the coordinates of a Click Event

1976


code to images to rollover

2068


What is XML DOM Document?

447


Given a string=”me,I,myself”; .Using javascript only create an array out of this string and then send a POST request to the url “record.php” without reloading the page. The post key parameters should be n1,n2 and n3 respectively.

2526


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

1804


What is well formed XML document?

463


What is a well formed XML document?

429


What are the special characters used in XML?

461