Re: [PHP] Rename

2008-01-25 Thread Per Jessen
Pastor Steve wrote: I have been looking, but the problem is that I don¹t know what questions to ask or what to look for. I think it is a rename function. That works, but it only does one file at a time. I was looking for something that will do all the files in the directory without needing

Re: [PHP] pack it in

2008-01-25 Thread Zoltán Németh
2008. 01. 25, péntek keltezéssel 00.20-kor Jochem Maas ezt írta: someone asked about checksum values in another thread, I believe he got his answer no thanks to me. but whilst I was trying to help I got stuck playing with pack/unpack. so now I have the broadbrush question of what would one

Re: [PHP] pack it in

2008-01-25 Thread Jochem Maas
one of the little imps in my head just found the light switch. thank you :-) Nathan Nobbe schreef: On Jan 24, 2008 7:13 PM, Jochem Maas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: ok. that's where my brain goes to mush - all strings in php (for now) are binary ... what's the

SV: SV: SV: [PHP] Sql support

2008-01-25 Thread mattias
hereis my php.ini i think this file are correct [PHP] ;;; ; About php.ini ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path

[PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Emil Edeholt
Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this faster. I use gd to scale the image. Is there a

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Per Jessen
Emil Edeholt wrote: Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this faster. I use gd to scale the

[PHP] RE : RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-25 Thread Luc Maltier
Thank you. You must be right about the memory_limit not enabled in 5.1.4 Windows binaries. It would be nice, for the Windows binary download, to provide details on parameters uised to compile it (and on extensions included: actually, using the installer package is supposed to be simpler, but it is

[PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
All, I have a website where some of the pages require several mysql queries - they're independent, so in principle they could easily be run in parallel. Has anyone looked at doing that? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Colin Guthrie
Per Jessen wrote: All, I have a website where some of the pages require several mysql queries - they're independent, so in principle they could easily be run in parallel. Has anyone looked at doing that? http://uk3.php.net/manual/en/function.mysqli-multi-query.php -- PHP General Mailing

Re: [PHP] are email address could be spammed

2008-01-25 Thread Zoltán Németh
2008. 01. 25, péntek keltezéssel 11.10-kor Jochem Maas ezt írta: bruce schreef: also... for gmail, as far as i can tell.. you can't do a resend on a sent email... ie, get the email you sent, reedit it, and resend it.. not to mention the 'all-your-email-belong-to-us' aspect of world

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Jochem Maas
Jochem Maas schreef: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have set an exception handler to dump these so-called uncaught

Re: [PHP] are email address could be spammed

2008-01-25 Thread Jochem Maas
bruce schreef: also... for gmail, as far as i can tell.. you can't do a resend on a sent email... ie, get the email you sent, reedit it, and resend it.. not to mention the 'all-your-email-belong-to-us' aspect of world googlisation. peace.. -Original Message- From: Daniel Brown

Re: [PHP] Assistance needed with mysql query to achieve this php5

2008-01-25 Thread Don Don
Hi Richard, I'll try out your suggestions and will let you know if i had any luck. The db structure is a little complicated hence the duplication of usernames. Cheers Richard Lynch [EMAIL PROTECTED] wrote: Just take out member_id = '%s' and use friendWIthId = '%s' instead. Actually, I think

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
Colin Guthrie wrote: Per Jessen wrote: All, I have a website where some of the pages require several mysql queries - they're independent, so in principle they could easily be run in parallel. Has anyone looked at doing that? http://uk3.php.net/manual/en/function.mysqli-multi-query.php

Re: [PHP] are email address could be spammed

2008-01-25 Thread Dotan Cohen
On 25/01/2008, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 01. 25, péntek keltezéssel 11.10-kor Jochem Maas ezt írta: bruce schreef: also... for gmail, as far as i can tell.. you can't do a resend on a sent email... ie, get the email you sent, reedit it, and resend it.. not to

[PHP] Exception thrown without a stack frame

2008-01-25 Thread Jochem Maas
I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have set an exception handler to dump these so-called uncaught exceptions in the error log

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. /Per Jessen, Zürich -- PHP General Mailing List

[PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Colin Guthrie
Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Edward Kay
Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. If you're selecting data, could

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Jochem Maas
Peter Ford schreef: Jochem Maas wrote: Jochem Maas schreef: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have set an exception handler

RE: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
Edward Kay wrote: Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. If you're

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Floor Terra
On Jan 25, 2008 7:42 PM, Per Jessen [EMAIL PROTECTED] wrote: Try pcntl_fork() to create a child process for each query. Each child can make it's own MySQL connection. Hmm, interesting idea. I wonder if that'll work under apache? You have to compile with --enable-pcntl to use it. P.S. If

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Jochem Maas
Per Jessen schreef: Floor Terra wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. Try pcntl_fork() to create a child process for each query. Each

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 7:27 am, Eric Butera wrote: I think the memory size can (sort of) be determined by width * height * bits * channels / 8. I've never found anything better than that. There are a few comments on the php site in the gd section about such things but I've never seen it

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Thijs Lensselink
Jason Pruim wrote: Hi everyone :) So partly to get an answer, and partly to boost my post rankings for the week I have a question. I am attempting to write an authentication function which would query a database, check the username/password and return true if it matches. If it doesn't

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 1:31 pm, Jochem Maas wrote: setup as via register_shutdown_function(). I missed that bit. Sorry for the noise. shutdown functions are run outside the normal context of PHP, and need special care. Output won't go anywhere, and try/catch won't work, as the bulk of the

Re: [PHP] Re: how do you get to do multiple mysql queries concurrently?

2008-01-25 Thread Nathan Rixham
If you run the scripts through the CLI you can multithread your queries very easily.. you can wrap it in a while(1) block with a sleep(X) aswell to keep it going forever-ish.. ?php $child = 0; $pid = pcntl_fork(); if(!$pid) { $db = new your_mysql_handler('connection gubbins'); $work =

[PHP] Binary to double without loosing precision?

2008-01-25 Thread Nathan Rixham
Spatial Joys! Quite simply I need to unpack wkb binary from mysql back to it's double-precision... problem is this: Array ( [order] = 0 [type] = 16777216 [latitude] = -7.1466311596962E-292 [longitude] = 1.7568969921627E-47 ) should be: Array ( [order] = 0 [type] =

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Jim Lucas
Jason Pruim wrote: Hi everyone :) So partly to get an answer, and partly to boost my post rankings for the week I have a question. I am attempting to write an authentication function which would query a database, check the username/password and return true if it matches. If it doesn't

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Nathan Nobbe
On Jan 25, 2008 3:35 PM, Thijs Lensselink [EMAIL PROTECTED] wrote: Change: }return $authenticated; to return $authenticated; } else it will never return the value from the function. But it will always give you undefined variable notice nice catch ;) -nathan

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 1:59 pm, Jason Pruim wrote: Hi everyone :) So partly to get an answer, and partly to boost my post rankings for the week I have a question. I am attempting to write an authentication function which would query a database, check the username/password and return

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Nathan Nobbe
?PHP /// initialize the return variable $authenticated = false; function authentication(){ if(!isset($user) || !isset($pass)) { return false; } /// -- i would do it a bit nicer than this, but you get the idea if($user $pass) { // Keep in mind, PASSWORD has

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Jochem Maas
Richard Lynch schreef: On Fri, January 25, 2008 4:37 am, Jochem Maas wrote: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: I wonder if you can wrap a try/catch around the loading of the constants and class

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Eric Butera
On Jan 25, 2008 1:39 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, January 25, 2008 7:27 am, Eric Butera wrote: I think the memory size can (sort of) be determined by width * height * bits * channels / 8. I've never found anything better than that. There are a few comments on the php

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 11:33 am, Floor Terra wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. Try pcntl_fork() to create a child process for each

Re: SV: SV: [PHP] Sql support

2008-01-25 Thread Richard Lynch
Either you see a section about mssql extension or you don't. If you see it, you have it. If you don't, you don't. It's really that simple... You have bcmath, calendar, COM, ctype, date, DOM, filter, ftp, hash and iconv. You don't have mssql, nor ODBC for that matter. (Unless ODBC is built-in,

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 2:43 am, Emil Edeholt wrote: I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Jochem Maas
Nathan Nobbe schreef: On Jan 25, 2008 12:45 PM, Jochem Maas [EMAIL PROTECTED] wrote: you'll end up forking a complete apache process - assuming mod_php. you don't want that alright, Jocheem, now its my turn for a stupid question. doesnt apache fork a different process on each php request

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 5:07 am, Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, he wants to leverage the multi-threaded MySQL DB in

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 4:37 am, Jochem Maas wrote: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: I wonder if you can wrap a try/catch around the loading of the constants and class definitions? Or you already

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Nathan Nobbe
On Jan 25, 2008 1:01 PM, Floor Terra [EMAIL PROTECTED] wrote: If all these apache/php processes are a problem, you could try a different setup: Write a SOAP (or silmilar) webservice in a language that does support proper threading. Now call your SOAP function from your php script to send the

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Floor Terra
On Jan 25, 2008 6:52 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 25, 2008 12:45 PM, Jochem Maas [EMAIL PROTECTED] wrote: you'll end up forking a complete apache process - assuming mod_php. you don't want that alright, Jocheem, now its my turn for a stupid question. doesnt apache

Re: [PHP] Re: how do you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
Jochem Maas wrote: have you thought of batch processing via cron? you can have a parent process run off children to handle each long running query and package the results in format that's quick to output - thereby minimizing the time taken to batch process and then have the summary page

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Jochem Maas
Per Jessen schreef: Colin Guthrie wrote: Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. So

Re: [PHP] are email address could be spammed

2008-01-25 Thread Jason Pruim
On Jan 25, 2008, at 8:52 AM, Eric Butera wrote: On Jan 25, 2008 8:43 AM, Dotan Cohen [EMAIL PROTECTED] wrote: On 25/01/2008, Eric Butera [EMAIL PROTECTED] wrote: not to mention the 'all-your-email-belong-to-us' aspect of world googlisation. yeah, that's exactly why I don't use gmail

Re: [PHP] are email address could be spammed

2008-01-25 Thread Dotan Cohen
On 25/01/2008, Jason Pruim [EMAIL PROTECTED] wrote: I've always believed that if I'm going to get subjected to ads (Which of course I do) I want them to be as specific as possible... Don't show me the benefits of estrogen treatments :) Hey! You are ruining my contextual ads with words such

Re: [PHP] are email address could be spammed

2008-01-25 Thread Eric Butera
On Jan 25, 2008 8:43 AM, Dotan Cohen [EMAIL PROTECTED] wrote: On 25/01/2008, Eric Butera [EMAIL PROTECTED] wrote: not to mention the 'all-your-email-belong-to-us' aspect of world googlisation. yeah, that's exactly why I don't use gmail That's why I use gmail for lists,

Re: [PHP] are email address could be spammed

2008-01-25 Thread Dotan Cohen
On 25/01/2008, Eric Butera [EMAIL PROTECTED] wrote: not to mention the 'all-your-email-belong-to-us' aspect of world googlisation. yeah, that's exactly why I don't use gmail That's why I use gmail for lists, but not for work or personal mail. The spam filtering is great, and

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Peter Ford
Jochem Maas wrote: Jochem Maas schreef: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have set an exception handler to dump these

Re: [PHP] are email address could be spammed

2008-01-25 Thread Eric Butera
On Jan 25, 2008 5:28 AM, Dotan Cohen [EMAIL PROTECTED] wrote: On 25/01/2008, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 01. 25, péntek keltezéssel 11.10-kor Jochem Maas ezt írta: bruce schreef: also... for gmail, as far as i can tell.. you can't do a resend on a sent

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 1:45 pm, Jochem Maas wrote: Richard Lynch schreef: On Fri, January 25, 2008 11:33 am, Floor Terra wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded???

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Thijs Lensselink
Nathan Nobbe wrote: On Jan 25, 2008 3:35 PM, Thijs Lensselink [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Change: }return $authenticated; to return $authenticated; } else it will never return the value from the function. But it will always give you

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Jochem Maas
Richard Lynch schreef: On Fri, January 25, 2008 1:45 pm, Jochem Maas wrote: Richard Lynch schreef: On Fri, January 25, 2008 11:33 am, Floor Terra wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make

Re: [PHP] pack it in

2008-01-25 Thread Eric Butera
On Jan 24, 2008 7:13 PM, Jochem Maas [EMAIL PROTECTED] wrote: Richard Lynch schreef: On Thu, January 24, 2008 5:20 pm, Jochem Maas wrote: someone asked about checksum values in another thread, I believe he got his answer no thanks to me. but whilst I was trying to help I got stuck playing

[PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Colin Guthrie
Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. So really what you want is

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Jochem Maas
Richard Lynch schreef: On Fri, January 25, 2008 11:33 am, Floor Terra wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. Try pcntl_fork() to create a

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Eric Butera
On Jan 25, 2008 3:43 AM, Emil Edeholt [EMAIL PROTECTED] wrote: Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Eric Butera
On Jan 25, 2008 5:37 AM, Jochem Maas [EMAIL PROTECTED] wrote: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have set an exception

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Jochem Maas
Eric Butera schreef: On Jan 25, 2008 5:37 AM, Jochem Maas [EMAIL PROTECTED] wrote: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have

Re: [PHP] pack it in

2008-01-25 Thread Richard Lynch
On Thu, January 24, 2008 6:13 pm, Jochem Maas wrote: Richard Lynch schreef: On Thu, January 24, 2008 5:20 pm, Jochem Maas wrote: someone asked about checksum values in another thread, I believe he got his answer no thanks to me. but whilst I was trying to help I got stuck playing with

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-25 Thread Richard Lynch
On Thu, January 24, 2008 10:11 pm, Wolf wrote: Jay Blanchard wrote: [snip] Dude, I laughed so loud that it echoed in the halls of the Engineering Wing over here. What makes it so funny? That it's not much of an exaggeration! ;-D very glad to raise a laugh :-) those without a sense

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Eric Butera
On Jan 25, 2008 8:43 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Jan 25, 2008 5:37 AM, Jochem Maas [EMAIL PROTECTED] wrote: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every*

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 3:35 am, Per Jessen wrote: I have a website where some of the pages require several mysql queries - they're independent, so in principle they could easily be run in parallel. Has anyone looked at doing that? If MySQL has implemented cursors in some new version, you

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Floor Terra
I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. Try pcntl_fork() to create a child process for each query. Each child can make it's own MySQL connection.

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
Colin Guthrie wrote: Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. So really what you

Re: [PHP] are email address could be spammed

2008-01-25 Thread Andrew Ballard
On Jan 25, 2008 8:58 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Jan 25, 2008, at 8:52 AM, Eric Butera wrote: On Jan 25, 2008 8:43 AM, Dotan Cohen [EMAIL PROTECTED] wrote: On 25/01/2008, Eric Butera [EMAIL PROTECTED] wrote: not to mention the 'all-your-email-belong-to-us' aspect of

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Per Jessen
Floor Terra wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just the mysql queries. Try pcntl_fork() to create a child process for each query. Each child can make it's

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Nathan Nobbe
On Jan 25, 2008 12:45 PM, Jochem Maas [EMAIL PROTECTED] wrote: you'll end up forking a complete apache process - assuming mod_php. you don't want that alright, Jocheem, now its my turn for a stupid question. doesnt apache fork a different process on each php request anyway, if its complied w/

Re: [PHP] Assistance needed with mysql query to achieve this php5

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 4:06 am, Don Don wrote: The db structure is a little complicated hence the duplication of usernames. A complicated DB is all the MORE reason not to duplicate data... Stop typing and start thinking, because you are building up a mess that WILL bite you in the butt in

RE: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 6:11 am, Edward Kay wrote: Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make PHP multithreaded??? No, just

Re: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 11:21 am, Jochem Maas wrote: Per Jessen schreef: Colin Guthrie wrote: Per Jessen wrote: Colin Guthrie wrote: Per Jessen wrote: I know how to do multiple queries - the key issue in my question was how to do them concurrently (i.e. in parallel). So you want to make

Re: [PHP] pack it in

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 7:14 am, Eric Butera wrote: Of course one should know that xor encryption really isn't encryption. It is according to the DCMA, last I heard, based on the QueCat and the barcode-scanner hack for same... :-) (I still have a QueCat kicking around somewhere that I want to

[PHP] Functions are driving me crazy....

2008-01-25 Thread Jason Pruim
Hi everyone :) So partly to get an answer, and partly to boost my post rankings for the week I have a question. I am attempting to write an authentication function which would query a database, check the username/password and return true if it matches. If it doesn't match, then it

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Nathan Nobbe
oh; i just noticed you dont have formal parameters for $user or $pass; so, function authentication($user, $pass) { /// ... then you can remove the first line i put in there on the last post :) } -nathan

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 12:59 pm, Eric Butera wrote: On Jan 25, 2008 1:39 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, January 25, 2008 7:27 am, Eric Butera wrote: I think the memory size can (sort of) be determined by width * height * bits * channels / 8. I've never found anything