Re: [PHP] Re: Something you can do with AJAX + PHP as well

2007-10-10 Thread Per Jessen
tedd wrote: > At 3:27 PM +0200 10/10/07, Per Jessen wrote: >>Colin Guthrie wrote: >> >>>> What do you think of this? >>>> >>>> http://webbytedd.com/b/timed-php/ >>>> >>>> It's a combination of using both ajax

Re: [PHP] Re: Something you can do with AJAX + PHP as well

2007-10-11 Thread Per Jessen
esn't require any ajax either. That was my main point. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Generating PDF files (XSLT, ps, XSL-FO, FOP, etc)

2007-10-11 Thread Per Jessen
r data into XML just to be able to XSLT on it. OTOH, when your data is hierarchical/recursive in nature, XSLT is brilliant! /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need a hint how to use an anker on the next page

2007-10-19 Thread Per Jessen
"#anchor". /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thoughts on multiple servers

2007-10-23 Thread Per Jessen
ook at Linux Virtual Server, I'm not certain it'll help though. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Proposal of DOM non-standard method: DOMDocument::loadCharacterEntitiesFromDtd($path)

2007-10-23 Thread Per Jessen
from the PHPH4 XSLT implementation (with saxon) to PHP5, and I seem to recall having problems with getting entities defined. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is the point of prepare?

2007-10-29 Thread Per Jessen
'22',$title,$artist); It's a performance measure - by preparing sql statements, you save on the parsing and the network traffic. Unless you're doing lots of database transactions per second, I doubt if you'll notice it. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] moving over to php 5

2007-10-29 Thread Per Jessen
or php4 will be dropped at the end of the year so hosts will > be forced to make the upgrade at some point. What will force them to do so? Lack of support is unlikely to have any effect. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] moving over to php 5

2007-10-29 Thread Per Jessen
in the last period or the differences in price are absolutely > minor. I don't see a reason to stay with one that only supports php4. Nobody suggested that you do - especially if you need PHP5. If however you don't have a specific requirement for PHP5, why would you move? /Per Jesse

Re: [PHP] moving over to php 5

2007-10-30 Thread Per Jessen
Larry Garfield wrote: > On Monday 29 October 2007, Per Jessen wrote: >> Cristian Vrabie wrote: >> > Hmm 117,223 hosts with php4 only support. Did you actually checked >> > how many have php5 support? Many more. >> >> There are 178.112 hosters that have PHP5

Re: [PHP] moving over to php 5

2007-10-30 Thread Per Jessen
developer benefits from something being "more standard" and more secure, then he'll change. If you want to force someone to change, you remove the interface (after having marked it deprecated for a while). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php

Re: [PHP] PHP installation

2007-10-30 Thread Per Jessen
ike you need to install libz. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] moving over to php 5

2007-10-30 Thread Per Jessen
Larry Garfield wrote: > The sooner you convince new PHP programmers to do things in a > naturally more secure way, the fewer bugs they will accidentally > introduce later. And how do you go about convincing them? That's still the key question. /Per Jessen, Zürich -- PHP G

Re: [PHP] PHP installation

2007-10-30 Thread Per Jessen
gz.so.1 -> /lib/libz.so.1* Your libz is in the right place, but check your symlinks. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail function doesn't work

2007-11-05 Thread Per Jessen
mail-server otherwise work? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Memory Allocation Error

2007-11-06 Thread Per Jessen
et_contents. This used to work fine in PHP 4 until I upgraded to > PHP 5. > > Any ideas? If you need to keep a 120Mb file in core at any point in time, you'll need the memory. Either adjust the memory-limit, or change your code to process the file in chunks/lines/bytes.

Re: [PHP] gzuncompress() Not Working.

2007-11-06 Thread Per Jessen
n will return an error if the uncompressed data is more than the optional parameter length. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I make a process run in background?

2007-11-06 Thread Per Jessen
te a PHP CLI script, then append '&' to detach when you start it. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4.4.7 configure and sablotron version issue

2007-11-06 Thread Per Jessen
at the xslt/sablotron stuff was never ported to PHP5 - you'll likely end up having to migrate anyway. We did. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Chinese input character count

2007-11-06 Thread Per Jessen
count the numbers of # and had the amount of Chinese > characters. What do you mean by "type in a form directly" ? I also use UTF8, and when I store data from a form, they are in UTF8 in my database. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Performance of PHP

2007-11-06 Thread Per Jessen
Merlin wrote: > Hi there, > > I am doing some image cropping of about 40.000 files with php. If you're worried about performance, maybe why not use mogrify from ImageMagick? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Can I make a process run in background?

2007-11-06 Thread Per Jessen
Jim Lucas wrote: > This method will work until you log out, when you log out all your > background processes are killed. man nohup. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Allowed path in VHosts

2007-11-06 Thread Per Jessen
Alberto García Gómez wrote: > Is there some directive that configure a vistual host to only see > inside a path eg.: /var/www/users/user1 > An apache virtual host will normally not look outside its DocumentRoot, but you can allow it do so. /Per Jessen, Zürich -- PHP General Mai

Re: [PHP] Can I make a process run in background?

2007-11-06 Thread Per Jessen
designed to do was it? I would tend to agree with you, but PHP has been made to do a lot of things it was never really designed for. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I make a process run in background?

2007-11-06 Thread Per Jessen
Robert Cummings wrote: > On Tue, 2007-11-06 at 19:33 +0100, Per Jessen wrote: >> Jason Pruim wrote: >> >> > Actually, what you are looking for is an eggdrop bot which is >> > written in TCL. PHP in my humble opinion was not designed to handle >> > s

Re: [PHP] gzuncompress() Not Working.

2007-11-06 Thread Per Jessen
ng that you've got compressed data in one format by Python that cannot be uncompressed by PHP because it expects another format? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gzuncompress() Not Working.

2007-11-07 Thread Per Jessen
. If your work-around works, well, fine. Personally I'd dig a little deeper. I would positively hate having that kind of crud in my production code. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] re-post (unanswered) Tables, flash and text

2007-11-07 Thread Per Jessen
Brad wrote: > In the code, I can see where to widen the table. > One would think that php would fill the dead space if the is nothing > blocking it. > But it is not. Like Jochem already said, your question is probably best asked on an html mailing list. It's not really a

Re: [PHP] re-post (unanswered) Tables, flash and text

2007-11-07 Thread Per Jessen
the problem/code a bit, then perhaps ask the question again. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gzuncompress() Not Working.

2007-11-07 Thread Per Jessen
algorithm? I would have thought they both used the same zlib. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html parsing

2007-11-08 Thread Per Jessen
re > either. > > So.. I figured.. I either had to parse it in php myself OR convince > the apache server to parse it for me. Absolutely. Why are you parsing it yourself anyway - what value are you adding? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image manipulation on the fly

2007-11-08 Thread Per Jessen
, you're doing CPU-intensive stuff in an interpreted language - it'll never be efficient unless you write it in C or similar. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP editor

2007-11-11 Thread Per Jessen
Frank Lopes wrote: > Being very new to PHP (empahsis on VERY...), I wonder what most of you > use to develop in PHP? Personally I use vi or kate. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating ZIP-File with password

2007-11-12 Thread Per Jessen
command line utility and the '-P' option. However, the zip password mechanism does not really provide much in terms of protection - if you really need the encryption, I would look elsewhere. (PGP, X509). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] CLI spinner processing

2007-11-14 Thread Per Jessen
cessor does some three billion per second. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Segfault strangeness

2007-11-14 Thread Per Jessen
olutely nothing has changed on this system? > Thanks for any input that anyone may have as this one is stumping me > at the moment. The only possibility that I can even remotely think of > is that Ubuntu started bundling AppArmour and that is playing a role. You've changed the syst

Re: [PHP] Segfault strangeness

2007-11-14 Thread Per Jessen
Any chance of rolling back whatever updates you've ap0plied to PHP? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CLI spinner processing

2007-11-15 Thread Per Jessen
Daevid Vincent wrote: > Plus it looks freakin' slick as hell and gives the appearance that I > am smarter than I am. *grin* Definitely a point worth making :-) >> besides, modulus 8 is done by one single instruction - of >> which a modern processor does some t

Re: [PHP] I need help handling form posting

2007-11-15 Thread Per Jessen
Jon Westcot wrote: > Is there a way that I can intercept the click of the "Upload" > button, have it update a field (probably a hidden one) with a > date/time stamp, and then have that value included in the $_POSTed > values? Sure, javascript is the answer. /Per

Re: [PHP] I need help handling form posting

2007-11-15 Thread Per Jessen
Per Jessen wrote: > Jon Westcot wrote: > >> Is there a way that I can intercept the click of the "Upload" >> button, have it update a field (probably a hidden one) with a >> date/time stamp, and then have that value included in the $_POSTed >> val

Re: [PHP] I need help handling form posting

2007-11-15 Thread Per Jessen
actually began.", so the timestamp from the local machine is probably the best choice. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Per Jessen
ash) or a single (escaped double qoute, i.e. syntax error)? The syntax colouring shouldn't change the code, only the colours. BTW, your site doesn't react well to navigation by keyboard. I picked Code, then Snippets, then tried Alt-CursorLeft. /Per Jessen, Zürich -- PHP General

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread Per Jessen
_mime_boundary.$eol; > $headers .= "Content-Type: text/html; charset=iso-8859-1".$eol; > $headers .= "Content-Transfer-Encoding: 8bit".$eol.$eol; > $body = "http://www.zoneofsuccessclub.com\";>link \n"; You have a MIME boundary where it doesn't belong. MIME boundaries are for the body, not the header. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-newbie Question .... streams ...

2007-11-15 Thread Per Jessen
time. Assuming you've a URL along the lines of this: .php?file= .php: /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cannot send a hyperlink

2007-11-15 Thread Per Jessen
n: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n"; $headers .= "Content-Transfer-Encoding: 8bit".$eol; $body = "http://www.zoneofsuccessclub.com\";>link \n"; mail($email, $subject, $body, $headers); /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cannot send a hyperlink (resent)

2007-11-15 Thread Per Jessen
n: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n"; $headers .= "Content-Transfer-Encoding: 8bit".$eol; $body = "http://www.zoneofsuccessclub.com\";>link \n"; mail($email, $subject, $body, $headers); /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How does the PHP website colorize the code snippets?

2007-11-15 Thread Per Jessen
Daevid Vincent wrote: > I want to put a code snippet section on my site and want to colorize > them like the user comments on any PHP site page. > > http://www.php.net/manual/en/language.operators.arithmetic.php > > What's the easiest way to do that? php -s yourcode.ph

Re: [PHP] Converting user input for XML-validation

2007-11-16 Thread Per Jessen
Ralph Kutschera wrote: > Is there a standard function in PHP to convert any string for usage > with XML? In the example the string should become "< thats a > bracket". You could just use CDATA in XML, but otherwise you might want to look at html_entities(). /Per Jessen,

Re: [PHP] Semi-newbie Question .... streams ...

2007-11-16 Thread Per Jessen
place, a simple search/replace will do fine. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CURL efficiency?

2007-11-16 Thread Per Jessen
Michael McGlothlin wrote: > I make use of CURL to talk to a back-end system and I'm calling it > several times per requested page and there are several page requests a > second. Is there anything I can do to make this process more > efficient? Does keep alive work? Do I need

RE: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Per Jessen
emails with PHP or bash or whatever - what's the added value? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Per Jessen
r: header. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bank query and curl

2007-11-18 Thread Per Jessen
t;>> account information! I suggest you change banks. > > Could it be that I try to use if a customer has paid? > WHY would that be wrong? That would be perfectly alright - in fact, my bank offers a transaction list for download for just that purpose. /Per Jessen, Zürich -- PHP Gen

RE: [PHP] two small issues with php mail

2007-11-19 Thread Per Jessen
email without listing them explicitly in to: or cc:. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Yes, here we go again! (was: two small issues with php mail)

2007-11-20 Thread Per Jessen
iously new to the game, so no better time to learn some netiquette. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
Brad wrote: > Thought it was a support forum! > Support usually does not mean "piss off". > Brad, another reading suggestion for you: http://www.catb.org/~esr/faqs/smart-questions.html /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
Jim Lucas wrote: > remember, he is wanting to setup SMTP auth. So he will not be using > PHP's mail() function. > > He needs to talk directly to the SMTP server. Uh, I guess I must've missed that bit. Seems a tad complicated for sending an email ... /Per Jessen,

RE: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
y is just another email which doesn't list the recipient in the To: header, so you just send your email twice: mail( to-addr, subject, message, headers); mail( bcc-addr, subject, message, headers); /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
Andrés Robinet wrote: > It can't be that hard to send out a list of > emails with CC / Bcc headers!!! You wouldn't have thought so, but ... /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
it just as easy to format the email-text and pipe it to "sendmail -oi". /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
Brad wrote: > Where should the bcc go if not the header? > In PHP the mail() function does indeed appear to support a bcc: "header", but I'm assuming it will be removed before the email is passed to sendmail. /Per Jessen, Zürich -- PHP General Mailing List (ht

Re: [PHP] two small issues with php mail

2007-11-20 Thread Per Jessen
Stut wrote: > Børge Holen wrote: >> OMG the top posting on this freakin' issue is a headache > > Whereas removing all of the previous message is like a sensual > massage. > Pure stress-relief. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] getenv ... i think

2007-11-22 Thread Per Jessen
Steven Macintyre wrote: > If i take OUT the getenv if then, it works ... so i know that is where > the problem is. I didnt bother with reading all your code, but maybe you should use $_SERVER['REMOTE_HOST'] instead of the getenv() call ? /Per Jessen, Zürich -- PHP General Ma

Re: [PHP] Code Critique Please :)

2007-11-22 Thread Per Jessen
option for producing XML ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing XML with DTD

2007-11-22 Thread Per Jessen
omething like this is probably possible. You don't actually need to DTD to parse it, but it does help with the syntax-check of the contents. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File handling and different character sets

2007-11-23 Thread Per Eriksson
listing files from a ISO-8859-1 on a UTF-8 page? I haven't succeeded with this. Thank you, Best Regards Per Eriksson per.eriksson A exist ! se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Per Jessen
[EMAIL PROTECTED] wrote: > Wouldn't this be solved if the email is simply an answer to the thread > instead of a new, separate email? Yes it would. Any other suggestion (to fix the same) will most likely fail when the user cannot even work out how to reply properly. IMHO.

RE: RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Per Jessen
anything, that is the core issue we should be addressing. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Per Jessen
fix lvs raid jfs I have absolutely no objection to using it, but there's nothing de-facto standard about it. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sprintf() oddness

2007-12-01 Thread Per Jessen
Christoph Boget wrote: > Why does > > sprintf( '%.03f', 0.1525 ) > return 0.152 while > sprintf( '%.03f', 0.1575 ) > return 0.158? > > I am using PHP 4.3.11 I see the same behaviour in 5.2.4 /Per Jessen, Zürich -- PHP General Mailing List

Re: [PHP] sprintf() oddness

2007-12-01 Thread Per Jessen
Jochem Maas wrote: > Per Jessen wrote: >> Christoph Boget wrote: >> >>> Why does >>> >>> sprintf( '%.03f', 0.1525 ) >>> return 0.152 while >>> sprintf( '%.03f', 0.1575 ) >>> return 0.158? > &g

Re: [PHP] howto get .tar.gz content's filenames

2007-12-04 Thread Per Jessen
e search engine is restricted to premium users." /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to create multipart e-mail bodies?

2007-12-07 Thread Per Jessen
Sándor Tamás (HostWare Kft.) wrote: > But my mail client can't show any part of it. When I take a look at > the source code, I can see that it recognise the boundaries, but > somehow for some reason it doesn't show it. Does your email header also include this: MIME-Version

Re: [PHP] Mysqli support - test or complain?

2007-12-10 Thread Per Jessen
> should have mysqli because that's the currently preferred way of doing > things, and therefore I should contact the web host and ask that they > install it, or I find a different host. > > Which assumption should I be proceeding with? Find a provider/hoster that meets your re

Re: [PHP] Mysqli support - test or complain?

2007-12-10 Thread Per Jessen
d call the appropriate API. You'd obviously check the mysqli availability at startup, then store the status somewhere for your wrapper to query. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysqli support - test or complain?

2007-12-10 Thread Per Jessen
Richard Heyes wrote: > another. This is one of the reasons abstraction layers exist. Which brings us to alternative #3 - odbc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Per Jessen
bruce wrote: > if you really want to.. you can hook various devices up to your > serial/parallel port and take specific readings, and from there > compute some really great random numbers.. That's pretty much what /dev/random does for you. /Per Jessen, Zürich -- PHP Genera

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Per Jessen
Stut wrote: > However, I'd expect a stat on that > file will be more expensive than calling extension_loaded. Difficult to say, but a stat() is cheap, especially if the inode is cached already. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Per Jessen
eading in php. Personally I'd always opt for C to write this type of thing, except for perhaps the most simple cases. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Per Jessen
. done A worker thread: initialize do until terminated wait for work accept() process work done It wouldn't be too difficult to have threads dynamically started and stopped depending on the amount of work queued up. /Per Jessen, Zürich -- PHP General Mailing List (http://www.p

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Per Jessen
t needs to work with two different APIs is poor enough, using a session variable for keeping a status won't make it much worse. So what if the status is server-scope, yet kept in user-scope. In particular if the app already uses session storage. /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Per Jessen
Have you tried stracing it to see what's really happening when the load goes that high? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Per Jessen
Robert Cummings wrote: > On Tue, 2007-12-11 at 18:14 +0100, Per Jessen wrote: >> I have been trying hard not to join this thread, but ... apart from >> the principle, what's _really_ so poor about it? Having to write >> application code that needs to work with

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-12 Thread Per Jessen
but sometimes it's very obvious what's happening. Which doesn't mean it's also easy to fix, but it could give you a clue. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-12 Thread Per Jessen
_one_ of the APIs and choose your hoster >> accordingly. > > Well if you write unit tests, having the unit tests applied to one or > the other is the same amount of work since it just requires a switch > to change between mysql and mysqli. Regardless of how you do it, it's twi

Re: [PHP] how to "Harmonic Mean" manual

2007-12-14 Thread Per Jessen
LKSunny wrote: > i know it can make simple function, if have Statistics knowledge... > I don't think you need to know much about statistics - AFAIK, the harmonic mean of a group of numbers is simply the reciprocal of the 'normal' mean: harmonic_mean(3,4,5,6) = 1/mean(3

Re: [PHP] how to "Harmonic Mean" manual

2007-12-14 Thread Per Jessen
Per Jessen wrote: > I don't think you need to know much about statistics - AFAIK, the > harmonic mean of a group of numbers is simply the reciprocal of > the 'normal' mean: > > harmonic_mean(3,4,5,6) = 1/mean(3,4,5,6) Ignore that. /Per Jessen, Zürich --

Re: [PHP] php code compiles, produces good html output, but crashes when put through browser

2007-12-16 Thread Per Jessen
itle displays, then the browser hangs, it > should be something on the client-side, right? It _could_ be, but I doubt it. The browser/client might be "hanging" waiting for the server to finish. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] PRG pattern - how to implement a "load page using GET"

2007-12-17 Thread Per Jessen
number of messages in the archives here > and in google searches. Personally, I try to avoid the situation where you might get a double-POST if the user decides to do a reload/refresh. Which means processing the POST-request, but finish it off with a 303 redirect. /Per Jessen, Zürich

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-20 Thread Per Jessen
René Fournier wrote: > I'm really not sure what to try next. ps -aux shows MySQL as hogging > the CPU, not PHP or Terminal: When this happens, do a 'SHOW PROCESSLIST' in mysql to see what it's doing. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.n

Re: [PHP] Delete rows from database

2008-01-05 Thread Per Jessen
e" button. How do I do that? You process the form that is (presumably) submitted when the user hits "Delete". In your processing you collect the row-ids or something else you can use in the : "DELETE FROM table WHERE ". /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] client time zone?

2008-01-06 Thread Per Jessen
get the requesting host's > time zone so I can offset the servers clock value correctly? I think you'll need to use javascript. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] utf-8 in $_POST

2008-01-08 Thread Per Jessen
fine, but the server overrode me settings in the header. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] global address collection

2008-01-08 Thread Per Jessen
might be using it. Anything you can do to increase the > usability of your site should be done IMO. Trying to think of (and maybe even accommodate) what non-standard and third-party tools your potential user may or may not have installed, goes a bit too far, IMO. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Browser cache setting

2008-01-11 Thread Per Jessen
Richard Heyes wrote: > Hi, > > What's the default setting for caching in browsers? With IE is it > "Automatically" as I think it is? And what about other browsers? Some > equivalent? I'm pretty certain it's automatic in most. I think Firefox has a def

Re: [PHP] Re: SMTP vs mail()

2008-01-11 Thread Per Jessen
k up from. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Per Jessen
ng delivery to a local MTA (which will subsequently do the remote delivery), is speed really important? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMTP vs mail()

2008-01-12 Thread Per Jessen
to MTA. If you need to finish the script fast (in order for some user-intercation to continue perhaps), I would would just detach the script and carry on. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SMTP vs mail()

2008-01-12 Thread Per Jessen
d idea for local connections. That is why > under Linux/Unix there are Unix domain sockets which are basically > pipes for inter-program communication. TCP connections are just fine for local connections. And on some platforms/setups they're even faster than Unix domain sockets. /Per

Re: [PHP] SMTP vs mail()

2008-01-12 Thread Per Jessen
delivery to target MTA. Hardware was a plain P4, 2.4GHz running openSUSE. You might be able to beat cases 6-7-8 by doing direct SMTP, but I doubt if it'll be worth your effort. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >