I need help with a php script. It is a CMS that has been implemented into a website. When trying to add a new product IMAGE or trying to edit current images, I am getting the following error:
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Wednesday, May 16, 2012
imageantialias call to undefined function error with GD installed
Sunday, May 13, 2012
jquery - difference between $.functionName and $.fn.FunctionName
In jQuery, I have seen both the following ways of defining a jQuery function:
Thursday, May 10, 2012
Scan Javascript for abusive functions and patterns
We have an OpenSource Extension Similar like Greasemonkey only used in Firefox . Users can submit (Java)scripts for other Users to run. This gets abused by sending malicious code.
function* in JavaScript
In this page I found a new JavaScript function type:
// NOTE: "function*" is not supported yet in Firefox.
// Remove the asterisk in order for this code to work in Firefox 13
function* fibonacci() { // !!! this is the interesting line !!!
let [prev, curr] = [0, 1];
for (;;) {
[prev, curr] = [curr, prev + curr];
yield curr;
}
}
Why does a function declaration override non-writable properties of the global object?
Setting a property descriptor like this:
Object.defineProperty(window, 'someFunction', {
value: function() { alert('safe'); },
writable: false,
enumerable: false,
configurable: false
});
Thursday, April 19, 2012
what"s the point of declaring static functions in PHP?
So in PHP you can have
Class A{
function B(){}
}
Thursday, April 12, 2012
PHP pass function as param then call the function?
I need to pass a function as a parameter to another function and then call the passed function from withing the function...This is probably easier for me to explain in code..I basically want to do something like this:
Sunday, April 8, 2012
Passing parameters to a JQuery function
I'm creating HTML with a loop that has a column for Action. That column is a Hyperlink that when the user clicks calls a JavaScript function and passes the parameters...
example:
<a href="#" OnClick="DoAction(1,'Jose');" > Click </a>
<a href="#" OnClick="DoAction(2,'Juan');" > Click </a>
<a href="#" OnClick="DoAction(3,'Pedro');" > Click </a>
...
<a href="#" OnClick="DoAction(n,'xxx');" > Click </a>
I want that function to call an Ajax jQuery function with the correct parameters.
Any help?
Source: Tips4all
Friday, February 17, 2012
this.function is not a function error, but function exists
I have some code to get calendar events and display them. The display is only updated if the events have changed, since the last call.
javascript function not returning correct value
I have this function that checks a UK postcode. The problem is that it never returns true or false - only undefined .
Friday, February 10, 2012
PostGIS function to connect geometry LINE together?
(note: the_geom is a geometry value (TYPE: LINESTRING), in this case i random them for readability)