Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
Stut wrote: Per Jessen wrote: Segfaults are a fact of life Only if you are forced to accept poor programming. I can assure you that segfaults are not tolerated in a regular production environment. Segfaults happen in test and development. I agree with you for the most part

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
T.Lensselink wrote: Would love to see the code that caused this. http://jessen.ch/files/php-problem-sep2007.tar.gz /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It's the call to virtual() that causes

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
T.Lensselink wrote: Would love to see the code that caused this. http://jessen.ch/files/php-problem-sep2007.tar.gz /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Don't really see what i has to do

RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
://bugs.php.net/bug.php?id=42666 /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
the problem. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
, no segfault. I do not have a windows box handy for testing. I'm on Linux too, so never mind Windows for the moment. So what's the difference between our two environments? Try putting something in the problem-include file to verify that virtual is doing what it's supposed to. /Per Jessen, Zürich

RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
rid of the symptoms is easy, solving the problem is not. include/require are not replacements for virtual(). virtual() creates an apache sub-request which I need for content-negotiation. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: RE: RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-14 Thread Per Jessen
that there are many differences in our environments. We are running Suse Linux, PHP 5.2.1, Apache 2.2.4. That's close though - my workstation is openSUSE 10.2, PHP 5.2.4, Apache 2.2.4. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Per Jessen
-insertRecord($insarr); //$arr[] = $data; } fclose($handle); For that sort of thing, I'd forget about PHP and just use multi-threaded C. Especially if you've got an SMP machine. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Per Jessen
wondering if there was some kind of voodoo that would speed things up a bit. Given that you've got significant IO on both sides (file in, database out), multi-threading it could work wonders. Not sure how you'd go about that in PHP though. /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] Very Large text file parsing

2007-09-21 Thread Per Jessen
Paul Scott wrote: Thanks to all for the suggestions - I now have to figure out the best way to manipulate every single record in that table (now over 6.5 million rows) to add in a field (RDBMS function in C - so much easier)... Isn't that just an ALTER ? /Per Jessen, Zürich -- PHP

Re: [PHP] Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Per Jessen
to be fast too, but we don't really process anything large in PHP. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List Help - Email Change

2007-09-21 Thread Per Jessen
Andrew Prostko wrote: I would like to change the email address this list is sending to, I sent mail to '[EMAIL PROTECTED]' but I haven't received anything back. Can anyone tell me how to do this real quick? 1. unsubscribe old address. 2. subscribe new address. Really quick. /Per

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-22 Thread Per Jessen
that pretty well. http://dev.mysql.com/doc/refman/5.0/en/query-cache.html /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-23 Thread Per Jessen
for it will not reduce the overall number of connections. The number of connections is presumably only important if we speak about the number of concurrent connections. If each query can be dealt with faster due to caching, the number of concurrent connections should drop. /Per Jessen, Zürich -- PHP

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

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

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-24 Thread Per Jessen
at the same time; simultaneous. 100 people come to your website - that's still going to be 100 connections to the database, regardless of where the results come from. But if that is one every hour for a hundred hours, your max concurrency is 1. /Per Jessen, Zürich -- PHP General Mailing List

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-24 Thread Per Jessen
server load, number of connections, caching and concurrency without talking about over how long. When you think length(now)==0, you can have an infinite number of connections. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Regex æøå email validation?

2007-09-24 Thread Per Jessen
one of you can help me anyways? Hej Søren to get it to work, you need to be in the Danish locale, otherwise æøå won't be recognised as being word-characters. In javascript, I'm not sure, but maybe you have to use UTF-8? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] Regex æøå email validation?

2007-09-25 Thread Per Jessen
, but not in the address part. If you have them in the domain, you need to convert them to punycode before you validate. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] freopen?

2007-09-27 Thread Per Jessen
Is there no freopen function in php? I need to redirect stdin to a filename - outside of a shell so I can't use a plain redirect). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] languages and PHP

2007-09-27 Thread Per Jessen
believe. setlocale() caused me all kinds of grief 2-3 years ago. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] languages and PHP

2007-09-27 Thread Per Jessen
), but I've never had to do any of the above. The mb_convert_encoding() from UTF-8 to UTF-8 doesn't seem to make much sense? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Per Jessen
Colin Guthrie wrote: Per Jessen wrote: I work almost exclusively in UTF-8 (language irrelevant), but I've never had to do any of the above. The mb_convert_encoding() fromUTF-8 to UTF-8 doesn't seem to make much sense? I agree. Provided you HTML is dished out with UTF-8 in the doctype

Re: [PHP] Re: languages and PHP

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

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Per Jessen
my server just because I get KOI8-R when I expected UTF-8 :-) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: languages and PHP

2007-09-28 Thread Per Jessen
not authenticated, you're not getting anywhere to start with. If you somehow manage to bypass that, and attempt to submit data I don't expect, my priority is the survival of my application, nothing else. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: languages and PHP

2007-09-28 Thread Per Jessen
Edward Vermillion wrote: On Sep 28, 2007, at 1:05 PM, Per Jessen wrote: Ed, your question was a good one, but so was my answer. In my case, I don't cater to an open community, but to a closed one. If you're not authenticated, you're not getting anywhere to start with. If you somehow

Re: [PHP] 500 Internal Server Error

2007-09-30 Thread Per Jessen
Francisco Frost wrote: I'm getting an error with my PHP, I'm running Apache 2.2.6 and every time I try to access a PHP page on the Apache server, it says HTTP 500 Internal Server Error, can anyone help? Check your apache error logs. My guess is that PHP is making apache segfault. /Per

Re: [PHP] Re: languages and PHP

2007-10-02 Thread Per Jessen
Colin Guthrie wrote: UTF-8 works by using special bits at the MSB end of the byte to say, I can't represent this character in one byte, I need to use 2 bytes (or 3 bytes) (and maybe also 4? can't remember of the top of my head). Yep, a UTF8 character is 1 to 4 bytes. /Per Jessen, Zürich

Re: [PHP] Optimized PHP

2007-10-03 Thread Per Jessen
Zoltán Németh wrote: and anyway, the microseconds you could win with this really don't count that much to be worth the effort... find real bottlenecks and optimize against those. And finally, if you're worried about microseconds, why are you using an interpreted language? /Per Jessen

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Per Jessen
. Any ideas on how to fix this problem or a more elegant solution to my huge data needs? IF there is a problem in using session storage, you could just use your own file cache instead. Or you could the database query cache, depending on how much data you're talking about. /Per Jessen, Zürich

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-04 Thread Per Jessen
on the web-server. If you do the query once, then store the result in a file, and then keep reading that file for the next cachetime seconds, the file will most probably remain in memory, so accessing it will be fast and without IO. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

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

2007-10-05 Thread Per Jessen
to be authorized to install on a low-cost hosting server. There is more than one way to skin a cat. I generate PDFs in batch using an OpenOffice document template (which is XML anyway), merge that with my XML data using xalanc, and then openoffice to create the PDF. /Per Jessen, Zürich -- PHP

Re: [PHP] Sending lots of emails - 2 choices - choose the best one

2007-10-07 Thread Per Jessen
email email email email . . . . . etc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for help with a complex algorithm

2007-10-10 Thread Per Jessen
: http://en.wikipedia.org/wiki/Knapsack_problem I've never heard of it either, but it sounds a lot like the travelling salesman problem? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-10-10 Thread Per Jessen
for about three years - ajax doesn't improve on the basic functionality. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-10-11 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 and php together. I'd say overkill for the end result (could be done in plain Javascript without any Ajax

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

2007-10-11 Thread Per Jessen
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-12 Thread Per Jessen
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
. /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
. /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
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] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
, whether dynamically from php or via an apache config. And undoubtedly there equally many poor reason for using redirect and/or rewrite. (they're very different things, by the way). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Aschwin Wesselius wrote: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the post URL. (which would then warn him about re

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
looks like this: if ( $_POST ) { // do POST processing header(303 thankyou.html). exit } // regular page starts here // process GET (if any) // database stuff // display page. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Aschwin Wesselius wrote: Per Jessen wrote: I'm having difficulties following you - a plain 303 redirect to a Thank you page shouldn't cause all of that. It's an HTTP reply with the 303 and the new URL, followed by a single URL request from the browser. OK. I think I know how other

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Per Jessen wrote: My typical setup for a form-page probably looks like this: if ( $_POST ) { // do POST processing header(303 thankyou.html). exit } If I wanted the user back on the same form page, but still with a thank you message, I'd still do a 303, but use

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Per Jessen
. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Per Jessen
requests. I see lots of conditional GETs instead. BTW, why does the browser do this for objects it has already cached? (assuming they're fresh/not expired) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Per Jessen
Stut wrote: On 19 Mar 2008, at 09:54, Per Jessen wrote: BTW, why does the browser do this for objects it has already cached? (assuming they're fresh/not expired) Because by default most web servers don't add expiry headers, so it's up to the browser. My server does add expire headers

Re: [PHP] Quick email address check

2008-03-26 Thread Per Jessen
to bounce etc. I'll just deal with this separately. Is there a better way than simply sending a test email to see if it bounces? Do an MX lookup on the domain, maybe attempt a brief connection to it. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] auto generated PDF

2008-03-30 Thread Per Jessen
. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phone number allocation manager

2008-04-01 Thread Per Jessen
number world does not have the same rule set. Actually, it has no rules. Has anybody built, heard of, or used a tool like this? Hi Jim - it sounds like a plain database to me, but surely you've got one of those already. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] phone number allocation manager

2008-04-01 Thread Per Jessen
, everything else attributes of the number. /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 possibly cache something and the theory of better performance / better speed

2008-04-02 Thread Per Jessen
Joey wrote: OK now, getting greedy I want to take it to another level. Instead of having to read the folder for images every time, why not read the image names into a file so that we can maintain therbey caching the list. Your filesystem cache will do that for you anyway. /Per Jessen

Re: [PHP] preg_replace Question

2008-04-04 Thread Per Jessen
manual and I appear to be using preg_replace correctly. From the manual: replacement may contain references of the form \\n or (since PHP 4.0.4) $n, with the latter form being the preferred one If you use $amount ='\$524.00' instead of '$524.00', it'll work. /Per Jessen, Zürich -- PHP General

Re: [PHP] limit mail() function

2008-04-08 Thread Per Jessen
have if i want to limit this function... can i disable the function only for some users? may be i can set a rate limit for it? Check your mail-server config - rate limits and such are probably best done there. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] limit mail() function

2008-04-08 Thread Per Jessen
binary. Pardon me, but that's one kludgy idea - postfix has rate-limitation facilities you can use for this. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
vester_s wrote: Hi, Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? I'm not sure about getting all the users, but you could create a connection using plain socket programming. NNTP is a pretty simple protocol. /Per Jessen, Zürich

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
. Actually, I have no idea what the potential dangers are. Using up all available memory is the only real risk. It might lead to swapping which in turn will most likely increase response times. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] How to get the HTTP authenticated user name?

2008-04-16 Thread Per Jessen
Georgios Kasapoglou wrote: Hi all, I'm new to the list. I'm running on Apache 2 and I want to use the mod_auth_basic module, which authenticates the user. But I need the username to use it in my php script. How can I? $_SERVER[] might have it. /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 6:07 AM, Per Jessen [EMAIL PROTECTED] wrote: Actually, I have no idea what the potential dangers are. Using up all available memory is the only real risk. It might lead to swapping which in turn will most likely increase response times

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 9:57 AM, Per Jessen [EMAIL PROTECTED] wrote: Daniel Brown wrote: And on a shared host, the likelihood of increased billing for overuse of memory. Except a shared hoster would probably not permit anyone to change php.ini :-) I

Re: [PHP] Memory limit of 8 MB not enough

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 10:36 AM, Per Jessen [EMAIL PROTECTED] wrote: I'm curious - why? To me php.ini seems to be exactly the kind of thing you wouldn't the user to fiddle with - in a shared environment. To allow flexibility for the user, and give them

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
newsreader, you'll no doubt find a place to tick authentication required and to enter userid and password. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Per Jessen
Daniel Brown wrote: On Wed, Apr 16, 2008 at 2:42 PM, Per Jessen [EMAIL PROTECTED] wrote: If required, authentication is done via NNTP. The nntp servers can be set up to require authentication for some or more groups, for instance for closed user communities. If you check your

Re: [PHP] PHP with NNTP?

2008-04-17 Thread Per Jessen
. So is it possible for getting those list? You can always check the news-server logfiles. I think that's probably the best place to get some user/usage information. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] French characters not displayed correctly

2008-04-17 Thread Per Jessen
by the browser if an http header with a Content-Type has already been sent. If you bring up the page in Firefox, and hit Ctrl-I, I'll bet it says the page is being displayed in ISO-8859-1 (well, not UTF8 at least). I would check the default_charset setting in php.ini. /Per Jessen, Zürich -- PHP

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
work. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
with the default_charset setting in php.ini. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FRench characters not displayed correctly

2008-04-17 Thread Per Jessen
prefer it in the virtual host config personally :) Ah yes, that's what I meant of course. (I actually do everything in UTF8 anyway). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Per Jessen
lots of timeouts. My new daemon takes up less than 10% CPU under the same load and I've not seen a timeout yet. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Per Jessen
or twice a year, it probably wouldn't matter if it ran or month or two. Personally, I rewrite in C when my PHP (or other script language) script exceeds a thousand lines. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP console script vs C/C++/C#

2008-04-19 Thread Per Jessen
algorithm w/o external dependencies, such as db calls, or calls to remote systems will run faster in java / c / c++ and others than it will in php. An algorithm doesn't have external dependencies - but implementations might. /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] PHP console script vs C/C++/C#

2008-04-19 Thread Per Jessen
, but bubblesort might be one such example. Also true. Quick sort is such an example - in general it does really well, but for certain data sets, it doesn't. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cron php refresh

2008-04-20 Thread Per Jessen
the data from the table, put it into a mail() command and mail. Why not just send the notification at the time of the event? (I assume you update the database at the time of the event). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Per Jessen
disagreeing about the meaning of algorithm - an algorithm does not have an absolute performance until it's been implemented - in some of other language and machine. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cron php refresh

2008-04-20 Thread Per Jessen
Jeffrey wrote: Per Jessen wrote: Jeffrey wrote: I'm working on an application that includes e-mail notifications of certain events. Because the application will have hundreds or thousands of users, I've designed it so that e-mail notifications are saved to a MySQL table. Then a regular

Re: [PHP] Cron php refresh

2008-04-20 Thread Per Jessen
Børge Holen wrote: Is the MTA operational on the server? if so, forget mailing with php and rather use php to access the mta. Yeah, that is what mail() does - it calls sendmail. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Large XML manipulation within PHP

2008-04-24 Thread Per Jessen
for handling a large amount of XML data? xalan. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] French character string encoding

2008-04-24 Thread Per Jessen
character? Your #65533; didn't display properly at all - I tried ISO-8859-1 and UTF8. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] French character string encoding

2008-04-24 Thread Per Jessen
Angelo Zanetti wrote: Your #65533; didn't display properly at all - I tried ISO-8859-1 and UTF8. /Per Jessen, Zürich Hi Per that’s the problem I am having, this is how data from a project I inherited is saved in the DB and I cant get it to show. Hi Angelo what's the charset of your

Re: [PHP] reading Qmail boxes

2008-04-25 Thread Per Jessen
script under apache, but with an appropriate userid in cli mode. If you need the results presented by apache, maybe think of using suexec(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mbstring vs iconv - Any existing benchmark?

2008-04-25 Thread Per Jessen
is of zero concern to me. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMS Cellular Text Messaging

2008-04-28 Thread Per Jessen
Al wrote: Anyone enlighten me about sending SMS text messages via sendmail or or just php mail()? I've been Googling, etc. and everything I've found so far, comes up with for-fee services. See smsclient. We've been using that for three or four years. /Per Jessen, Zürich -- PHP General

Re: [PHP] SMS Cellular Text Messaging

2008-04-29 Thread Per Jessen
smsclient. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XHTML/CSS problem

2008-05-03 Thread Per Jessen
jeroen vannevel wrote: have a look at www.speedzor.com/woopsie.php, and please tell me where my problem is. i'm stuck at this for hours by now :p thanks in advance, jeroen And the problem is? Your page looks fine to me. /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] Scripts slowing down?

2008-05-13 Thread Per Jessen
daemon? Restarting sendmail has no effect on these scripts. Restarting the scripts makes them run like hell for some hours, until the problem rises again. So, if there is no loop in your script, what _does_ it contain? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] Good HTML parser needed

2008-05-13 Thread Per Jessen
for the last part, any XML parser will do. Sablotron, xalan, libxsl etc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replacing accented characters by non-accented characters

2008-05-13 Thread Per Jessen
comment from Richie in the PHP manual) the transliteration somewhat wrong. With the kind of rough conversion/transformation you're doing, is the locale really very important anyway? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread Per Jessen
a quick database update to set a status for such bounces. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how do I stop Firefox doing a conditional get?

2008-05-14 Thread Per Jessen
header I can use. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-14 Thread Per Jessen
Robin Vickery wrote: 2008/5/14 Per Jessen [EMAIL PROTECTED]: The issue is - I'd like this page to appear to be as real time as possible, and the occasional delay caused by the conditional get is a nuisance. My images are clearly cached, so how do I prevent Firefox from doing

Re: [PHP] Re: Scripts slowing down?

2008-05-14 Thread Per Jessen
in this way? It's easily tested. Just generate a script with 1 calls to the mail() function (send to [EMAIL PROTECTED] with N = random number). If that goes through without slowing down, mail() and your sendmail daemon are not to blame. /Per Jessen, Zürich -- PHP General Mailing List

Re: [PHP] php 5.2.6 make failure

2008-05-14 Thread Per Jessen
almost certainly update that. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Per Jessen
Al wrote: Make certain your steam is compressed http://www.whatsmyip.org/mod_gzip_test/ The files I was having the problem with are GIFs, so already LZW compressed. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Scripts slowing down?

2008-05-15 Thread Per Jessen
René Leboeuf wrote: Per Jessen a écrit : René Leboeuf wrote: The user sending emails is trusted by sendmail, and the sending program is located on the sendmail machine. No need to use SMTP then. You should just be calling sendmail to drop the emails into the queue. And that should

Re: [PHP] how do I stop Firefox doing a conditional get?

2008-05-15 Thread Per Jessen
Al wrote: Per Jessen wrote: Al wrote: Make certain your steam is compressed http://www.whatsmyip.org/mod_gzip_test/ The files I was having the problem with are GIFs, so already LZW compressed. Try by not LZW compressing and the use ob_start() and flush() so your files are gzip

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