Click here to Skip to main content
15,394,700 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questionhow to measure TCP congestion windows using python ?? Pin
peaceziz19-Dec-10 0:02
Memberpeaceziz19-Dec-10 0:02 
Questionpopulate combo box / dropdown list from mysql Pin
komanche18-Dec-10 22:46
Memberkomanche18-Dec-10 22:46 
AnswerRe: populate combo box / dropdown list from mysql Pin
Luc Pattyn19-Dec-10 2:34
sitebuilderLuc Pattyn19-Dec-10 2:34 
AnswerRe: populate combo box / dropdown list from mysql Pin
Lucian.cornea21-Dec-10 14:52
MemberLucian.cornea21-Dec-10 14:52 
Questionphp Pin
bitayeganeh18-Dec-10 1:40
Memberbitayeganeh18-Dec-10 1:40 
AnswerRe: php Pin
Dr.Walt Fair, PE19-Dec-10 6:17
professionalDr.Walt Fair, PE19-Dec-10 6:17 
AnswerRe: php Pin
cjoki20-Dec-10 4:37
Membercjoki20-Dec-10 4:37 
AnswerRe: php Pin
Luc Pattyn20-Dec-10 6:23
sitebuilderLuc Pattyn20-Dec-10 6:23 
Here is the algorithm in pseudo-code, it's up to you to implement it in PHP:

min=-99999; // the smallest number possible
max=+99999; // the largest number possible
minLine="";
maxLine="";
foreach(line in file) {
    split the line by its colon
    convert the second part to a number, and store in val
    if (val < min) { min=val; minLine=line;}
    if (val > max) { max=val; maxLine=line;}
}
// now the results are in min, max, minLine, maxLine


As you can see, we don't use arrays nor sort algorithms, just process data as you get it.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 10:55
sitebuilderLuc Pattyn16-Dec-10 10:55 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:06
MemberUser 741604616-Dec-10 11:06 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 11:11
sitebuilderLuc Pattyn16-Dec-10 11:11 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:15
MemberUser 741604616-Dec-10 11:15 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 12:15
MemberUser 741604616-Dec-10 12:15 
QuestionWeb Services, WSDL and SOAP Pin
Dills100215-Dec-10 1:23
MemberDills100215-Dec-10 1:23 
QuestionLive update of data? Pin
MacRaider413-Dec-10 6:37
MemberMacRaider413-Dec-10 6:37 
AnswerRe: Live update of data? Pin
cjoki13-Dec-10 11:39
Membercjoki13-Dec-10 11:39 
Questionmultiple tables Pin
MacRaider48-Dec-10 2:18
MemberMacRaider48-Dec-10 2:18 
AnswerRe: multiple tables [modified] Pin
cjoki8-Dec-10 9:59
Membercjoki8-Dec-10 9:59 
GeneralRe: multiple tables Pin
MacRaider48-Dec-10 12:53
MemberMacRaider48-Dec-10 12:53 
GeneralRe: multiple tables Pin
cjoki9-Dec-10 4:57
Membercjoki9-Dec-10 4:57 
GeneralRe: multiple tables Pin
MacRaider49-Dec-10 5:18
MemberMacRaider49-Dec-10 5:18 
QuestionChanging the content of a div tag help required Pin
djhankypark6-Dec-10 2:25
Memberdjhankypark6-Dec-10 2:25 
AnswerRe: Changing the content of a div tag help required Pin
cjoki6-Dec-10 4:25
Membercjoki6-Dec-10 4:25 
AnswerRe: Changing the content of a div tag help required Pin
Yvan Rodrigues12-Dec-10 13:45
professionalYvan Rodrigues12-Dec-10 13:45 
QuestionHow to make a binary tree structure in php Pin
amanarora3-Dec-10 18:43
Memberamanarora3-Dec-10 18:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.