[PHP] Maths Problem

2002-04-17 Thread Meredith-Wilks, Richard

 Hi,
 
 I have a maths question. 
 
 I'm trying to create a html form where a user can enter formula in an
 input box (e.g. '$a + $b - 10') and posts it to PHP. 
 The variables $a and $b are known but the formula can be changed on the
 form (e.g. '$a / $b * 2').
 I want PHP to take the text input, the formula and calculate the result
 and display the results.
 
 How ?
 
 Thanks
 
 Richard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Opening large text files on Windows

2002-05-24 Thread Meredith-Wilks, Richard

Good afternoon all.

I have a problem with opening a text file in PHP.

The file is test.txt a comma separated file with 62,000 lines (4Mb) of data.
I have extended the execution time to 200 seconds to allow time to read the
file. The code I am using is below.

set_time_limit(200);
$datafile = fopen (text.txt, r);
while (!feof ($datafile)) {
  $array = fgets($datafile, 100);
  if (trim($array)) {
$count = count(explode($Seper, $array));
  } // end if $array
} // end while
fclose ($datafile);
echo $count;

My problem is that the file never finishes. 
The php.exe (running on windows 2000) in the task manager keeps running for
over 20 mins (then I kill it) and explorer keeps waiting for a reply.

Is there a better way to read this file in to check ??

 Richard
 
This message is confidential to Sunrise Medical. If you are not the intended
recipient, do not use or distribute this message; and please notify the
sender by return of e-mail.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Progress database

2001-09-21 Thread Meredith-Wilks, Richard

Help,

Can anyone help me ? 

I have a progress database running and require PHP to read and write to it. 
We have looked at ODBC and would like to avoid that if possible.


 Richard 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Pear Image_Graph

2004-06-22 Thread Meredith-Wilks, Richard
I have been told of an image class called 'Image_Graph'.

Has anyone used it and/or do you have any example code I can follow.

thanks

Richard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php