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
miling when people are using an interpreted language, yet they talk really seriously about performance and optimization :-) Still, your thinking is good. > (nice domain name btw. :) ) Thanks - it's not mine though, belongs to the IEEE. /Per Jessen, Zürich -- PHP General Mailing List (ht

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= nnnn.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
m URLs into your frontend system e.g. through "/backend/" - I'm not sure how well that would fit into your current setup, though. /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
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

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

Re: [PHP] SMTP vs mail()

2008-01-12 Thread Per Jessen
han fast enough > for my needs. > > Thanks. Note - this was one call to mail(): mail(",, ..",subject,text); /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-15 Thread Per Jessen
Richard Lynch wrote: > If there's any way to re-configure the MTA to queue the messages for > later sending, that would save you a lot of overhead on the PHP end... The MTA will always queue the messages - well, that is certainly the case for postfix. /Per Jessen, Zürich --

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Per Jessen
Adam Williams wrote: > I'm having users enter dates in MM-DD- format. is there a way to > check if what they have entered is invalid (like if they enter > 1-15-2008 instead of 01-15-2008) ? A regular expression perhaps? /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Per Jessen
e date field with a simple javascript validation (using a regex) at entry time followed by a semantic check that the given day exists in the given month/year. Of course, if you'd rather not use javascript, you could validate the whole thing after POST. /Per Jessen, Zürich -- PHP General M

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Per Jessen
Daniel Brown wrote: > By only doing JavaScript validation, Just in case - I wasn't suggesting only doing javascript validation. I think I said a simple javascript validation _followed_ (as in at POST-time) by a semantic check. For which checkdate() seems pretty optimal. /Pe

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Per Jessen
ckdate() sounds like just the thing. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Per Jessen
|| > !preg_match("/^(\d{4})$/", $dateexplode[2],$data3)) > { > die ("you have entered an invalid date"); > } > > so if the person enters 01-15-2008 its fine, but 1-15-2008 dies. Running three regexes is a bit much when one is enough: /^([0-9]{2})-([0-9]{

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Per Jessen
onsider normal download pages for times. Might this be a name-server issue? For whatever reason the first invocation waits for a time-out, which could take a while, but the second gets an near-immediate response as the negative answer is now cached. /Per Jessen, Zürich -- PHP General Mailing Li

Re: [PHP] Scripts are fast locally, but slow on remote server

2008-01-15 Thread Per Jessen
Dave M G wrote: > Per Jessen, > > Thank you for responding. > >> Might this be a name-server issue? > > Maybe, but I don't think so. The reason I suspect that is not the case > is because I can go first to a .html page on the server, and it loads > up quickly

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-16 Thread Per Jessen
undefined function snmp_set_valueretrieval() in http://il.php.net/manual/en/ref.snmp.php "In order to use the SNMP functions on Unix you need to install the » NET-SNMP package." "Now compile PHP --with-snmp[=DIR]." /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-16 Thread Per Jessen
s >> is my build info: >> $ php -v >> PHP 5.2.1 (cli) (built: Nov 28 2007 23:14:55) > > You can check at http://xlr.php.net but I suspect that it's too "new" > to be in your version of PHP. According to the manual, it's supported since php 4.3.3. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function-return-array idea

2008-01-16 Thread Per Jessen
t; Let's look further then this small example. > > echo $object->fetchObjects()[0]->method(); > ?> Yeah, I like the idea. I've often used that style out of habit, only to have to revert to assigning the result to a variable etc. I don't know why it isn't

Re: [PHP] PHP array entries max limit

2008-01-17 Thread Per Jessen
ys, memlimit 512M. Attempt#3 - 2958 keys, memlimit 2G. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-16 Thread Per Jessen
Per Jessen wrote: >> You can check at http://xlr.php.net but I suspect that it's too "new" >> to be in your version of PHP. > > According to the manual, it's supported since php 4.3.3. I've just checked one of my systems that is still running 4.3.9

Re: [PHP] Re: Match anything between two " that is not a " exceptif it is escaped...

2008-01-17 Thread Per Jessen
Max Antonov wrote: > (what mean abbreviation OP? can send direcly to my mailbox) Original Poster. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hashes and character encodings

2008-01-17 Thread Per Jessen
Naz Gassiep wrote: > When passing strings to md5() or sha1() do the strings get coerced to > utf8 for hashing, or does that not matter? No and no. > Does anyone have a URL that comprehensively deals with this issue? There is no issue. /Per Jessen, Zürich -- PHP General Mailing L

Re: [PHP] snmp_set_valueretrieval depends on what?

2008-01-18 Thread Per Jessen
(just two versions I happened to have available). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Per Jessen
rm. It eliminated comment junk when I added one to my website. Or even a simple text CAPTCHA "What is 16 divided by 4?". /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Per Jessen
ress is of a specific > format and if so then don't process the form? 1. use a regex to validate the email-address syntax 2. check that the domain exists and has an MX. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-19 Thread Per Jessen
Richard Lynch wrote: > On Fri, January 18, 2008 10:41 am, Per Jessen wrote: >> 2. check that the domain exists and has an MX. > > I believe this will foul you up... > > I *think* many domains just use their regular domain as MX if there is > no MX. We've been usi

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

2008-01-19 Thread Per Jessen
Eric Butera wrote: > > Check out this blog post: > http://www.tagarga.com/blok/on/070116 I can't believe someone actually bothered writing this up. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-01-19 Thread Per Jessen
Jochem Maas wrote: > Per Jessen schreef: >> Eric Butera wrote: >> >>> Check out this blog post: >>> http://www.tagarga.com/blok/on/070116 >> >> I can't believe someone actually bothered writing this up. >> > > why? not everyone

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

2008-01-19 Thread Per Jessen
By participating on a public mailing list, you accept that your postings and your email-address may be essentially be sent to all and sundry. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-01-19 Thread Per Jessen
Nathan Nobbe wrote: > On Jan 19, 2008 1:47 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > [snip] > regarding configuring mail clients to omit the senders address in the > reply, well, this is one of those things that you just cant expect > every user to do. Not even you

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

2008-01-20 Thread Per Jessen
Nathan Nobbe wrote: > i didnt see the option in gmail; but if you know where it is or how to > set it up in gmail, i will happily take the 2 seconds to enable it. Sorry, I don't use gmail. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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

2008-01-22 Thread Per Jessen
*know* it's an international list, so you *know* you cannot expect > your local laws to apply. If anything the applicable law is most probably that of the country in which the mailserver is located (USA), but local law may perfectly well apply to individual posters. /Per Jessen, Zürich -- PH

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Per Jessen
he namespace value into a PHP variable? I would probably look at the namespace-uri() function in XSLT, but I don't know if you're using XSLT? /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   >