Re: [PHP] very interesting post problem

2004-09-18 Thread QT
Thank you, But I don't understand what you mean with body of the post message. Would you explain more or to give an example. Best Regards "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > QT wrote: > > >Dear Sirs, > > > >I need to post 3 string data to destinati

Re: [PHP] very interesting post problem

2004-09-17 Thread raditha dissanayake
QT wrote: Dear Sirs, I need to post 3 string data to destination adres. But I see first time, the name of the variables are same such as DATA. I ask the destination ovner is there any error. Should be the form fields name such as DATA1, DATA2 and DATA3. You appear to be posting to a servlet and

Re: [PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
Will do that once I get a newer PHP version. No time for it right now. :-) The workaround to rand() I did was to use it twice and add up the result. For ex. --snip-- $randomNumberLeft = rand(0,9); $randomNumberRight = rand(0,9); $randomNumber = $randomNumberLeft.$randomNumberRight; ech

RE: [PHP] Very interesting.....

2003-09-05 Thread Jay Blanchard
[snip] It is not there, so I added it and restarted Apache. Still got the same result. How is PHP is built into Apache was done by downloading the tar.gz file from php.net and compile it. Then compile Apache, had it take in PHP. So, when it was done, there is never a php.ini there. So, I creat

Re: [PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
It is not there, so I added it and restarted Apache. Still got the same result. How is PHP is built into Apache was done by downloading the tar.gz file from php.net and compile it. Then compile Apache, had it take in PHP. So, when it was done, there is never a php.ini there. So, I create one a

RE: [PHP] Very interesting.....

2003-09-05 Thread Jay Blanchard
[snip] There isn't one in php.ini. Could this be the problem? [/snip] Look for these lines in your php.ini ; The number of significant digits displayed in floating point numbers. precision= 14 What is precision equal to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
There isn't one in php.ini. Could this be the problem? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I tried your code on this machine and I got this... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0. [/snip] What is your numeric precesion set to in t

RE: [PHP] Very interesting.....

2003-09-05 Thread Jay Blanchard
[snip] I tried your code on this machine and I got this... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0. [/snip] What is your numeric precesion set to in the php.ini? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Very interesting and challenging question

2001-11-28 Thread Chris Hobbs
A fellow wannabe Winston Cup driver :) I'm thinking about setting a switch on $mode, which will change what it does based on the value of $mode. Something like this: $mode = 1; // 1 for stripping text, 2 for adding driver results, 3 for adding race results $file = file('/path/to/filename'); f

RE: [PHP] Very interesting and challenging question

2001-11-28 Thread Chris Bailey
You could read the file in with file(), which will give you each line as an array. Then, depending on how those strings are separated (are they by tabs, or is it just whitespace?), use strtok() to tokenize each line. If they are by space, not tab, but you know the column width, then you can just

Re: [PHP] Very interesting and challenging question

2001-11-28 Thread Conor McTernan
I had something like this to do a couple of months back, unfortunately, my code was deleted by someone "smart" in my office. But i can pretty much remember the algorithim behind it. What I done was read in my file into a buffer, then use the explode function, i think, or something like it, bas