[PHP-DB] MYSQL REGEXP question

2007-01-08 Thread Mike van Hoof

Hello,

i am try to make a regular expression work, but keep getting an error 
message

does anyone know how i can make it work?
The query is:

SELECT 'boer bv' REGEXP '[ b|^b](?![v$|v ])';

So it has to match each starting 'b' and all the b's pf following words. 
But now followed by a v(line end) or a v followed by a space.


so it should match:

'b test'
'test b'
'test b bv'
'bv b test'

and NOT

'test bv'
'bv test'

Any idea's?!

Thanks, mike

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



Re: [PHP-DB] CURL and process not finishing

2007-01-08 Thread ioannes

It is on a shared server, max_exec_time is 3000, ie 30 seconds, which yes is
probably being exceeded.  However, having set the CURL_CONNECTION_TIMEOUT
thingy it worked a lot better, and the page kept working long after 30
seconds had expired, leaving me with the question: what does
max_execution_time relate to?  is it more like a maximum time without 
activity.


I still get processes not finishing and accumulating on the server for 
several hours, and wonder is it that if the script is terminated by some 
other function like max_exec_time that the curl_close() does not get called 
in the script and the process remains.  Do I need to run another script on a 
different cronjob to terminate such processes?




John

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