[PHP] Re: open source content management systems?

2003-07-29 Thread Per Jessen
[EMAIL PROTECTED] wrote: > hi all > > does anyone have any recommendations for good open source content > management systems for websites? - preferably, written in php... http://typo3.com/ /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter usin

[PHP] 4.3.2 -- does connection_status() actually work?

2003-06-12 Thread Per Jessen
nt "Done."; This is php4.3.2 on apache 2.0.45. /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://www.dansk.org - for alle danskere i udlandet! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 4.3.2 -- does connection_status() actually work?

2003-06-13 Thread Per Jessen
sking. What are the plans, if any, regarding apache 2.0.x and php? For my purposes, I would be perfectly happy if my php script would stop running once the client has disconnected. /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://www.dansk.o

[PHP] Re: 4.3.2 -- does connection_status() actually work?

2003-06-13 Thread Per Jessen
Jeff Harris wrote: > I'm just guessing here, because you didn't give us the desired result, > but how about: > if (connection_status() ) break; Yeah, that would do about the same. The expected result is for the script to stop running once the client disconnects. /

[PHP] what's the story with html_entity_decode?

2003-11-29 Thread Per Jessen
;klonk\" æ 'å' "; $b=html_entity_decode( $a, ENT_QUOTES, "UTF-8" ); It seems to default to ISO-8859-1? thanks /Per -- Per Jessen, Zurich http://timian.jessen.ch - an analog report formatter using XSLT. http://jessen.ch/dansk-listen - for alle danskere i udlandet!

[PHP] Re: Apache 2 and PHP

2003-12-26 Thread Per Jessen
ut "don't expect php to work in apache 2.0". It was something to do with error-handling and timeout, IIRC. Why not go with Apache 2.0? If you should run into some showstopper, revert to 1.3 - it's not that much of an effort (provided you don't start using apache 2.0-only f

RE: [PHP] web shot script

2008-11-18 Thread Per Jessen
Joey wrote: > Sorry for the delay. > > The purpose is to be able to see what is running on a site at any > given time. Apaches 'server-status' perhaps? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
t;> http://www.onshore.com >> >> > Though I always script to W3 Standards, I could care less if browsers > follow those standards, so long as we wind up closer and closer to a > general set of rules we can obide by. Uh, only as long as that general set of rules is

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
/images/sam-menu-ff2.jpeg FF3: http://jessen.ch/images/sam-menu-ff3.jpeg Notice how the fonts are really quite different, in FF3 they make the long orange menu line spill over the page margin. No FF3 around here for a while yet. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>> i never understand this, if i was makign a browser I'd be "where's >>> the rfc's" then code it to implement those rfc's - why people choose >>&g

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
general set of rules is well documented. >> >> >> /Per Jessen, Zürich >> > > i never understand this, if i was makign a browser I'd be "where's the > rfc's" then code it to implement those rfc's - why people choose not > to is beyond me?

Re: [PHP] Parsing XML

2008-11-28 Thread Per Jessen
#x27;s out of the question, you're in for a difficult time. /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

2008-11-28 Thread Per Jessen
Ashley Sheridan wrote: > On Fri, 2008-11-28 at 10:15 +0100, Per Jessen wrote: >> Ashley Sheridan wrote: >> >> > Do any of you have a copy of this extension, or failing that, a >> > suggestion of how I can parse XML files without having to install >> >

Re: [PHP] Happy Turkey Day

2008-11-28 Thread Per Jessen
; bit over-the-top. The skit centered on how fat Americans were. Well, they are a bit over-the-top ... > I am sure if he ran that skit in a trailer for one of his movies in > the States, the attendance for his movie would drop -- a bit like > biting the fat-hand that feeds him. Just one

Re: [PHP] Parsing XML

2008-11-28 Thread Per Jessen
ng a simple XSL stylesheet according to recognised standards etc. Just my opinion of course. /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

2008-12-01 Thread Per Jessen
Peter Ford wrote: > Per Jessen wrote: >> >> That's cool, but XSL is still the more appropriate tool IMO. It does >> exactly what you need - it parses and validates the XML document, >> allows you to extract the bits you need and in virtually any format >

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
>importStyleSheet($xsl); $pos=$_GET['pos']; $xp->setParameter('', array('pos' => $_GET['pos']) ); $file=$xp->transformToXML($xml); $file in this case is just a single filename, no XML. My input data has a list of filenames, the '

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
// attach the stylesheet >> $xp->importStyleSheet($xsl); >> >> $pos=$_GET['pos']; >> $xp->setParameter('', array('pos' => $_GET['pos']) ); >> >> $file=$xp->transformToXML($xml); >> >> >> $file

Re: [PHP] Countries and Timezones

2008-12-02 Thread Per Jessen
franzemmanuel wrote: > Hi everybody, > > For those who are interested in Countries and timezones. > > I needed to have the list of all the countries in the world and the > timezones by country without redundancy. > Couldn't you just have use the timezone info

Re: [PHP] IE8 and HTML5

2008-12-05 Thread Per Jessen
Benjamin Hawkes-Lewis wrote: > Everyone has their favorite unstandardized feature they'd love IE to > support. (Personally I'd be delighted by -ms-border-radius and > content:uri() support.) Nope, I don't have a single one. /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Per Jessen
> What does everyone prefer? I don't think it's about the developer preference, it's about the user. Javascript enables lots of checking at data entry time, and can improve the overall user experience. If you're not particularly concerned with the user experience, don'

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Per Jessen
t be [EMAIL PROTECTED] which mail-agents with IDN support should display and accept like this: [EMAIL PROTECTED] /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Per Jessen
Per Jessen wrote: > address. The same really goes for the same on the right hand side of > the @, but some people have difficulties distinguishing between the > _actual_ email address and it may be rendered when the domain part is > converted from punycode. That should have read &qu

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Per Jessen
Yeti wrote: > I think hotmail, or was it some other mail mogul, is allowing their > users to have those weird German umlauts and some accented characters. > > EXAMPLE: > [EMAIL PROTECTED] > Anyone who allows 8-bit characters on the left side of the @ is in for trouble. It w

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-08 Thread Per Jessen
tedd wrote: > At 5:10 PM +0100 12/7/08, Per Jessen wrote: >> You cannot have 8bit characters to the left of the @ in the email >> address. > > > I'm not sure that's correct. I am sure. In fact, the entire email header must not contain any 8-bit chara

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-08 Thread Per Jessen
Tedd, I've got a distinct feeling of deja-vu here, but Thunderbird displays all Swiss, German, French, Greek and Danish IDNs 100% correctly, probably many more too. The ones you're having a problem with are the ones that allow the entire UTF8 charset, IIRC. /Per Jessen, Zürich -- PHP

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Per Jessen
f files, e.g. 100,000s, also depends a lot on the filesystem. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Per Jessen
ary (/bin/ls), not a system call. The regex functionality is part of the shell, usually bash. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach and destroying variables for memory saving

2008-12-10 Thread Per Jessen
c source code of php. Maybe its time to > actually do that. But it might be easier if someone can answer this > from the top of their head. There is no real need - most PHP code runs in apache with each request being separately initated and terminated. There's no underlying runtime

Re: [PHP] PHP Form email w/attachment

2008-12-18 Thread Per Jessen
ttachment. That's how you need to format your email-text. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read/decode barcodes from an image

2008-12-18 Thread Per Jessen
e page as a > separator page which will be used to split the multipage document into > smaller single or multipage documents. > > Has anyone ever heard of anything that might help me in this process? I can't say for certain, but have a look at zebra: http://zebra.sourceforge.net/

Re: [PHP] utf8 php howto?

2008-12-19 Thread Per Jessen
Daniel Kolbo wrote: > Hello, > > I have a text file encoded in utf-8. > i am using fopen/fgets/echo etc.. > > how do i display these utf8 characters from the file on the web? > header("Content-Type: text/html; charset=utf-8") readfile(your-utf8-file); /Per

Re: [PHP] utf8 php howto?

2008-12-19 Thread Per Jessen
c...@l-i-e.com wrote: > In some circumstances, with "mixed" charsets on a page, and with IE > in quirks mode, IE will try to "guess" the charset and get it (very) > wrong. A single page or response can only have one characterset, there is no mixing possible.

Re: [PHP] filter function vs regular expression

2008-12-20 Thread Per Jessen
he filter extension both use the same regex caching mechanism. If the regex has not been compiled, the first call will compile it, subsequent calls will use the already compiled regex. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Replacing special characters with their HTML equivalents

2008-12-22 Thread Per Jessen
x27;t match, it will complain. If converting with htmlentities() works for your purpose, that's one solution, otherwise I'd make the mysql table use UTF8 and then look into iconv to convert all scraped pages to UTF8. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP telnet server

2008-12-31 Thread Per Jessen
c...@l-i-e.com wrote: > > I often thought PHP would be a nice language for a MUD, if one could > get the performance out of it... Design your code such that you can just throw more hardware at it whenever you need more performance. /Per Jessen, Zürich -- PHP General Mailing L

Re: [PHP] =.='' what wrong ? just simple code, however error.

2008-12-31 Thread Per Jessen
hy ? It's a floating point rounding error. If you don't need the accuracy, just round it to what you need. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2008-12-31 Thread Per Jessen
need/want straight scalability, go for the 32 cores all ticking at 3GHz. Once that is saturated, buy another one. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
a matter of space, cooling, electricity etc. The big monolith is easier to deal with, but also carries a different pricetag. The many machines can be gradually expanded at a lower cost, but need much more in terms of infrastructure. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Per Jessen
elling your non-GPL software and you use GPL software with it, then yes, I believe you are required to make your source code available to the end-user too. Maybe have a quick look at http://gpl-violations.org/ /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
f an overhead > so that bandwidth is actually that much of an issue? > The implementation language does not affect your bandwidth requirements at all. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
will slow it down too much. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
a "text-based MUD" is. I thought we were talking some network gaming engine a la WoW and such. I still think my initial response was appropriate though - if PHP as a language is a performance concern, it's best solved by throwing more hardware at it. If that is not an option, don

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Per Jessen
be great. > Yes, that is exactly what https does. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Per Jessen
write your code to work without the database connection. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Per Jessen
classes, I have the db close function > in the destructor just to make sure I guess it depends on the type of application - for a web-transaction running on a web-server, why bother? It'll clean up after itself anyway. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a script tell if there's a MySQL problem?

2009-01-09 Thread Per Jessen
Per Jessen wrote: > Nathan Rixham wrote: > >> Bastien Koert wrote: >>> 1. Make sure you are freeing up all resources as soon as you can -> >>> mysql_close(); >>> >> >> little thing I've done for some time that's stuck with; (php

Re: [PHP] Re: Create image from HTML

2009-01-10 Thread Per Jessen
a while ago, it worked pretty well AFAIR. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Per Jessen
Tony Marston wrote: > If you really *need* to used a staticly typed language then don't use > PHP, and don't try to change PHP to match your needs. +1 /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Per Jessen
her programming languages. PHP is an interpreted language with all the strengths and weaknesses that come with it. A need for static or compile-time typing is a need for a different language, honestly. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>> Tony Marston wrote: >>>> If you really *need* to used a staticly typed language then don't >>>> use PHP, and don't try to change PHP to match your needs. >>

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
;s a tonne of amazing tools and frameworks for java, and > I'm sure that a vast majority of them are possible because of this > static typing (from orms to web service frameworks and all in between) > - am I so bad for wanting that for php and my fellow devs? No, you're not so

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
quot;, but would fail miserably with "php -strongtyping". In essence, with your optional strong typing enabled, you'd have a different language. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
to test your > infrastructure; when you can't compile and do this testing becuase the > app isn't bug free or completed it's rather limiting. Sometimes unit > tests just don't cover what you need. I agree. You need a full blown test system. That is pretty much the no

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>>> You can't have your cake and eat it. You can't/shouldn't have >>>> strong >>>> and loose typing in the same language. In my opinion. >>> "Ins

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Per Jessen
Eric Butera wrote: > On Sun, Jan 18, 2009 at 11:44 AM, Per Jessen wrote: >> I think that's at best an example of someone having chosen the wrong >> tool. I can easily appreciate the frustration. My own rule-of-thumb >> - scripts are for small things and rapid prototyp

Re: [PHP] 64bit vs. 32bit

2009-01-20 Thread Per Jessen
) that you need to utilize efficiently or 2) your processing is very CPU-bound, e.g. scientific or graphics code. you won't gain anything by moving to a 64bit OS/Apache. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Per Jessen
Dušan Novaković wrote: > Hi, > > Is there some elegant solution how to redirect if someone try to open > some non existing page (e.g www.domain.com/nonexistingpage.php) to > main page www.domain.com on website? > See Apache "ErrorDocument" directive. /Per Jes

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
omise it to be distinct helpful Apache also comes with a good example of how to cobble that with content negotiation to present error documents in the users preferred language. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
rrectly, so what else > is suggested? I would use a 303 redirect, just like after processing a POST. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] process creation

2009-01-23 Thread Per Jessen
; Basically, I'd like to create a bunch of test apps/processes, and then > to be able to kill them by a separate process if the apps take too > long to run.. Why not put a timer in each individual process? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: process creation

2009-01-24 Thread Per Jessen
e processes. To get exactly 10 children running the same code: if ($iPid == 0) { // child echo ("child $icount\n"); // do childish stuff // then exit exit; } /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php error

2009-01-24 Thread Per Jessen
mattias wrote: > ERR_DB_NO_DB_PASS >What will this meen? No database password has been set in config. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: process creation

2009-01-25 Thread Per Jessen
Tom Sinclair wrote: >> Per Jessen wrote: >> >> for($icount=0;$icount<11;$icount++) > > Iterates 10 times?? > Hmm 10, 11 - no big difference is there? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Per Jessen
have many options. One of my key concerns is - for the translation, I need to be able to wrap everything up and ship it off to a translator, perhaps via elance or similar. Does anyone have any best practice suggestions or comments in general? /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Per Jessen
Richard Lynch wrote: > I can't help with the bits you are asking about, but I can give this > advice: > > Don't rely solely on the Apache/browser content-negotiation, please. > Don't worry, the site already has a user-override option. /Per Jessen, Zürich --

Re: [PHP] Multiple queries in PHP

2009-01-26 Thread Per Jessen
.php "For security reasons the MULTI_STATEMENT flag is not supported in PHP. If you want to execute multiple queries use the mysqli_multi_query() function." /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-26 Thread Per Jessen
lower and I > can't help but feeling that serving up a static page created by code > is a better solution. That's part of what we're thinking of doing, but it's difficult to separate the language and code completely. Which is where gettext() comes in. Does anyone on th

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Per Jessen
hop ( :-( ), therefore no Linux and no PHP Ah. :-) > b) the db current doesn't support multi-byte charsets > The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Per Jessen
Jan Kaštánek wrote: > Per Jessen: >> >> The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. > > It supports. We use it. But only in MsgStr (translation), not in MsgId > (original strings). > Yeah, I found out too. (from the GNU gettext

Re: [PHP] New to PHP question

2009-01-28 Thread Per Jessen
t's how HTML works. > The second question is closely related to the first. When formatting > text using printf the padding works great when running from the > command line but not at all when in a browser. Same answer. /Per Jessen, Zürich -- PHP General Mailing List (http://ww

Re: [PHP] New to PHP question

2009-01-28 Thread Per Jessen
ng. No, the scripts are written the same way, but you are using two different output media, so your output must be different. Like Stuart said - if you want your browser to output in text-mode, just set the right header-type. (text/plain). /Per Jessen, Zürich -- PHP General Mailin

Re: [PHP] Extract code from XML

2009-01-30 Thread Per Jessen
;Item' , $hotelElement ); > > > > I know you can use an @ sign but I am not 100% sure. Yes, you use an '@' to retrieve attributes of an element. query( 'HotelDetails/Hotel/@Code' /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Extract code from XML

2009-01-30 Thread Per Jessen
should work: query( 'HotelDetails/Hotel/Item/@Code' ... /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Per Jessen
Linux CentOS 5.2 server this mail is being sent > but the subject is rubbish. > All encodings are in UTF-8 (the php file, the encoding of the mail > client etc) so to solve this I have added the mb_encode_mimeheader > line. But for some reason you've specified ISO-8859-1 instead of UT

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Per Jessen
Thodoris wrote: > >> But for some reason you've specified ISO-8859-1 instead of UTF-8? >> >> >> /Per Jessen, Zürich >> > > Yes I know that this is not reasonable but using UTF-8 fails. Fails _how_? Put up the resulting email somewhere for us t

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Per Jessen
Nitsan Bin-Nun wrote: > I was just wondering whether people enclosing their PHP tags > declarations, I don't close these interpreter doesn't really needs them, > and for the second reason - if a space/tab/new line/etc will beneath > them it will cause > problems with output buffering and session

Re: [PHP] Mutiple SQL request

2009-02-04 Thread Per Jessen
Jônatas Zechim wrote: > Hi there, i've a system that do a query each 3s, does it impact on > mysql Server? I mean, can this slow my Server? Probably not - if the query and the database doesn't change in between, the results are cached. /Per Jessen, Zürich -- PHP General Ma

[PHP] Where does the sendmail() function come from?

2009-02-05 Thread Per Jessen
the manual, so where does it come from? thanks Per -- Per Jessen, Zürich (2.87°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Where does the sendmail() function come from?

2009-02-05 Thread Per Jessen
n I haven't got a sendmail() any more. I can't find a >> reference to it in the manual, so where does it come from? > > Presumably it's either undocumented or user defined. > get_defined_functions() will help you in determining that. Thanks Richard - it was my _own

Re: [PHP] Appending query result sets?

2009-02-08 Thread Per Jessen
d. The thing to keep in mind - what mysql_query() returns is NOT a result-set, but a handle or an oblique reference to one. The only way to access it is with mysql_fetch_*(). /Per -- Per Jessen, Zürich (-0.32°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] PHP OOP

2009-02-09 Thread Per Jessen
't quite see the Linux kernel or bind or an audio driver written as a web-app :-) /Per -- Per Jessen, Zürich (1.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP OOP

2009-02-09 Thread Per Jessen
't quite see the Linux kernel or bind or an audio driver written as a web-app or in php :-) /Per -- Per Jessen, Zürich (1.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP OOP

2009-02-09 Thread Per Jessen
ment OO as done in Smalltalk. You're right about using a > language which implements OO in a realistic way for today's > programmers. Depends exactly what Tedds class is meant to be - whether it's about programming or computer science. For the latter, Eiffel is also a good O

Re: [PHP] Creating A Unique List With Table Query

2009-02-10 Thread Per Jessen
gt; SELECT Category FROM contacts > > But this will produce many duplicates. > > Question : How do I filter the query to only produce unique values? SELECT DISTINCT Category FROM contacts -- Per Jessen, Zürich (1.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (Perl) Regular Expressions - oposite match or get the non-matches of a substring

2009-02-11 Thread Per Jessen
> but not "not this". > > Seems pretty straight forward but i haven't found a (good) solution > yet. Check out "look-around" (-behind, -ahead), here for instance: http://www.regular-expressions.info/refadv.html > Surprisingly i couldn't figure out

Re: [PHP] sprintf thousand separator.

2009-02-11 Thread Per Jessen
ed to do what you > want. > I wonder why number_format() isn't locale sensitive? /Per -- Per Jessen, Zürich (2.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Per Jessen
anomalous result? I'm not certain, but I suspect it's because the interpreter attempts to convert "elephant" to an integer first. /Per -- Per Jessen, Zürich (-0.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions needed

2009-02-13 Thread Per Jessen
registry is only in > existence for a month or so. > > I really don't see the advantage of using a real DB [e.g., mySQL,] for > this. Don't need any special searching, etc. You might as well just go with MySQL. It'll make it a lot easier both to start with and in the

Re: [PHP] fork/spawnzombie question

2009-02-13 Thread Per Jessen
27;s of zombie child processes that I can > see from the linux/processTBL. > > I don't want to have my master loop do a waitpid() call, as it would > block on the wait for one of the child processes to exit. No, it wouldn't - just use WNOHANG: pcntl_waitpid( -1, $status, WNOH

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Per Jessen
signed cert or paying big bucks, for > anything with e-commerce you want to pay big bucks for a cert, there > is no other option. http://www.cacert.org/ /Per -- Per Jessen, Zürich (0.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-15 Thread Per Jessen
Sancar Saran wrote: > Hello list. > > Recently we had some serious discussion on local boards. > > I prefer calling PHP as Web Framework of C and C++ > PHP is a scripting language with syntactical roots in C. /Per -- Per Jessen, Zürich (-3.5°C) -- PHP General

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Per Jessen
nce - the browser will resolve relative URLs to absolute URLs before issuing the HTTP GET. /Per -- Per Jessen, Zürich (-0.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Per Jessen
#x27;t tried it with attachments though. /Per -- Per Jessen, Zürich (0.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-16 Thread Per Jessen
:// = secure but no aspect of trust. Colin, I think you're mixing apples and oranges here - http(s) was never meant to provide any indication of "trust". Besides, how do you suggest we distinguish between CAs "with no trust" and CAs "with trust"? /Per --

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Per Jessen
Carl-Fredrik Gustafsson wrote: > To me it looks like he only wants the spaces and special-chars in the > filename to be "readable" again. Yep, I think so too. Spaces are no problem, but 8-bit characters need to be encoded. /Per -- Per Jessen, Zürich (1.2°C) -- PHP Gene

Re: [PHP] Re: Reverse IP lookup

2009-02-16 Thread Per Jessen
Lewis Wright wrote: > This may be a little more accurate: > http://www.domaintools.com/reverse-ip/ > Yep, than one was a lot better than yougetsignal. /Per -- Per Jessen, Zürich (0.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Files redirect - using PHP and .htaccess

2009-02-17 Thread Per Jessen
Martin Zvarík wrote: > AHA, from what I've just read, the .htaccess is server-side, so the > client won't know the real directory. > > Can somebody confirm? Unless you do an external redirect, confirmed. /Per -- Per Jessen, Zürich (0.6°C) -- PHP General Mailing Li

Re: [PHP] Re: for the security minded web developer - secure way to login?

2009-02-17 Thread Per Jessen
eah. Which is probably because all of the intricacies are way beyond Joe Bloggs, so the issue was cut down to something about "trust". > Now with the HV certs the UI also has the company > name in the URL and this *is* going towards a trust infrastructure. I googled, but couldn&#

Re: [PHP] Free XML and WDL classes/scripts

2009-02-18 Thread Per Jessen
Anton Heuschen wrote: > What are some good php classes/scripts to work with: > > Parsing XML data/files. xpath() or xslt. /Per -- Per Jessen, Zürich (-4.6°C) -- 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   >