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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 =
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] =
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
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
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
?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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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???
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
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
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
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
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
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
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
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
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
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
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*
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
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.
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
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
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
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/
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
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
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
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
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
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
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
75 matches
Mail list logo