A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task.

learn more… | top users | synonyms (1)

-2
votes
0answers
34 views

Can't redirect to another page, gives blank page with no error

Well, happens that I've got a login form and what it does is: Check the fields if filled, if yes, then search in the db for the data, else gives an error for incorrect details, or a missing field this ...
0
votes
2answers
51 views

When does a function in a variable get called in PHP?

There is no problem here but this has been on my mind and I couldn't find the answer anywhere. If I have a variable being populated with a function, does the function only get called when that ...
1
vote
4answers
31 views

jQuery Click Function Different Methods

Hi I have a Ajax call that I'm doing with jQuery and was wondering what is the difference between these methods on selecting an element on click, FIRST $(this).on('click', 'button', function (){ ...
0
votes
1answer
19 views

execute a php file on another server

I'm using Amazon EC2 to host a website, with the aim of having the smallest instance possible to save on costs etc. Part of my website has a php function that unzips an archive full of mp3's, then ...
-1
votes
3answers
46 views

C++ choose specific function returns

I have a simple (for you) question on C++ function programming. I am declaring the following function: double Function (double x, double y, double z, ...
-3
votes
1answer
34 views

How to add our own function to standard library in C++

I want to add my own function to the standard library in because when I want to use this function in another program. Then I can use them easily by just including the header then it can save me time ...
0
votes
3answers
33 views

R data.table: Count Occurrences Prior to Current Measurement

I've a set of measurements that are taken over a period of days. The number of measurements is typically 4. The range of numbers that can be captured in any measurement is 1-5 (in real life, given the ...
0
votes
0answers
28 views

SQL Server Select where function very slow .. select where function

I have some views joined up that select from a sharePoint table so I have no control over indexes. it's only 3000 rows so no biggie. I need to be able to select all rows that have the same department ...
1
vote
3answers
95 views

Is there a template for an infinite sequence of parameters?

There is a sequence of three types, say std::string, int, int. Is there a template in C++ to allow a function to take an infinite number of that sequence as parameters? Function("Peter", 27, 89, ...
-1
votes
6answers
43 views

how to call function form javascript inside php?

hi im new to php and im wonder if there any way to use javascript inside php code then i want to know how to call that function in javascript inside php code , really im sorry for my bad english and i ...
-1
votes
1answer
31 views

How to pass array to function with pointers [closed]

I really don't know how to pass array to function with pointers. I am stuck with pointers in the following code which gives me error. This is the code which gives me error with pointers..please help ...
3
votes
1answer
40 views

How to use a Python class in a Java program?

Let's suppose I need to write a Java application and this application need to perform some tasks and I have a Python class that perform those tasks through its functions/methods. I'd like to use this ...
1
vote
2answers
46 views

Better Way to Do Overloaded Functions in C#?

I have a lot of functions where I take information and populate a class or something. These are willing to accept incomplete information and populate with default values pretty often though. Here's ...
0
votes
1answer
16 views

jQuery ajax load function doesn't include custom javascript file

I have made a custom jquery popupbox for "Tell a friend" application on my website. It uses the jQuery load function to include a php file from Modules folder and display it into the popupbox. The CSS ...
1
vote
1answer
101 views

passing a function with an arbitrary amount of parameters

I've recently been learning haskell from this awesome site, and I just learned about passing functions as parameters in the Higher Order Functions chapter. I can see how passing functions as ...

1 2 3 4 5 1288
15 30 50 per page