[PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
Hi, I was wondering how i can limit a script from waiting too long for a database query to return. The problem is that it will wait an infinite time while performing a query on a database when there is for example a lock on a table. I want it to exit/fail when a set amount of time has passed.

Re: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
On 9/22/05, Michael Sims [EMAIL PROTECTED] wrote: What RDBMS are you using? If you are using Postgres you can use pg_send_query() which is non-blocking. I don't think the other database backends/php drivers support such functionality, but I could be wrong... Maybe someone else knows of

Re: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
On 9/22/05, Michael Sims [EMAIL PROTECTED] wrote: What platform/driver? If Linux, are you using FreeTDS and if so what version? It looks like the timeout is handled in the TDS library, not at the PHP level. I did some poking through the FreeTDS mailing list archives and it seems that

Re: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
On 9/22/05, Michael Sims [EMAIL PROTECTED] wrote: http://lists.ibiblio.org/pipermail/freetds/2005q3/018774.html According to that it's in 0.64 I'll have it a go tomorrow. Looks hopeful! Will let you know. -- Jeroen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] RE: PHP + MySQL, how to get total rows matched when using LIMIT 0, 10?

2002-11-05 Thread Jeroen Geusebroek
of count(*) and parse the result of count. Since it only returns 10, it's correct the the total matched rows is 10. sql query Regards, Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Interbase 6.5

2002-08-13 Thread Jeroen Geusebroek
Hello, We have ordered Interbase 6.5 last week, but I was wondering if it is even supported by PHP at this moment since the 6.5 version is not open source. Does anyone have experience with this version? Kind regards, Jeroen Geusebroek

[PHP] PHP 4.1.2 Gd2

2002-03-19 Thread Jeroen Geusebroek
Hi, I'm trying to install GD2 in PHP, and can't get it compiled. It keeps saying: In file included from gd.c:36: php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static gd.c:92: conflicting types for `gdIOCtx' /usr/include/gd_io.h:18: previous declaration of

RE: [PHP] Custom 404 Page

2002-02-27 Thread Jeroen Geusebroek
I am running apache and php. I want to create a custom 404 page for my site. I have created a .htaccess file and ErrorDocument 404 /error.php3 line to it. If someone tries to view www.myserver.com/thispagedoesnotexist.htm the 404 page is displayed without issue. I guess you are using PHP

[PHP] IIS 4 auto prepend

2001-12-14 Thread Jeroen Geusebroek
Hi there, Is it possible with IIS4 to have PHP auto prepend a PHP script, similair to the way Apache can do this with for example a .htaccess file or a server directive? I know i can do this also in the PHP.ini, but i'm running multiple virtual servers so this is not an option. Thanks,

[PHP] PHP 4.0.6 Mysql 4.0

2001-10-18 Thread Jeroen Geusebroek
Hi there, Does the current stable PHP (4.06) support the use of the newly released Mysql 4? Thanks, Jeroen -- 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,

Re: [PHP] Spam messages (Was: FREE S E X O

2001-10-18 Thread Jeroen Geusebroek
to a newsgroup they could use that instead. I agree filter software is needed to junk the spam. And then the spammers can use NNTP again. I think it goes both ways. NNTP LIST A good spam filter (blacklist) would be a good option. Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net

RE: [PHP] Strange output by phpinfo()

2001-09-23 Thread Jeroen Geusebroek
While viewing my phpinfo() page, i got this: QUERY_STRING

[PHP] Strange output by phpinfo()

2001-09-22 Thread Jeroen Geusebroek
While viewing my phpinfo() page, i got this: QUERY_STRING

[PHP] Detecting browser language

2001-08-08 Thread Jeroen Geusebroek
Hi there, Lately you see a lot of sites that detect the language of the client browser. For example if i visit google it's in dutch. I know they detect this using the browser, but i'm not sure on how it's done. Can someone shed some light on this? Thanks, Jeroen -- PHP General Mailing List

[PHP] Frames, Sessions Search Engines

2001-07-27 Thread Jeroen Geusebroek
) and if so just redirect the user to the main page. But i'm afraid that search engines will get redirected to the main page everytime it try's to index a page. What do you all think, and might there be another solution? Thanks, Jeroen Geusebroek P.S. Please CC me in your reply, i'm not a member

[PHP] Reversing htmlspecialchars()

2001-05-19 Thread Jeroen Geusebroek
Hi There, How can i reverse the htmlspecialchars() functions? I can't seem to find a function for that. Thanks, Jeroen Geusebroek -- 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

RE: [PHP] Reversing htmlspecialchars()

2001-05-19 Thread Jeroen Geusebroek
Hi Rasmus, How can i reverse the htmlspecialchars() functions? I can't seem to find a function for that. There is no function to do that. Maybe it would be a nice feature to add in PHP? For the moment i'll just have to make my own version then :) Thanks, Jeroen -- PHP General Mailing

[PHP] MIME Decoding of a string

2001-05-14 Thread Jeroen Geusebroek
for the advice, Jeroen Geusebroek -- 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]

Re: [PHP] MIME Decoding of a string

2001-05-14 Thread Jeroen Geusebroek
the new version will be better! Thanks for contributing to the open source community. (My project will also be open source, but first it has to be stable ;) Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] zlib problem

2001-05-04 Thread Jeroen Geusebroek
= 1.0.9. Needless to say, i am using a version higher then 1.0.9. I would appreciate it if someone good give me some help. I did not have this problem with PHP 4.04. Thanks, Jeroen Geusebroek P.s. please CC me in your reply, because at the moment i'm not subscribed to the list. -- PHP

[PHP] Regular Expression

2001-04-18 Thread Jeroen Geusebroek
appreciate it. A link to a tuturial would also be nice. Regards, Jeroen Geusebroek -- 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]

Re: [PHP] Regular Expression

2001-04-18 Thread Jeroen Geusebroek
Does anyone know a good regex tutorial? I'll probably bump into it again. Regex'es seem to be very usefull. Regards, Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

[PHP] Decode ?iso strings?

2001-04-06 Thread Jeroen Geusebroek
?= How do i decode this? Same goes for mime messages, is there any excisting code that decodes mime messages? Thanks for the help, Jeroen Geusebroek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED