Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
the crontab so I don't get that output? You can always use MAILTO= to direct any output from a cronjob. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
-Patch 0.9.6.2 (cli) (built: Sep 22 2007 02:01:31) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies I suspect yours might be saying 'cgi' instead of 'cli' ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
that your cron script is also running with that interpreter. I can't really think of why it wouldn't be, but ... /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 submit form via PHP

2008-09-28 Thread Per Jessen
browsers interpret it that way, but it does seem a reasonable assumption. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name of graph

2008-09-30 Thread Per Jessen
then MSIE to see them. Thanks. here: http://www.phpguru.org/downloads/RGraph/examples/bar.html ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name of graph

2008-09-30 Thread Per Jessen
representation (line graph) of the same numbers. A trend line computed by linear regression would be like this: http://jessen.ch/images/virus+malware-q3-2008.jpeg /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Per Jessen
something wrong please hammer away, otherwise I hope it helps save some one some time. I think I'm missing the purpose - your code looks like you've wrapped a function around preg_match() so you can pass arrays to it as well, but I don't see much sanity anywhere :-) /Per Jessen, Zürich -- PHP

Re: [PHP] Sterilizing regexp

2008-10-01 Thread Per Jessen
of the beholder, but personally I would have stuck to a set of hardcoded preg_matches(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + Cron jobs

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

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Alain Roger wrote: how can i get the 'name' value for each row in this session stored array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported. /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] Re: PHP + Cron jobs

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

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Stut wrote: On 1 Oct 2008, at 11:40, Per Jessen wrote: Alain Roger wrote: how can i get the 'name' value for each row in this session stored array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported

Re: [PHP] Selecting all records between a date range

2008-10-02 Thread Per Jessen
Jason Pruim wrote: Hi Everyone, I am working on a app where I need to be able to select all the values from a database where the 'timein' field is between a certain date range... Essentially the last 7 days... SELECT * FROM timeStore WHERE timeinDATE_SUB(now(),INTERVAL 7 DAYS) /Per

Re: [PHP] date_default_timezone_set and Time Zones

2008-10-03 Thread Per Jessen
be -0700? Am I misunderstanding how these timezones work? Is it daylight savings time in LA on 31 January? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a link in php generated mail

2008-10-03 Thread Per Jessen
Sjef wrote: Hallo, I have an link in a php generated email that does not work. I tried adding http:// but with no result. It says the link is blocked. I created the mail with html formatting. Who is It (in It says the link is blocked.) and how does it say it is blocked? /Per Jessen, Zürich

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 -- PHP General Mailing

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 extension. Then you implement your class in C as a PHP extension, and build

Re: [PHP] AJAX and PHP

2008-10-04 Thread Per Jessen
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] AJAX and PHP

2008-10-04 Thread Per Jessen
. 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] Prefered Method for User authetification on VHosts

2008-10-07 Thread Per Jessen
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] PHP and getting part of URL

2008-10-08 Thread Per Jessen
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-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.net/) To unsubscribe, visit

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 need the authenticated access to be? Are you protecting

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 Jessen, Zürich -- PHP General

Re: [PHP] returning array from commandline

2008-10-10 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] 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 problem with this. Ian, that's a bit of a contradiction

Re: [PHP] Setcookie()

2008-10-11 Thread Per Jessen
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] Setcookie()

2008-10-11 Thread Per Jessen
validate user+password, save in session setcookie(). redirect with 303 to welcome page GET welcome page /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-11 Thread Per Jessen
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] Alternative to HTTP_REFERER?

2008-10-13 Thread Per Jessen
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 List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] RewriteRule

2008-10-13 Thread Per Jessen
/([^/]+)/([^/]+)/ blog.php?getparam1=$1getparam2=$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-13 Thread Per Jessen
. (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] 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 -- PHP General Mailing List

Re: [PHP] RewriteRule

2008-10-13 Thread Per Jessen
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] Re: BarcodeDB.com - a Barcode Database

2008-10-14 Thread Per Jessen
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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Output to matrix printer

2008-10-15 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://www.php.net

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Per Jessen
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] PHP XSLT caching

2008-10-26 Thread Per Jessen
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] Problems with images..

2008-11-03 Thread Per Jessen
it? This is what I want to accomplish: trtdCurrent image:/tdtd - THE IMAGE HERE - /td/tr Starting to pull my hair.. Anders. img src=fetchimg?id=n/ fetchimg.php: header('Content-Type: image/jpeg'); $img=fetch from db; print $img; /Per Jessen, Zürich -- PHP General Mailing List (http

Re: [PHP] Sending mail with Outlook high priority

2008-11-03 Thread Per Jessen
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] 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
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 well documented. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
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.net/) To unsubscribe

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 not to is beyond me? World domination is part of the reasoning ... /Per Jessen, Zürich

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Per Jessen
Nathan Rixham wrote: 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 well documented. /Per Jessen, Zürich

Re: [PHP] Parsing XML

2008-11-28 Thread Per Jessen
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 anything on the remote server, as I do not have that level

Re: [PHP] Happy Turkey Day

2008-11-28 Thread Per Jessen
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 of many. /Per Jessen, Zürich -- PHP General Mailing List

Re: [PHP] Parsing XML

2008-11-28 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] 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 you need - which could be a text document with SQL

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
-transformToXML($xml); $file in this case is just a single filename, no XML. My input data has a list of filenames, the 'pos' argument from the URI identifies one I need to process. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Parsing XML

2008-12-01 Thread Per Jessen
); $file in this case is just a single filename, no XML. My input data has a list of filenames, the 'pos' argument from the URI identifies one I need to process. /Per Jessen, Zürich So here you're advocating loading the XML document into PHP to add an element, then convert the XML

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 from mysql? /Per Jessen, Zürich

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 List (http://www.php.net

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

2008-12-06 Thread Per Jessen
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't bother with javascript. /Per Jessen

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

2008-12-07 Thread Per Jessen
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 and THE WAY it may

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 won't work. /Per Jessen

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 characters. I.e. it _can_, but it is a violation

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

2008-12-08 Thread Per Jessen
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 General Mailing List (http

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Per Jessen
, 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
. 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
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 manager as such. /Per Jessen, Zürich

Re: [PHP] PHP Form email w/attachment

2008-12-18 Thread Per Jessen
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
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/ Looks like the sort of thing you could use. /Per Jessen, Zürich

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 Jessen, Zürich -- PHP General Mailing

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. /Per Jessen, Zürich -- PHP General

Re: [PHP] filter function vs regular expression

2008-12-20 Thread Per Jessen
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://www.php.net/unsub.php

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

2008-12-22 Thread Per Jessen
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/) 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 List (http

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

2008-12-31 Thread Per Jessen
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
. You can design your software to run on a single box with lots of CPU cores, or you can go for a distributed (and more easily scalable) approach. If you don't need/want straight scalability, go for the 32 cores all ticking at 3GHz. Once that is saturated, buy another one. /Per Jessen, Zürich

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
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
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 unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP telnet server

2009-01-01 Thread Per Jessen
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
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
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't use PHP. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Per Jessen
, 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
take note of this error but continue executing with other stuff, but no matter what I try the PHP script stops whenever it encounters this and just displays Too many connections. Isn't that error returned by mysql_connect()? Just write your code to work without the database connection. /Per

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

2009-01-09 Thread Per Jessen
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; (php5+ only) on all of my database connection classes, I have the db close function

Re: [PHP] Re: Create image from HTML

2009-01-10 Thread Per Jessen
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
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. why not? Because your desired functionality is already satisfied by other

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
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 bad :-) The point is - why not just use Java, when you really need the features? /Per Jessen, Zürich -- PHP

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
if it's optional then why fork? Because it would be such a major change (as Tony has also pointed out) - ones PHP code would work with php -normal, but would fail miserably with php -strongtyping. In essence, with your optional strong typing enabled, you'd have a different language. /Per Jessen

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Per Jessen
a full blown test system. That is pretty much the norm in a corporate environment - I've certainly never worked anywhere that didn't have separate test systems. /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: 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. Instead of providing programmers with a black or white choice between static or dynamic typing, we

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 p...@computer.org 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 prototyping. Once when

Re: [PHP] 64bit vs. 32bit

2009-01-20 Thread Per Jessen
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 Jessen, Zürich -- PHP General Mailing List

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
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
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
, 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
$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;$icount11;$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
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 List (http

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 General Mailing List (http

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