Re: [PHP] Programmers and developers needed

2012-09-13 Thread Per Jessen
agbo onyador wrote: > Hello there! We are looking for programmers and developers to create a > world wide system. Your comments are welcome. Who is "we" ? -- Per Jessen, Zürich (12.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Got HTML5 History API + caching LICKED, I think,

2012-03-18 Thread Per Jessen
rene7705 wrote: > On Sun, Mar 18, 2012 at 10:58 AM, Per Jessen wrote: > >> rene7705 wrote: >> >> > In response to critiques about my download size, I've removed >> > scenejs and the artwork for my own site-logos from the zip. The >> > size

Re: [PHP] Got HTML5 History API + caching LICKED, I think,

2012-03-18 Thread Per Jessen
it opens better on non-windows OSes. It worked fine with unzip on linux. -- Per Jessen, Zürich (11.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] utf8_decode() not working, conflicts with urlencode()

2011-08-30 Thread Per Jessen
therfore a mixture of > encodings. It seems to me that you're probably missing a urldecode() on $input before you attempt to decode the utf8 chars ? -- Per Jessen, Zürich (17.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: NOMAIL option for the list?

2011-05-18 Thread Per Jessen
u mean? As in unsubscribing? > > I mean, STOP receiving mail without UNSUBSCRIBING. > > Which is a standardd function of newer "majordomo" and "mailman". ezmlm uses the expression 'alias' for this functionality. See my posting from yesterday. -- Per

Re: [PHP] NOMAIL option for the list?

2011-05-18 Thread Per Jessen
have to /dev/null it on my server. > > Ist there a way to set my account to NOMAIL option? Michelle, the list is ezmlm-driven, it should be possible to subscribe an alias to the list, which means that that address will be allowed to post, but will not receive any postings. Try this address: php

Re: [PHP] Session question

2011-05-17 Thread Per Jessen
Paul Halliday wrote: > Is it OK to have session_start as an include? > Yes. -- Per Jessen, Zürich (18.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running PHP5 in a PHP4 environment

2011-05-13 Thread Per Jessen
ode out of PHP 4 to indicate it's > hit PHP 5 code it doesn't understand? Check the apache error logs, that is where you will usually find something. -- Per Jessen, Zürich (14.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript detection

2011-04-28 Thread Per Jessen
tedd wrote: > As Yogi Berra once said; "It's always hard to predict things > especially when it deals with the future." > He was quoting Niels Bohr: http://www.quotationspage.com/quote/26159.html -- Per Jessen, Zürich (10.2°C) -- PHP General Mailing List

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Per Jessen
th XSLT, and today I would not want to be without XML. -- Per Jessen, Zürich (16.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bilingual strtotime()

2011-02-07 Thread Per Jessen
s being presented. strtotime() is an unusual function in that it attempts the reverse - transform arbitrary text into data. -- Per Jessen, Zürich (5.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Per Jessen
t. I don't think strtotime() is locale-sensitive - according to the manual: "The function [strtotime] expects to be given a string containing an English date format" -- Per Jessen, Zürich (4.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bilingual strtotime()

2011-02-06 Thread Per Jessen
Alexis wrote: > On 05/02/11 13:23, Per Jessen wrote: >> Alexis wrote: >> >>> Hi, >>> >>> Living in Canada, and being a bilingual country, I have data I am >>> processing which includes dates in both English and French. >>> >>&g

Re: [PHP] Bilingual strtotime()

2011-02-05 Thread Per Jessen
e above two languages? Sure, strftime() is locale-sensitive. Set the locale(). -- Per Jessen, Zürich (4.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Symbol Suggestion

2011-01-12 Thread Per Jessen
ikipedia.org/wiki/Hungarian_notation -- Per Jessen, Zürich (7.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Symbol Suggestion

2011-01-12 Thread Per Jessen
must say, of any language I've used, > the php.net documentation is by far the best, giving plenty of > information and user comments too. It's a resource I still can't do > without, and I reckon even the old hands on this list would say the > same. Yes, I wouldn't want

Re: [PHP] Array Symbol Suggestion

2011-01-12 Thread Per Jessen
ing is a pretty fundamental change, don't be disappointed if it is not met with universal approval. -- Per Jessen, Zürich (5.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
label is checked to ensure it doesn't completely consist of >> digits. > > Do you know, that there are MANY domains with numbers only? > Here is a list of 197 such Swiss domains: http://public.jessen.ch/files/ch-domains-only-numeric.txt -- Per Jessen, Zürich (0.0°C) -- PHP

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tedd wrote: > At 11:54 AM +0100 1/11/11, Per Jessen wrote: >>tedd wrote: >> >>> At that time, I registered almost 30 names. >>> Fortunately, all of my names passed and I was >>> permitted to keep them. Unfortunately, all >>> browser manufac

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-11 Thread Per Jessen
tead of the actual > characters intended. Only for characters that are not part of a national alphabet, I believe? This one works fine: http://rugbrød.ch/ Besides, many domain registrars also limit the available characters to those that are part of a national alphabet. -- Per Jessen, Zü

Re: [PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-09 Thread Per Jessen
g to » >> http://www.faqs.org/rfcs/rfc2396) , >> > > > I'm wondering what mods to make for this now that unicode chars are > allowed in domain names You're talking about IDNs ? The actual domain name is still US-ASCII, only when you decode punycode do you get UTF8 characters. -- Per Jessen, Zürich (10.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Regex for telephone numbers

2010-12-31 Thread Per Jessen
thing except > digits > > $phoneNum = ltrim($phoneNum,'1');//Remove leading 1s > > if(strlen($phoneValue) != 10) > { > throw new Exception("Phone number must be 10 digits, without leading a > 1. Check your entry carefull"); > } O

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread Per Jessen
ally written as NNN NN NN, but also often in a way that will help remembering the number. Danish mobile#s are the same as land line numbers, no area code, just NNNN. -- Per Jessen, Zürich (2.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Centralizled Authentication

2010-12-02 Thread Per Jessen
he access method, you can store the information whichever way you want. mysql is probably not a bad idea. -- 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] Centralizled Authentication

2010-12-02 Thread Per Jessen
ation across a network of applications? Central directory service accessed with LDAP. Typical examples include Microsofts Active Directory, Novells eDirectory and openLDAP. -- Per Jessen, Zürich (-1.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disk IO performance

2010-11-29 Thread Per Jessen
ifferent. The file has got to be hauled in from disk regardless of which function you choose. -- Per Jessen, Zürich (2.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disk IO performance

2010-11-28 Thread Per Jessen
s changed many times over, but it's not something we as regular application programmers ought to be much converned with. Leave it to the smart operating system. -- 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] Re: Check for existence of mail address

2010-10-26 Thread Per Jessen
rovides VRFY for exactly this purpose, but it is disabled on most servers. The closest approximation of "email address exists" is "MX will accept mail for it". -- Per Jessen, Zürich (5.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-23 Thread Per Jessen
le believe that if you don't pay for it, it's not worth anything. We all know that doesn't apply to everything (e.g. not open source software), but when you're paying an individual for a job, well -- Per Jessen, Zürich (8.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Per Jessen
sueandant wrote: > Hi > > I'm not familiatr with the term "top-post"; could you please explain? http://lmgtfy.com/?q=top-post -- Per Jessen, Zürich (3.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What other languages do you use?

2010-10-08 Thread Per Jessen
Per Jessen wrote: > Nathan Rixham wrote: > >> Per Jessen wrote: >>> Nathan Rixham wrote: >>> >>>> As per the subject, not what other languages have you used, but >>>> what other languages do you currently use? >>> >>> Fr

Re: [PHP] What other languages do you use?

2010-10-08 Thread Per Jessen
Nathan Rixham wrote: > Per Jessen wrote: >> Nathan Rixham wrote: >> >>> As per the subject, not what other languages have you used, but what >>> other languages do you currently use? >> >> French, German, English and Danish. >> > > For

Re: [PHP] What other languages do you use?

2010-10-08 Thread Per Jessen
Per Jessen wrote: > Nathan Rixham wrote: > >> As per the subject, not what other languages have you used, but what >> other languages do you currently use? > > French, German, English and Danish. > Wrt programming languages (and variations thereof), in orde

Re: [PHP] What other languages do you use?

2010-10-08 Thread Per Jessen
Nathan Rixham wrote: > As per the subject, not what other languages have you used, but what > other languages do you currently use? French, German, English and Danish. -- Per Jessen, Zürich (14.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PHP and HBCI?

2010-10-08 Thread Per Jessen
rite a PHP wrapper for the C functions, but otherwise yes. -- Per Jessen, Zürich (17.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: daemon

2010-10-07 Thread Per Jessen
ver runs for years (wel, mine certainly do). /Per -- Per Jessen, Zürich (12.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] daemon

2010-10-07 Thread Per Jessen
Tommy Pham wrote: > Hi, > > Does anyone have a script running as daemon on Linux/Unix (variants) > as part of your PHP application? Yeah, several. > If so, what are you using to schedule the script to run? cron? sysVinit and startproc -- Per Jessen, Zürich (12.1°C)

Re: [PHP] PHPExcel with large files (27,000+ rows)

2010-10-04 Thread Per Jessen
? Surely there is a way to > parse a large excel file with PHP. If your excel file is or can be transformed to XML, I would just use XSLT. No PHP needed. -- Per Jessen, Zürich (19.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Friday's Post

2010-10-02 Thread Per Jessen
Peter Lind wrote: > On 1 October 2010 20:21, Per Jessen wrote: >> Peter Lind wrote: >> >>> C# has by now exceeded Java by quite a bit - >> >> I've been away from the Java "scene" since 2002 (when I worked for >> BEA deploying J2EE on L

Re: [PHP] Re: Friday's Post

2010-10-01 Thread Per Jessen
ry newer programming language in the world has gone further than Fortran, C, Cobol and PL/I, but they're all very much alive and kicking. And will each individually probably be able to muster more "deployed lines of code" than any other language. -- Per Jessen, Zürich (12.1°

Re: [PHP] PHP DNS resolving in chroot-ed environment

2010-09-27 Thread Per Jessen
resolver. > I've copied them to the chroot, but the resolving still fails. strace > showed failed accesses to /dev/urandom and /dev/log, but mounting /dev > in the chroot didn't help. What does your strace show when you have mounted /dev in your chroot (with -o bind) ? --

Re: [PHP] php cli question

2010-09-14 Thread Per Jessen
J Ravi Menon wrote: > On Tue, Sep 14, 2010 at 12:43 AM, Per Jessen wrote: >> J Ravi Menon wrote: >> >>> Few questions: >>> >>> 1) Does opcode cache really matter in such cli-based daemons? As >>> 'SomeClass' is instantiated at eve

Re: [PHP] php cli question

2010-09-14 Thread Per Jessen
there is no 'garbage > collector' thread that does all the magic? Correct. -- Per Jessen, Zürich (12.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread Per Jessen
g, but if the boss did not log off > properly then the file would remain in the "yes" state allowing > employees undesired access. That would not be acceptable. > > So, what methods would you suggest? I would ask the boss to confirm his presence maybe once an hour and only

Re: [PHP] Standalone WebServer for PHP

2010-09-10 Thread Per Jessen
way to create a php CLI app, that creates it's own "web > server" even if apache is installed. Yep, that's no big deal. A webserver is just some code that listens for requests on port XX, processes the requests and sends back suitably formatted responses. -- Per Je

Re: [PHP] SSI not working on PHP files with Apache

2010-09-02 Thread Per Jessen
Michael Alaimo wrote: > Does special configuration have to take place with PHP to let apache > process server side include files that are HTML documents? > PHP doesn't care, but you will need to configure apache to do both SSI and PHP processing. -- Per Jessen, Zürich (17

Re: [PHP] Secure Communication?

2010-08-29 Thread Per Jessen
If all of that isn't really within your reach because you don't have your own server - get your own server and secure it. A leased server is available for e.g. EUR50/month and that money is better spent than you spending hour after hour trying to secure your application to run on an insecure

Re: [PHP] Secure Communication?

2010-08-29 Thread Per Jessen
on", which (in this context) is quite clearly HTTP + TLS. I didn't bother reading the rest because I had already had trouble understanding your previous questions. > Also, as per another responders statement, using a SSL does not > necessarily mean that the server is more secure.

Re: [PHP] Secure Communication?

2010-08-29 Thread Per Jessen
Jim Lucas wrote: > Per Jessen wrote: >> tedd wrote: >> >>> Hi gangl: >>> >>> I realize that the problem stated herein has been solved by others, >>> so I'm not claiming I've done anything new -- it's only new to me. >>>

Re: [PHP] Secure Communication?

2010-08-29 Thread Per Jessen
I've finished creating a method for establishing what I > think is secure communication between two servers. First thought - you're reinventing the wheel. When I connect to a server via https, I have secure communication. -- Per Jessen, Zürich (16.5°C) -- PHP General Mailing

Re: [PHP] Questions about $_SERVER

2010-08-29 Thread Per Jessen
not asking about the server, he's asking about the client. -- Per Jessen, Zürich (17.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread Per Jessen
x27;server_addr' and of > the 'remote_addr' on shared hosting? Is that possible? $_SERVER['SERVER_NAME'] will tell you the name of the virtual host - I don't know if that is what you're after. -- Per Jessen, Zürich (12.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Per Jessen
Tim Martens wrote: > Based on advice here and elsewhere, I think we're tending toward a an > "no framework" MVC approach and sub-directory model to get started. As > Per so elegantly stated "The subdirectory approach is easily rewritten > to an internal subdomai

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread Per Jessen
Peter Lind wrote: > On 26 August 2010 08:08, Per Jessen wrote: >> Tim Martens wrote: >> >>> Thanks for all your answers. To clarify my question, I'm looking for >>> advice regarding how best to set up users for a web app, e.g., >>> username.myapp.

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Per Jessen
an internal subdomain structure. -- Per Jessen, Zürich (17.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-25 Thread Per Jessen
rname option. This (in my mind) puts "username" a level lower than "myapp", whereas username.myapp.com does the opposite. -- Per Jessen, Zürich (17.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How verify whether browser arrived via IPv6, IPv4, domain or number

2010-08-18 Thread Per Jessen
> Will this always work? gethostbyname() does not return any IPv6 addresses. You need getaddrinfo(), but that is AFAIK not yet implemented for php. > Also what is the best way in php to check if an address is IPv4 or > IPv6? preg_match() ? -- Per Jessen, Zürich (16.2°C) -- PHP Ge

RE: RE: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
Bob McConnell wrote: > From: Per Jessen > >> Bob McConnell wrote: >> >>> In chronological order - >>> >>> Languages: [snip] C++ (Still don't >>> understand the purpose of objects or classes). >> >> Two words - encapsulat

Re: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
- ultimately though, PHP > does feel 'stale' comparatively. If you look at PHP as a language with a set of libraries, the language itself is as 'stale' as maybe C or Java or assembler - the language shouldn't change all that often, nor should the core libraries, b

RE: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
Bob McConnell wrote: > In chronological order - > > Languages: [snip] C++ (Still don't > understand the purpose of objects or classes). Two words - encapsulation and abstraction. -- Per Jessen, Zürich (17.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
or do you find you circulate in other web related > but non PHP focussed communities? No and no. > Are you a member or any other web tech communities, opensource > efforts, or standardization bodies - again, if so which? ACM, IEEE, openSUSE. -- Per Jessen, Zürich (16.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] socket multithreading problem

2010-07-29 Thread Per Jessen
Ümit CAN wrote: > I use PHP socket programming and I wish multithreading operation of > the socket . Don't use PHP, use C - it'll save you a lot of trouble in this context. -- Per Jessen, Zürich (15.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Per Jessen
Nilesh Govindarajan wrote: > On Wed, Jul 21, 2010 at 12:29 PM, Per Jessen wrote: >> Tom Sparks wrote: >> >>> How do I take the output from a command line program and update a >>> MYSQL database with it? >> >> | mysql -u user -p -Ddatabase >>

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Per Jessen
Tom Sparks wrote: > How do I take the output from a command line program and update a > MYSQL database with it? | mysql -u user -p -Ddatabase -- Per Jessen, Zürich (22.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Replication

2010-07-20 Thread Per Jessen
t to show up on the other 2 web servers. We have 3 in a load > balanced cluster. Linux servers. > > How did you go about it? rsync triggered by inotify. -- Per Jessen, Zürich (27.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML in emails

2010-07-06 Thread Per Jessen
our systems to customers') were simply ignored, apparently due to being plain text. We decided to "jazz them up" a bit, and it worked. -- Per Jessen, Zürich (25.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "php -l" - does it find *anything*?

2010-07-06 Thread Per Jessen
syntax. Same goes for e.g. the C lint - int main() { char *p; p=0; *p=0; } this is 100% syntactically correct, but will core dump if you run it. -- Per Jessen, Zürich (24.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML in emails

2010-07-04 Thread Per Jessen
Rick Pasotto wrote: > On Sun, Jul 04, 2010 at 06:31:38PM +0200, Per Jessen wrote: >> >> We follow the standard and send both text and html. > > The text portion is the *only* portion I read. > Cool, that is the whole point. -- Per Jessen, Zürich (24.3°C) --

Re: [PHP] HTML in emails

2010-07-04 Thread Per Jessen
aste > time with the standard's way and just go straight to sending simple > html pages since all modern browsers handle it well. > And, it appears to be the way web is going. > > What are you folks doing? We follow the standard and send both text and html. -- Per Jess

Re: [PHP] protecting email addresses on a web site

2010-06-15 Thread Per Jessen
>> >> In general, on contact forms or "about us" pages, I include some >> physical address and possibly a phone number. This might satisfy >> Ash's requirement for "contact details". >> >> Paul >> > > > It's not m

Re: [PHP] protecting email addresses on a web site

2010-06-15 Thread Per Jessen
ssible for people to email if needed. > I can not use javascript for this solution. I wouldn't bother - you won't escape the spammers anyway. :-( -- Per Jessen, Zürich (15.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getaddrinfo() - what is the equivalent php function?

2010-05-27 Thread Per Jessen
Per Jessen wrote: > AFAICT, gethostbyname() only works for ipv4 addresses, so that one is > out - dns_get_record seems to be really for dns only, i.e. it does not > look at /etc/hosts. Is there a hph function that essentially just > calls getaddrinfo() ? > Wow, lots of answ

[PHP] getaddrinfo() - what is the equivalent php function?

2010-05-26 Thread Per Jessen
AFAICT, gethostbyname() only works for ipv4 addresses, so that one is out - dns_get_record seems to be really for dns only, i.e. it does not look at /etc/hosts. Is there a hph function that essentially just calls getaddrinfo() ? -- Per Jessen, Zürich (19.1°C) -- PHP General Mailing List

Re: [PHP] Really impressive work

2010-05-06 Thread Per Jessen
t; > I imagine that each piece of jewelry must have the coordinates of > each setting in a database so that they can "on-the-fly" assemble the > finished product as per user's direction. > > For example, let's take the image of the basket pendant showing three

Re: [PHP] What is wrong with this code?

2010-04-27 Thread Per Jessen
27;uniqueness constraint violated', > Pg_Error::getMessage(Pg_Error::INTEGRITY_CONST_UNIQUE)); > and I can't see what I've done wrong :( Might this be better: public static function getMessage($ec) { $text = ''; if (array_key_exists($ec, $erro

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Per Jessen
only the text > - parse the HTML and extract the text elements. If the HTML is well-formed, this is relatively easily done with XSL, if not, you might need to use Beautiful Soup or similar. -- Per Jessen, Zürich (16.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: replying to list (I give up)

2010-04-25 Thread Per Jessen
Michiel Sikma wrote: > On 24 April 2010 16:14, Per Jessen wrote: > >> Ashley Sheridan wrote: >> >> >> >> >> Is there an actual WoW client for Linux or you run in Wine like >> >> environment? >> >> >> >> Thanks, >

RE: [PHP] Re: replying to list (I give up)

2010-04-24 Thread Per Jessen
run a surprising amount of > Windows-based software. Doesn't WoW need DirectX and all that? I have some old Windows games (Diablo, Alpha Centauri, Railroad Tycoon, Wolfenstein) I'd love to play under Wine, but so far I've not managed to make them work. -- Per Jessen, Z

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-22 Thread Per Jessen
Dan Joseph wrote: > On Wed, Apr 21, 2010 at 8:38 PM, David McGlone > wrote: > >> >> Are we gonna have to have a discussion on the use of "threading"? LOL >> >> >> > We just might. Personally, I use it to sow holes in the toe of my >

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Per Jessen
David McGlone wrote: > On Wed, 2010-04-21 at 17:07 +0200, Per Jessen wrote: >> David McGlone wrote: >> >> > Also, I do not want this discussion to turn into a flame war or >> > anything of such. I am simply just trying to have a discussion and >> > lea

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Per Jessen
thousands of others in this respect. Of course there are also lists that work the other way, but the PHP list is far from alone. -- Per Jessen, Zürich (17.0°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Per Jessen
roup list if > replying sends the reply to the OP. Reply-All. -- Per Jessen, Zürich (16.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replying to list

2010-04-21 Thread Per Jessen
I haven't checked, but I think all the lists I am on behave like this one. -- Per Jessen, Zürich (14.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to enable mail function with postfix supported.

2010-04-20 Thread Per Jessen
ix comes with its own sendmail equivalent, yuo should not have any problem using postfix. I certainly don't. -- Per Jessen, Zürich (8.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to do i18n better?

2010-04-20 Thread Per Jessen
Ashley Sheridan wrote: > On Tue, 2010-04-20 at 20:27 +0200, Per Jessen wrote: > >> Ashley Sheridan wrote: >> >> > That's the check I did on the last site i worked on (vicestyle.com) >> > The user agent string is checked for a language and the site use

Re: [PHP] How to do i18n better?

2010-04-20 Thread Per Jessen
r > choice. The standard in Apache is 'prefer-language'. -- Per Jessen, Zürich (12.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to do i18n better?

2010-04-19 Thread Per Jessen
would take a look at the gettext() mechanism: http://php.net/manual/en/book.gettext.php -- Per Jessen, Zürich (14.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Per Jessen
take seconds to assemble one such bundle, microseconds are probably not important. Depends on how many of those bundles you expect to be able to produce per minute/hour/day as well as what is supposed to happen with them after they've been assembled. -- Per Jessen, Zürich (10.8°C) -- PHP G

Re: [PHP] Allowing multiple, simultaneous, non-blocking queries.

2010-03-28 Thread Per Jessen
> My understanding is that at the base level, all queries are running on > a socket in some way, so isn't this facility nearly already there in > some way? AFAICT (i.e. without having tried it), myqlnd enables you to do asynchronous queries on mysql - the docuementation is a little lac

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-26 Thread Per Jessen
Peter Lind wrote: > Anyway, I don't think either of us will change point of view much at > this point - so we should probably just give the mailing list a rest > by now. Thanks for the posts, it's been interesting to read :) Most of it. +1 -- Per Jessen, Zürich (11.6°

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-26 Thread Per Jessen
> and even query results. Most of that is just sound practice, not optimizing, imho. Optimizing is what you do later. > I come from the video game world where gaining a frame or two of > animation per second matters. It makes your game feel less choppy and > more fluid and therefore

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
t of micro/nano second)? On average, exactly one per millisecond. /Per -- Per Jessen, Zürich (15.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
Peter Lind wrote: > I'm not against threads in PHP per se ... I just haven't seen a very > convincing reason for them yet, which is why I'm not very positive > about the thing. Roughly the same here - I don't think threading belongs in PHP, but if someone decides

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
Tommy Pham wrote: > I'm presenting the argument for threading. Per is presenting the work > around using asynchronous queries via mysqlnd. I did read that link a > few days ago, "Although the user can send multiple queries at once, > multiple queries cannot be sent over a

Re: [PHP] A cleaner way to do this?

2010-03-25 Thread Per Jessen
to linepattern2 } else if ( ($matches=preg_match(linepattern3,text,match))>0 ) { } else if ( ($matches=preg_match(linepattern4,text,match))>0 ) { } -- Per Jessen, Zürich (15.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
Tommy Pham wrote: > On Thu, Mar 25, 2010 at 1:46 AM, Per Jessen wrote: >>> * If you could implement threads and run those same queries in 2+ >>> threads, the total time saved from queries execution is 1/2 sec or >>> more, which is pass along as the total response

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
Per Jessen wrote: > CPU 100% - rarely, but it happens. > Memory 100% - all the time. > Disk IO 100% - less than all the time, but it's very busy. FYI, it's actually quite difficult to drive a disk subsystem to consistent 100% utilization over a period of time. Oracle uses a

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
hat he or she is using an interpreted language. > * If the requests are executed in parallel, the sooner the request > fulfillment completes, the faster it is to move to the next request > and complete it right? Correct. -- Per Jessen, Zürich (12.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
x is easy to pick up for anyone who has studied computer science - where he or she will already have been introduced to mutexes, semaphores, the Dining Philosophers, race conditions, deadlocks and such. -- Per Jessen, Zürich (12.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Per Jessen
rsus 2+? I said it yesterday already - having a single implementation language IS a positive, but it may not always be possible due to requirements. -- Per Jessen, Zürich (12.3°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   >