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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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-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 --

[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] 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

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-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] 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] 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] 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-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] 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] 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] 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-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
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
;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
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-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-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: 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] 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] 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
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] 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] 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] 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
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] 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
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] 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] =.='' 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
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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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-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
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-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] 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] 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] 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] 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
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-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] 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
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] 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] 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] 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] 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] Sending mail with Outlook high priority

2008-11-03 Thread Per Jessen
is the notion of a high > priority mail item, but I do not know if this corresponds to anything > in an RFC for mail. Not too my knowledge. It's a Microsoft "standard". /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with images..

2008-11-03 Thread Per Jessen
sue at all, but how do I > output it? > This is what I want to accomplish: > > Current image: - THE IMAGE HERE - > > Starting to pull my hair.. > Anders. fetchimg.php: header('Content-Type: image/jpeg'); $img=; print $img; /Per Jessen, Zürich -- PHP Genera

Re: [PHP] PHP XSLT caching

2008-10-26 Thread Per Jessen
cashed. Your xslt files are source code, so why is there a need to cache them? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Per Jessen
None > *Preferred OS CMS* None > *Anything else you use frequently in you're PHP'ing that's worth > mentioning:* I use the XSLT stuff a lot - very fast for doing XSL transforms. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Output to matrix printer

2008-10-14 Thread Per Jessen
Shawn McKenzie wrote: > Matrix printer? Is this an awesomely powerful matrix of multiple > printers high output printers? > > -Shawn http://en.wikipedia.org/wiki/Matrix_printer /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Per Jessen
into the database. It > would be nice for it to wait to be approved, and once approved a > 'history' is kept so it is known who submitted the data and who > approved it. Any ideas on how to achieve this effectively?? You keep logs of all changes. /Per Jessen, Zürich -- PHP Gene

Re: [PHP] RewriteRule

2008-10-13 Thread Per Jessen
I still can't see the difference between '{0,}' (= 0 or more instances of the previous) and '*' (= 0, 1 or more instances of the previous) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML5 canvas tag

2008-10-13 Thread Per Jessen
Ashley Sheridan wrote: > Hmm, it doesn't mention which versions of the browsers it lists are > capable of displaying the canvas tag. I'm still using Firefox 2 on > this computer, and all I got was 5 horizontal bands of grey and blue. Same here. /Per Jessen, Zürich --

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-13 Thread Per Jessen
should be returned to the original list at the same place. (The list is a window of e.g. 500 items from a list of several thousands). Anyway, I don't know what the OPs was trying do with HTTP_REFERER. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RewriteRule

2008-10-12 Thread Per Jessen
ain.com/blog/1/2/ RewriteRule ^blog/([^/]+)/([^/]+)/ blog.php?getparam1=$1&getparam2=$2 [NC,QSA,L] /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-12 Thread Per Jessen
here is also no HTTP_REFERER in MSIE. > I experimented a bit with it and the most suitable solution I found > was passing the referring page on with a GET parameter ... Which becomes kludgy the minute you've got other GET arguments. /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-11 Thread Per Jessen
ctly that reason. I'd be very interested to hear if anyone's got any general alternatives that don't involve a lot of coding around the issue. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setcookie()

2008-10-11 Thread Per Jessen
ields) POST validate user+password, save in session setcookie(). redirect with 303 to GET /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setcookie()

2008-10-11 Thread Per Jessen
to the top of the PHP file when > the cookie is holding the username from the POSTed form. This must be a self imposed restriction on your side, coz' otherwise I see no problem. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] returning array from commandline

2008-10-10 Thread Per Jessen
Ian wrote: > On Fri, Oct 10, 2008 at 3:47 PM, Per Jessen <[EMAIL PROTECTED]> wrote: >> Ian wrote: >> >>> I am busy developing a commandline tool that will, in certain >>> cirumstances, return an array of information when called and im >>> having a

Re: [PHP] returning array from commandline

2008-10-10 Thread Per Jessen
it have to be called as a command line tool? Why not just call it as a plain PHP function? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sms interfaces?

2008-10-09 Thread Per Jessen
Rene Veerman wrote: > hi, i'd like my app to send sms warnings of some events. > > if you know of a free / cheap sms service that can be called from php, > please let me/us know. Swisscom can be called using sms_client. We've been using for 3, maybe 4 years. /Per J

Re: [PHP] Re: Prefered Method for User authetification on VHosts

2008-10-08 Thread Per Jessen
Michelle Konzack wrote: > Am 2008-10-07 08:34:42, schrieb Per Jessen: >> > I like to know, whether this is good enough or is there a >> > better solution? >> >> Good enough depends entirely on your security requirements, i.e. how >> safe do you ne

Re: [PHP] Prefered Method for User authetification on VHosts

2008-10-08 Thread Per Jessen
Jochem Maas wrote: > seems like a lot of pain to go through, what with all that shell'ing > out to grep data. I'd personally go for a simple DB table and > use/store sha1() hashes. My thoughts exactly. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.n

Re: [PHP] PHP and getting part of URL

2008-10-08 Thread Per Jessen
un some custom read only > queries for 'jason' > > How can I do this? I know how to do everything except what PHP > commands to run to get the info. http://php.net/manual/en/function.parse-url.php /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Prefered Method for User authetification on VHosts

2008-10-06 Thread Per Jessen
e do you need the authenticated access to be? Are you protecting something that is valuable to others? Etc etc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] AJAX and PHP

2008-10-04 Thread Per Jessen
hance the user experience. Caching is much better at reducing network atraffic anyway. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] AJAX and PHP

2008-10-04 Thread Per Jessen
ed. in that way i think it is interesting. On an intranet you've almost certainly got 100Mbit/s with a suitably capable backbone - limiting network traffic is not a concern, IMHO. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create DLL of PHP class

2008-10-03 Thread Per Jessen
Maciek Sokolewicz wrote: > Per Jessen wrote: >> Manoj Singh wrote: >> >>> Hello All, >>> I have the task to create DLL of PHP class. >>> >>> Please advise how to do it. >> >> I think you'll have to look up how to write a PHP

Re: [PHP] Create DLL of PHP class

2008-10-03 Thread Per Jessen
Manoj Singh wrote: > Hello All, > I have the task to create DLL of PHP class. > > Please advise how to do it. I think you'll have to look up how to write a PHP extension. Then you implement your class in C as a PHP extension, and build that as a DLL. /Per Jessen, Zürich

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