Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Jochem Maas
a seperate issue (see tedd's explaination) 2008/9/10 Jochem Maas [EMAIL PROTECTED] tedd schreef: At 6:46 PM -0600 8/31/08, Govinda wrote: Not that it is an issue, but just to understand the logic- Why do we have to use 'break' statements in each case? switch ($i) { case 0: echo i equals 0

Re: [PHP] [Fwd: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong]

2008-09-12 Thread Jochem Maas
Maciek Sokolewicz schreef: Forwarding to php-general. I think /dev/null would have been a better place. wtf is anyone supposed to do with this? (apart from ignore it?) Original Message Subject: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong Date:

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-11 Thread Jochem Maas
Lester Caine schreef: Luke wrote: yeah, make an official no-support date. That would be great- it would help with the whole IE6 problem. It needs to be phased out, yet I know many companies that still haven't upgraded to IE7 yet! That's a big security problem as well as being a headache for

Re: [PHP] Readdir() question

2008-09-11 Thread Jochem Maas
Ben Stones schreef: Hi, I'm going to make a small browser based file system for ease of small updates that I make frequently on my Website. First of all I want to loop all the files on the same directory and to tell PHP read the same directory, I think I'd need to use the magic constant I think

Re: [PHP] Readdir() question

2008-09-11 Thread Jochem Maas
Nathan Rixham schreef: Stut wrote: On 11 Sep 2008, at 13:12, Ben Stones wrote: I'm going to make a small browser based file system for ease of small updates that I make frequently on my Website. First of all I want to loop all the files on the same directory and to tell PHP read the same

Re: [PHP] Thank you...

2008-09-11 Thread Jochem Maas
Jason Pruim schreef: On Sep 11, 2008, at 8:58 AM, Micah Gersten wrote: There is only 1 military service person that should be thanked for actions on 9/11 and that is the man who was brave enough to disobey orders and shoot down the flight over Pennsylvania. The rest who were involved obeyed

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-11 Thread Jochem Maas
Colin Guthrie schreef: Lester Caine wrote: Jochem - You not had the problem of M$ changing default font sizes in different versions of windows? IT departments have enough problems with INSTALLING an upgrade without asking them to CHANGE the font size as well :) The complaint from THIS site

Re: [PHP] quick php for perl coder question

2008-09-11 Thread Jochem Maas
Thomas Bolioli schreef: I want to return an array from a function. I have this: return array($found, $username, $email, $nickname); as my code. I have a bug in the code and I am not sure where yet. Should the above statement with this: array($vars); not sure what you meant with the line

[PHP] namespaces ... coming to a php5.3 near you.

2008-09-11 Thread Jochem Maas
has anyone here downloaded/compiled 5.3 and played with namespaces? have you encountered any issues/problems? I'd like to hear from you as I've been asked to compile a reference documenting anything/everything people may have come across (so far as namespaces go), if you have some reproduce

Re: [PHP] Readdir() question

2008-09-11 Thread Jochem Maas
Nathan Rixham schreef: Jochem Maas wrote: Nathan Rixham schreef: Stut wrote: maybe this is into coding standards and ethics.. but this may be acceptable: if( !defined('__DIR__') ) { define('__DIR__' , dirname(__FILE__)); } however realistically you'd have to do this in every file and nto

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Jochem Maas
Jay Blanchard schreef: [snip] OK, this is getting ridiculous. I think we need a new PHP list. Something like [EMAIL PROTECTED] sounds about right. [/snip] I knew jealousy would rear its ugly head eventually. what's a pen? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Jochem Maas
Jason Pruim schreef: On Sep 10, 2008, at 1:10 PM, Jochem Maas wrote: Jay Blanchard schreef: [snip] OK, this is getting ridiculous. I think we need a new PHP list. Something like [EMAIL PROTECTED] sounds about right. [/snip] I knew jealousy would rear its ugly head eventually. what's

Re: [PHP] Setting up a password for WAMP

2008-09-10 Thread Jochem Maas
Ben Stones schreef: Hi, just installed WAMP and wondering how do I setup a root password for accessing phpMyAdmin, MySQL, etc. Couldn't find anything on the WAMP's Website how to do this. I realise this has got nothing to do with PHP specifically but any help will be appreciated! STFW? I'm

Re: [PHP] tedd's back from vacation

2008-09-10 Thread Jochem Maas
dont top post. Jay Moore schreef: Probably not totally work safe ;) Ah the perks of controlling the company network. I determine what is NSFW (nothing). Jay PS - If you guys are gonna gripe about top posting, you really need to learn to prune messages better. :P -- PHP General

Re: [PHP] pain

2008-09-10 Thread Jochem Maas
Nathan Rixham schreef: Not sure why I'm sharing this; but it could be a gotcha been there, got the T-shirt, see below for my work around. class testOuter { private $base; public function __construct() { $this-base = new testBase; } public function __call(

Re: [PHP] Length of Exception text?

2008-09-09 Thread Jochem Maas
Peter Ford schreef: Jochem Maas wrote: ANR Daemon schreef: Greetings, Jochem Maas. In reply to Your message dated Sunday, September 7, 2008, 20:56:37, I've been working on some PEAR-based app last week and I ran into problem. While I debugging app, my backtrace always trimmed at some point

Re: [PHP] Re: PHP Equivalent of JavaScript whatever.toFixed(2)

2008-09-09 Thread Jochem Maas
Ross McKay schreef: Arnie Shore wrote: Folks, I need to take a given float value to, say, two decimals, as per subject JS. I've RTFM, but to no avail. On Mon, 08 Sep 2008 22:03:54 +0200, Sjoerd wrote: $str = sprintf(%01.2f, $number); Skinning cat, method two: $str =

Re: [PHP] Re: Zend Platform

2008-09-09 Thread Jochem Maas
Colin Guthrie schreef: Nathan Rixham wrote: Short and sweet; does anybody have any practical experience; thoughts or case studies in regards to implementing the Zend Platform. I like it. I'm slowly converting across my companies applications to it, but it's a long process (mainly due to

Re: [PHP] Re: Regex help

2008-09-09 Thread Jochem Maas
Jason Pruim schreef: On Sep 9, 2008, at 5:02 PM, Nathan Rixham wrote: Jason Pruim wrote: On Sep 9, 2008, at 4:38 PM, Nathan Rixham wrote: Jason Pruim wrote: Hey everyone, Not completely specific to php but I know you guys know regex's better then I do! :) I am attempting to match

Re: [PHP] Re: PHP Equivalent of JavaScript whatever.toFixed(2)

2008-09-09 Thread Jochem Maas
Nathan Rixham schreef: Jochem Maas wrote: Ross McKay schreef: Arnie Shore wrote: Folks, I need to take a given float value to, say, two decimals, as per subject JS. I've RTFM, but to no avail. On Mon, 08 Sep 2008 22:03:54 +0200, Sjoerd wrote: $str = sprintf(%01.2f, $number); Skinning

Re: [PHP] Re: Basics of OOP

2008-09-09 Thread Jochem Maas
Nathan Rixham schreef: Ben Stones wrote: Hi, The following bit of code doesn't output anything: ?php class output { var $text; function outputText() { $this-text = Hello World; echo $this-text; } } $class = new output();

Re: [PHP] Re: Regex help

2008-09-09 Thread Jochem Maas
Jason Pruim schreef: On Sep 9, 2008, at 12:18 PM, Jochem Maas wrote: ... I'll have to do some searching :) always ;-) The problem with the internet is there is so much out there... Trying to weed the crap from the food can be a long digestive process which ends up with MORE crap

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-09 Thread Jochem Maas
tedd schreef: At 6:46 PM -0600 8/31/08, Govinda wrote: Not that it is an issue, but just to understand the logic- Why do we have to use 'break' statements in each case? switch ($i) { case 0: echo i equals 0; break; case 1: echo i equals 1; break; case 2: echo i equals 2;

Re: [PHP] Re[2]: Path of the class file of an object

2008-09-08 Thread Jochem Maas
don't top post. Ali Çevik schreef: Hi, I guess the word meaningless depends on what you are trying to do. So, I guess I have to describe what I'm trying to do. The problem is, I need to pass a php object to javascript via json and then back to php again using json. However, while doing that,

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-08 Thread Jochem Maas
David Lidstone schreef: Thanks very much to both of you. This does the trick! I had (stupidly) tried: foreach ($c as new RecursiveIteratorIterator($item)) which with hindsight is completely illogical! I also wasn't aware of the constants. Is there a simple tutorial / docs you know of for

Re: [PHP] Length of Exception text?

2008-09-08 Thread Jochem Maas
ANR Daemon schreef: Greetings, Jochem Maas. In reply to Your message dated Sunday, September 7, 2008, 20:56:37, I've been working on some PEAR-based app last week and I ran into problem. While I debugging app, my backtrace always trimmed at some point. First time I though it was my mistake

Re: [PHP] Re[2]: Path of the class file of an object

2008-09-08 Thread Jochem Maas
a classloader that scans a given directory tree for files named ala point 1. and caches the results in a file or shared memory and uses that info to load classes via autoload, works very well. On Mon, Sep 8, 2008 at 12:24 PM, Jochem Maas [EMAIL PROTECTED] wrote: don't top post. Ali Çevik

Re: [PHP] Re: Interntet Explorer 8 beater 2

2008-09-08 Thread Jochem Maas
Ross McKay schreef: On Mon, 8 Sep 2008 13:03:18 +0100, Richard Heyes wrote: I really don't want to install a beta (though I did install Chrome, so maybe that should be an MS beta) but I am interested in how it performs. That's what God invented the virtual machine for. Load up Windows XP in

Re: [PHP] Length of Exception text?

2008-09-07 Thread Jochem Maas
ANR Daemon schreef: Greetings, All. I've been working on some PEAR-based app last week and I ran into problem. While I debugging app, my backtrace always trimmed at some point. First time I though it was my mistake, and switched back to standard Exception class. But nothing changed. If I print

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-07 Thread Jochem Maas
David Lidstone schreef: Hi I am getting myself quite confused while trying to use SPL to recursively iterate through a collection of objects, and any help would be greatly appreciated! My collection of objects is contained in a class (which I frequently use to iterate through objects

Re: [PHP] php image and javascript include

2008-09-07 Thread Jochem Maas
Reese schreef: b wrote: javasac wrote: [lots of stuff ...] Second, at least one of the image paths is relative to your own desktop computer's drive (why is it that this always happens on a Windows box?) td width=11

Re: [PHP] Google Chrome

2008-09-05 Thread Jochem Maas
Robert Cummings schreef: On Fri, 2008-09-05 at 03:15 +0200, Jochem Maas wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 5:22 PM, Jochem Maas [EMAIL PROTECTED] wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already

Re: [PHP] Sending username/password

2008-09-05 Thread Jochem Maas
Jay Moore schreef: Wolf wrote: Jay Moore wrote: Greetings list! Is it possible (and if so, how) to send username and password information to a website with PHP? In one word... CURL A couple of people have responded (to me; not the list) with that very same response. I've heard of it,

Re: [PHP] Google Chrome

2008-09-04 Thread Jochem Maas
Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash so forcing a browser to crash is not 'Denial of

Re: [PHP] Summing array indexes.

2008-09-04 Thread Jochem Maas
Tom Shaw schreef: Thanks for every ones help. I just used a bunch of control structures and issest's to add it up. Not pretty but works. if (isset($data['order_product_amount_0'])) { $data['order_product_total'] = number_format($data['order_product_amount_0'], 2, '.', ''); } if

Re: [PHP] PHP: Mulitiple Arrary Sort

2008-09-04 Thread Jochem Maas
Diogo Neves schreef: On Wed, Sep 3, 2008 at 12:35 AM, Vernon [EMAIL PROTECTED] wrote: I've gotten the one array down and I've figured out how to sort that array, however, I need to sort the array by the modified date of the file. Here's what I got so far: ?php // Open current directory

Re: [PHP] Google Chrome

2008-09-04 Thread Jochem Maas
Bastien Koert schreef: On Thu, Sep 4, 2008 at 5:22 PM, Jochem Maas [EMAIL PROTECTED] wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539

Re: [PHP] Google Chrome

2008-09-03 Thread Jochem Maas
Haig Dedeyan schreef: On September 2, 2008 05:56:23 pm Haig Dedeyan wrote: Does anyone know what this implies? It's the 2nd section from their license agreement: By submitting, posting or displaying the content you give Google a perpetual, irrevocable, worldwide, royalty-free, and

Re: [PHP] Recommendation

2008-09-03 Thread Jochem Maas
Jason Pruim schreef: On Sep 2, 2008, at 3:08 PM, Jay Blanchard wrote: [snip] ... [/snip] Who is going to create the group? just a quick search of groups on linked in showed 134 groups related to php. And my profile: http://www.linkedin.com/pub/9/59a/b41 :) and the guy that started

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Jochem Maas
Robert Cummings schreef: On Wed, 2008-09-03 at 06:28 -0700, alexander lind wrote: Hi All I just tested my PHP app on Ubuntu 64bit, and found that all my php scripts would consume about 5x more RAM memory there, compared to how much they use on my macbook pro (which to make things a bit

Re: [PHP] Google Chrome

2008-09-03 Thread Jochem Maas
Jim Lucas schreef: Nathan Nobbe wrote: On Wed, Sep 3, 2008 at 3:27 AM, Richard Heyes [EMAIL PROTECTED] wrote: when will Google bring out the Google levitation device...? i heard they programmed it in c++ :) -nathan I would think something that sophisticated should be written in LISP

Re: [PHP] need to display a number of items based on browser size, before i get to run any js

2008-09-03 Thread Jochem Maas
Rene Veerman schreef: Hi. Today, i've got a chicken-and-egg puzzle for your enjoyment :) to me you've created a problem that doesn't exist .. if you use gracefully degrading, valdating content that therefore doesn't *rely* on script to make something usable. In order to properly support

Re: [PHP] Re: PHP on 64bit Ubuntu

2008-09-03 Thread Jochem Maas
Colin Guthrie schreef: Robert Cummings wrote: On Wed, 2008-09-03 at 11:55 -0700, alexander lind wrote: For anyone that might be following this thread because they also have a memory problem (on a 64 bit platform or not), here is some advice on how to alleviate it: - Use a bytecode cacher

Re: [PHP] Altering the error_reporting

2008-09-03 Thread Jochem Maas
Micah Gersten schreef: This seems like a futile activity. It's a waste of time to have to hunt down an error if you can be told where it is. I suggest spending time improving coding standards that error chasing. besides, try grepping the archives for the number of posts that post errors

Re: [PHP] CMS-Blog system

2008-09-03 Thread Jochem Maas
Martin Zvarík schreef: Hi, I am working on CMS-Blog system, which will be using approx. 10 000 users. using them? sounds like google or M$ I have a basic question - I believe there are only two options - which one is better? 1) having separate databases for each blog = fast (problem:

Re: [PHP] Altering the error_reporting

2008-09-03 Thread Jochem Maas
the info in the format: handler ( int $errno , string $errstr [, string $errfile [, int $errline [, array $errcontext ]]] ) you could print out the first two pieces, and not the last 3... On Wed, Sep 3, 2008 at 5:10 PM, Jochem Maas [EMAIL PROTECTED] wrote: Micah Gersten schreef: This seems like

Re: [PHP] Mozilla user agent escapes detection

2008-09-02 Thread Jochem Maas
Dave M G schreef: PHP List, I have a script, part of which is taken from a script I found on the 'net, which tries to detect the user agent of the browser accessing the site. One of the reasons I'm doing this is to find out if the browser is a desktop or mobile. Part of the code looks like

Re: [PHP] Individual bulk e-mails - performance question (was skinning a cat) :-)

2008-09-02 Thread Jochem Maas
Robert Cummings schreef: On Mon, 2008-09-01 at 14:34 +0200, Merlin Morgenstern wrote: Per Jessen schrieb: Jochem Maas wrote: lockfile=/var/lock//file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile ( touch $lockfile run some php rm -f

Re: [PHP] Google Chrome

2008-09-02 Thread Jochem Maas
Richard Heyes schreef: Hi, Looks like Google chrome is being released today (or soon). IE, Firefox, Opera, Safari and now Chrome, hmmm, can anyone say browser war? http://www.google.com/googlebooks/chrome/ to quote Han Solo : I have a bad feeling about this -- PHP General Mailing List

Re: [PHP] Google Chrome

2008-09-02 Thread Jochem Maas
Richard Heyes schreef: Hi, Looks like Google chrome is being released today (or soon). IE, Firefox, Opera, Safari and now Chrome, hmmm, can anyone say browser war? http://www.google.com/googlebooks/chrome/ I've been reading this ... very well done all in all, on page 37 they say But Google

Re: [PHP] Mozilla user agent escapes detection

2008-09-02 Thread Jochem Maas
Shawn McKenzie schreef: Jochem Maas wrote: Dave M G schreef: PHP List, I have a script, part of which is taken from a script I found on the 'net, which tries to detect the user agent of the browser accessing the site. One of the reasons I'm doing this is to find out if the browser

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Jochem Maas
Per Jessen schreef: Robert Cummings wrote: #!/bin/sh while true do yourscript sleep 300 done I accomplish the same with cron scripts by using locks with expiry. got an example? my cat skinning skills need to be improved, the cat won't like it but screw the cat, right? [snip code] I

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Jochem Maas
Colin Guthrie schreef: Jochem Maas wrote: either way, I've just learn't something new as far as shellscripting goes :-) apart from the xargs command ... that still does my head in (don't worry I'll look it up ... for the umpteenth time). find $lockfile -cmin +60 | xargs rm FWIW, it's nicer

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Jochem Maas
Per Jessen schreef: Jochem Maas wrote: lockfile=/var/lock//file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile ( touch $lockfile run some php rm -f $lockfile ) wouldn't creating a dir be better here? (with regard to atomicity) I haven't

Re: [PHP] casting static property

2008-08-31 Thread Jochem Maas
Diogo Neves schreef: Hi all, Why a static var don't cast as a dynamic one? See file for more info... attachments get stripped. don't cross post to internals, it's bad form. try and formulate your questions a bit better (it should take you more time to write your post than it takes for someone

Re: [PHP] Individual bulk e-mails - performance question

2008-08-31 Thread Jochem Maas
Robert Cummings schreef: On Sun, 2008-08-31 at 12:12 +0200, Per Jessen wrote: Robert Cummings wrote: That's easily taken care of. Instead of a cron-job, you could have a script running as a daemon, checking for emails to be sent every 5mins. That's the same as running a cron every 5 minutes

Re: [PHP] casting static property

2008-08-31 Thread Jochem Maas
believe yes On Sun, Aug 31, 2008 at 5:37 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Sun, 2008-08-31 at 17:09 +0200, Jochem Maas wrote: Diogo Neves schreef: Hi all, Why a static var don't cast as a dynamic one? See file for more info... attachments get stripped. don't cross post to internals

Re: [PHP] casting static property

2008-08-31 Thread Jochem Maas
() { echo \$this-e = {$this-e}; }}' On Sun, Aug 31, 2008 at 7:09 PM, Jochem Maas [EMAIL PROTECTED] wrote: Diogo Neves schreef: Sorry, i have no webserver... but I can send all code in the email, right? you can use pastebin.com. I also recommend you write reproduce/example code like

Re: [PHP] Individual bulk e-mails - performance question

2008-08-31 Thread Jochem Maas
Robert Cummings schreef: On Sun, 2008-08-31 at 17:10 +0200, Jochem Maas wrote: Robert Cummings schreef: On Sun, 2008-08-31 at 12:12 +0200, Per Jessen wrote: Robert Cummings wrote: That's easily taken care of. Instead of a cron-job, you could have a script running as a daemon, checking

Re: [PHP] casting static property

2008-08-31 Thread Jochem Maas
Diogo Neves schreef: Newbie :( another tip: don't top post :-) that said don't feel bad, you make a lot more effort than most noobs ... personally I wish every newcomer would be so open to pointers/critism/tips/etc and made as much effort as you do, this place would be better off. so ...

Re: [PHP] Individual bulk e-mails - performance question

2008-08-31 Thread Jochem Maas
Robert Cummings schreef: On Sun, 2008-08-31 at 21:42 +0200, Jochem Maas wrote: Robert Cummings schreef: I assume that this is coming from your interjinn lib, and that it's aimed at php4 (given the ampersands your throwing about) also your LockManager object seems to have a get

Re: [PHP] ASCII Captcha

2008-08-31 Thread Jochem Maas
tedd schreef: At 10:58 AM +0100 8/31/08, Diogo Neves wrote: Well, I don't know how, but google folks @ gmail are doing a great job with anti-spam tecnology... i believe that is has something to do with the massive user base that can more accuratly say what is spam and blacklist it plus

Re: [PHP] ASCII Captcha

2008-08-31 Thread Jochem Maas
Robert Cummings schreef: On Sun, 2008-08-31 at 10:46 -0400, tedd wrote: At 5:39 AM -0400 8/31/08, Robert Cummings wrote: On Sat, 2008-08-30 at 10:17 -0400, tedd wrote: At 3:27 PM +0200 8/30/08, Jochem Maas wrote: 2. you can't shut him down either, he does'nt have an off button. Yeah

Re: [PHP] ASCII Captcha

2008-08-31 Thread Jochem Maas
Stut schreef: Good points all, but I'd add two more from my own collection... nice posts, both of you! it's time I rewrote my general form submission routines ... I'll be taking all your suggestions and putting them into practice (in so far as I don't do so already). free specs for better

Re: [PHP] Search Suggestions

2008-08-31 Thread Jochem Maas
Dan Shirah schreef: Hello, I'm hoping to get a few good ideas on the best way to perform a search of PHP results. Currently I have a page that returns a list of collapsed customer data: Example + John Smith + Jane Doe + Robert Jones + Dale Bennett If the user clicks on a customer name it

Re: [PHP] Individual bulk e-mails - performance question

2008-08-31 Thread Jochem Maas
Robert Cummings schreef: On Sun, 2008-08-31 at 16:25 -0400, Robert Cummings wrote: On Sun, 2008-08-31 at 22:21 +0200, Jochem Maas wrote: Robert Cummings schreef: On Sun, 2008-08-31 at 21:42 +0200, Jochem Maas wrote: Robert Cummings schreef: I assume that this is coming from your

Re: [PHP] ASCII Captcha

2008-08-31 Thread Jochem Maas
Ross McKay schreef: On Sun, 31 Aug 2008 18:49:15 +0100, Stut wrote: Field names Don't name fields things like name, email, address, postcode, message, etc. Instead name them a, b, c, d, e, etc but name your hidden field email. That should provoke most bots into changing that value and

Re: [PHP] casting static property

2008-08-31 Thread Jochem Maas
Govinda schreef: On Aug 31, 2008, at 2:17 PM, Jochem Maas wrote: another tip: don't top post :-) does top post mean to puts one's reply text at the top of the email? exactly. People prefer it to be at the bottom? generally yes, the longer you hang around on mailing list and the like

Re: [PHP] Printing date out of array

2008-08-31 Thread Jochem Maas
Michael S. Dunsavage schreef: This is my date array: $months = array (1 = 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); you want, if you ask me, to get you head round the following functions.

Re: [PHP] ASCII Captcha

2008-08-31 Thread Jochem Maas
Ross McKay schreef: Jochem Maas wrote: any idea as to whether auto-fill can recognize stuff like: foo[email] or email[foo] or email_foo [...] AFAIK, the auto-fill form stuff works off previously entered field names. If a user enters their email address into a field called 'email

[PHP] Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2008-08-31 Thread Jochem Maas
redirecting to generals mailing list ... Diogo Neves schreef: php -r 'class B { private static function a() {} public function __callStatic($method, $parms) { echo $method, \n; } } $a = new B; $a::a();' Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in Command line code on line 1

Re: [PHP] switch case - to require the break statements seems strange to me

2008-08-31 Thread Jochem Maas
Govinda schreef: Not that it is an issue, but just to understand the logic- Why do we have to use 'break' statements in each case? switch ($i) { case 0: echo i equals 0; break; case 1: echo i equals 1; break; case 2: echo i equals 2; break; } all 3 cases fire, even

Re: [PHP] ASCII Captcha

2008-08-30 Thread Jochem Maas
Robert Cummings schreef: ... using bots to crack Google’s captchas. I really don't see how this story supports your arguments in the least and as such I will not be answering anymore of your drivel. You appear to have nothing of usefulness to add to the conversation. I didn't think it

Re: [PHP] Function __call

2008-08-30 Thread Jochem Maas
Diogo Neves schreef: hi all, I'm sending this email only to ask if someone know if the works of __call in private methods is bug or feature. ex. class user { public function __call ( $name, $arguments ) { do something return call_user_func( array( $this, $name ), $arguments ); the fatal

Re: [PHP] Re: With regard to: [PHP] ASCII Captcha

2008-08-30 Thread Jochem Maas
Jim Lucas schreef: Robert Cummings wrote: On Sat, 2008-08-30 at 00:01 -0400, Eric Gorr wrote: No, I will not help you troll. But, I certainly cannot prevent you from doing so. Hopefully the list moderators will shut you down. This is PHP General. We discuss PHP and related issues.

Re: [PHP] Function __call

2008-08-30 Thread Jochem Maas
a method private then you want to expose the very same method publically via __call(), quite simply the method should be public in that example. On Sat, Aug 30, 2008 at 2:38 PM, Jochem Maas [EMAIL PROTECTED] wrote: Diogo Neves schreef: hi all, I'm sending this email only to ask if someone know

Re: [PHP] Bug in array_key_exist?

2008-08-30 Thread Jochem Maas
Korgan schreef: Korgan napsal(a): Jim Lucas napsal(a): Korgan wrote: Hi, I have a problem with array_key_exists in if statement. I have a class with this function class XXX { private items = array(); ... ... ... public function addXXX($id, $count) { $count = (int)$cout;

Re: [PHP] Function __call

2008-08-30 Thread Jochem Maas
please keep replies on list unless your intending to pay me an hourly fee ... Diogo Neves schreef: On Sat, Aug 30, 2008 at 4:40 PM, Jochem Maas [EMAIL PROTECTED] wrote: Diogo Neves schreef: ... nop... I wanna manipulate the $this and the $arguments, and possible don't even execute

Re: [PHP] ASCII Captcha

2008-08-30 Thread Jochem Maas
tedd schreef: At 3:25 PM +0100 8/30/08, Stut wrote: in the meantime I stand by my assertion that a 'phone number people can call with any type of telephone to interact with another human who can get them past the check without compromising the protection the check affords is ultimate

Re: [PHP] Function __call

2008-08-30 Thread Jochem Maas
Diogo Neves schreef: Hi, On Sat, Aug 30, 2008 at 6:20 PM, Jochem Maas [EMAIL PROTECTED] wrote: please keep replies on list unless your intending to pay me an hourly fee ... Yeap, i'm new in the list and i missed te cc of list... i'll try to remember, sorry okay. Diogo Neves schreef

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Robert Cummings schreef: On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: Micah Gersten schreef: I suggest creating a shell wrapper for PHP that will write the command to a file for you and then call PHP with the appropriate arguments. PHP won't even see most of the command that you

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
David Otton schreef: 2008/8/28 Jochem Maas [EMAIL PROTECTED]: I have a feeling I'm out of luck - probably security issues that keep you from doing such a thing as well. I did have the idea of grabbing the PID and then grepping the output of ps via exec() ... that would do it, but I reckon

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Mark Weaver schreef: Hi All, Go figure... I sat down today to get some more work on my current project; I got to a certain point where I need to step through an array with a foreach loop. I found that I need to test for the current pointer position of the array, but I haven't a clue as to

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Stut schreef: On 29 Aug 2008, at 19:46, Jochem Maas wrote: David Otton schreef: 2008/8/28 Jochem Maas [EMAIL PROTECTED]: I have a feeling I'm out of luck - probably security issues that keep you from doing such a thing as well. I did have the idea of grabbing the PID and then grepping

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Dan Joseph schreef: On Fri, Aug 29, 2008 at 2:40 PM, Mark Weaver [EMAIL PROTECTED] wrote: ... This may also help as well as Jochem's suggestion: http://us2.php.net/key not unless you wan't a headache (re-read the bit about foreach's internal pointer): php -r '$r = array(a,b,c);

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
Robert Cummings schreef: On Fri, 2008-08-29 at 15:36 -0400, Robert Cummings wrote: On Fri, 2008-08-29 at 20:42 +0200, Jochem Maas wrote: Robert Cummings schreef: On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: Micah Gersten schreef: I suggest creating a shell wrapper for PHP

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
David Otton schreef: 2008/8/29 Jochem Maas [EMAIL PROTECTED]: in what sense won't it work? the complete line is in the output of ps somewhere albeit after wildcard/shell expansion. With the pipe? I'd really like to see an example, beacuse I couldn't coax it out of ps, and it might be handy

Re: [PHP] grab the complete commandline used ...

2008-08-29 Thread Jochem Maas
kind of beast, I'm of another genus :) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: David Otton schreef: Quote the entire command as a string. Pass it to a shell script that sets an environment variable to that string, then executes

Re: [PHP] Testing for Current pointer position in array during iteration

2008-08-29 Thread Jochem Maas
Mark Weaver schreef: tedd wrote: ... Try looking at current http://www.php.net/current Maybe that will help. not in the context of foreach() (I'll repeat the oneliner here because tedd's old and has a crap email client ;-): php -r '$r = array(a,b,c); next($r); $K = key($r); foreach ($r

Re: [PHP] Is this a bug?

2008-08-29 Thread Jochem Maas
T Lensselink schreef: Catalin Zamfir Alexandru, DATAGRAM SRL wrote: Hello guys, I've been stalking on the list for some time. Didn't have anything to report/talk, until now. I have a code like this, maybe you guys can reproduce it, with output buffering started: Echo

Re: [PHP] ASCII Captcha

2008-08-29 Thread Jochem Maas
tedd schreef: At 9:32 PM +0100 8/29/08, Stut wrote: That's ultimate accessibility, assuming it supports all types of telephone, but it's also a major expense needing 24/7 coverage. Not something my company of 5 people could hope to support on a free-to-use site. -Stut -Stut: I hesitated

Re: [PHP] ASCII Captcha

2008-08-29 Thread Jochem Maas
Eric Gorr schreef: On Aug 29, 2008, at 5:19 PM, tedd wrote: ... There is no documentation anywhere which claims, as you do, that it is impossible to design a captcha which deals with accessibility issues. a lack of evidence proving the impossible ... there is a logic flaw there somewhere.

Re: [PHP] Problem with HTML special characters

2008-08-29 Thread Jochem Maas
Michelle Konzack schreef: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] ASCII Captcha

2008-08-29 Thread Jochem Maas
Eric Gorr schreef: On Aug 29, 2008, at 5:51 PM, Jochem Maas wrote: Eric Gorr schreef: On Aug 29, 2008, at 5:19 PM, tedd wrote: ... There is no documentation anywhere which claims, as you do, that it is impossible to design a captcha which deals with accessibility issues. a lack

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-29 Thread Jochem Maas
James Ausmus schreef: On Tue, Aug 26, 2008 at 10:08 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 26 August 2008 17:15, James Ausmus advised: On Tue, Aug 26, 2008 at 8:57 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 25 August 2008 00:54, Govinda advised: snip Personally, I might be tempted to

Re: [PHP] Converting JPG to Windows BMP

2008-08-29 Thread Jochem Maas
Edward Diener schreef: I have a JPG file on the server which I want to convert to a Windows BMP file. How can I do this in PHP ? I did not see a GD image function for doing this. looks like you can do it using imagemagick: http://www.imagemagick.org/Usage/formats/#bmp -- PHP General

Re: [PHP] Manual Coding vs. CMS Systems

2008-08-28 Thread Jochem Maas
Auto-Deppe, C. Haensel schreef: Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note:

[PHP] grab the complete commandline used ...

2008-08-28 Thread Jochem Maas
hiya, anyone know if it's possible to grab the entire commandline that was used to start up a php script on the CLI, an example of what I'm looking to grab from within the script (test.php in this example): php -qC -ddisplay_errors=1 ./test.php -o -d -e [EMAIL PROTECTED] -f ./last.log | grep

Re: [PHP] Manual Coding vs. CMS Systems OT

2008-08-28 Thread Jochem Maas
Carlos Medina schreef: Watch him go... there is Carloos, the man infront of all the others. He is WAY ahead, and he is gaining more and more speed. He is an adult, and he is sooo adult that he can't even take a laugh... see him run from the humor! Faster and faster he runs... and there

Re: [PHP] grab the complete commandline used ...

2008-08-28 Thread Jochem Maas
Robert Cummings schreef: On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote: Does this work? $command = implode(' ', $argv); no syntax errors, so in that sense it works. but it doesn't answer my question (check the body of the post as well as the subject and that might become clear).

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