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:

[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 mak

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 t

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 aimin

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 thi

[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 requ

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 M

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] 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] 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] 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] 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 t

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

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

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 tha

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, Jo