Entries tagged with 'turnkey solutions'

January 17th, 2009

PHP: We are looking for the sum and NWD

They asked me to write, a simple application, which does have to rely on the analysis of the input file, the line would have the following syntax "number1 number2 ... liczbaN", with any number of lines with just the syntax. The purpose of the application would be the sum of all components of the line and save totals in the corresponding output file suma.txt, or finding the GCD of the components of each line and also save them in the same file nwd.txt.

December 4th, 2008

jQuery: A confirmation window

We remain the subject of practical uses jQuery. Today I needed to write a window confirming an operation in the administration panel. The case seems to be simple and can be solved by the subject, forgetting about JavaScript (Confirm) or PHP, but the fun lies in how to do this so as not to cause, and even that was a really decent result?
I will try to present a sample solution to the problem, assuming that the element that we want is accompanied by confirmation by the user, is a link.