php-general Digest 26 Jan 2008 23:57:29 -0000 Issue 5258

2008-01-26 Thread php-general-digest-help
php-general Digest 26 Jan 2008 23:57:29 - Issue 5258 Topics (messages 268148 through 268161): Re: Rename 268148 by: Nathan Rixham 268154 by: Nathan Nobbe 268156 by: Per Jessen Re: how dod you get to do multiple mysql queries concurrently? 268149 by: Per

Re: [PHP] Exception thrown without a stack frame

2008-01-26 Thread Nathan Rixham
way offf topic-ish here.. class destructors, surely they differ from the register_shutdown_function in execution style? seeing as one can echo / do a bit of jiggery pokery before the buffers close. what exactly is the difference? Richard Lynch wrote: On Fri, January 25, 2008 1:31 pm,

Re: [PHP] Rename

2008-01-26 Thread Nathan Rixham
vote 2 for: mv dir1/* dir2 :) backticks! Per Jessen wrote: 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

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

2008-01-26 Thread Per Jessen
Richard Lynch wrote: 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

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

2008-01-26 Thread Nathan Rixham
I posted you a short script on this thread at 04:07 GMT today that'll get you multithreading (via cli) - but even then you can shell exec that cli script from apache.. Per Jessen wrote: Richard Lynch wrote: On Fri, January 25, 2008 3:35 am, Per Jessen wrote: I have a website where some of

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

2008-01-26 Thread Per Jessen
Nathan Rixham wrote: I posted you a short script on this thread at 04:07 GMT today that'll get you multithreading (via cli) - but even then you can shell exec that cli script from apache.. Yeah, I noticed, thanks. The thing is - once pcntl_fork() is added to the mix, it's getting a little

Re: [PHP] Rename

2008-01-26 Thread Nathan Nobbe
On Jan 26, 2008 3:52 AM, Nathan Rixham [EMAIL PROTECTED] wrote: vote 2 for: mv dir1/* dir2 its nice, but its platform dependent. -nathan

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

2008-01-26 Thread Per Jessen
Richard Lynch wrote: Is it really going to help anything to slam the database with 3 X queries instead of just letting it finish one before you hit it again? You have a VERY good chance of just thrashing MySQL server instead of actually gaining any performance. It's an 8-way box with 8Gb

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

2008-01-26 Thread Per Jessen
Richard Lynch wrote: Process forking has EVERYTHING to do with thread safety. Whatever is going to go wrong in a threaded environment is going to also go wrong when you fork the process, almost for sure. Forking a process and creating a thread are really two very different concepts (from a

Re: [PHP] Rename

2008-01-26 Thread Per Jessen
Nathan Nobbe wrote: On Jan 26, 2008 3:52 AM, Nathan Rixham [EMAIL PROTECTED] wrote: vote 2 for: mv dir1/* dir2 its nice, but its platform dependent. Which surely is not that much of a drawback? (well, the OP didn't mention it anyway). /Per Jessen, Zürich -- PHP General Mailing

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

2008-01-26 Thread Per Jessen
Richard Lynch wrote: 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

[PHP] Printing Question

2008-01-26 Thread Peter Jackson
OK this is very general. Whats the best way to do formatted printing via php? In my case I have a postgre database that I connect to with a php(naturally seeing as this is the php list). My aim is to convert an Access db to php/postgre. In this access db there are several reports that

Re: [PHP] Printing Question

2008-01-26 Thread Floor Terra
On Jan 26, 2008 1:03 PM, Peter Jackson [EMAIL PROTECTED] wrote: Whats the best way to do formatted printing via php? You could try PDFlib(). Draw your reports to landscape formated pdf's and print them. Oh and I'm aiming for a unix/windows outcome. pdf is platform independent. I hope this

Re: [PHP] Printing Question

2008-01-26 Thread Robert Cummings
On Sat, 2008-01-26 at 15:19 +0100, Floor Terra wrote: On Jan 26, 2008 1:03 PM, Peter Jackson [EMAIL PROTECTED] wrote: Whats the best way to do formatted printing via php? You could try PDFlib(). Draw your reports to landscape formated pdf's and print them. Oh and I'm aiming for a

Re: [PHP] Exception thrown without a stack frame

2008-01-26 Thread Jochem Maas
Nathan Rixham schreef: way offf topic-ish here.. class destructors, surely they differ from the register_shutdown_function in execution style? seeing as one can echo / do a bit of jiggery pokery before the buffers close. what exactly is the difference? the problem with destructors is

[PHP] determine file-upload's tmp-filename

2008-01-26 Thread Michael Fischer
hi there, is there a way to determine the tmp-filename of a file upload while the upload is still in progress? the tmp-file is stored in /tmp and it's name is something like PHP. what i would like to do is: i want to upload a file via a html-form and while the upload is in progress

Re: [PHP] determine file-upload's tmp-filename

2008-01-26 Thread Casey
On Jan 26, 2008 3:57 PM, Michael Fischer [EMAIL PROTECTED] wrote: hi there, is there a way to determine the tmp-filename of a file upload while the upload is still in progress? the tmp-file is stored in /tmp and it's name is something like PHP. what i would like to do is: i want