Re: [PHP] Separating words based on capital letter

2007-04-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-25 00:16:40 +0300: > I have some categories named in the database as such: > OpenSource > HomeNetwork > > I'd like to add a space before each capital letter, ideally not > including the first but I can always trim later if need be. As I'm > array_walking the database,

Re: [PHP] Json.php

2007-04-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-20 10:19:04 +0200: > Richard Lynch wrote: > > On Thu, April 19, 2007 2:25 am, Roman Neuhauser wrote: > >> I'm at a complete loss then. Richard, what would you advise to someone > >> in such a messy situation? > > > > I don&

Re: [PHP] Re: auto page generation

2007-04-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-20 10:26:29 +1000: > Michelle Konzack wrote: > >Hello Tim, > > > >Am 2007-04-16 19:22:21, schrieb Tim: > >>Also can i reccomend: > >> > >>"Web Database Applications with PHP and MySQL" > > > >Do you know an equivalent book for php5 and PostgreSQL 8.1/8.2? > > Beginnin

Re: [PHP] warning message to hide

2007-04-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-19 17:57:25 -0500: > On Thu, April 19, 2007 5:47 pm, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-04-19 17:28:42 -0500: > >> On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote: > >> > No, I've been using php-recommended.

Re: [PHP] warning message to hide

2007-04-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-19 17:28:42 -0500: > On Thu, April 19, 2007 2:27 am, Roman Neuhauser wrote: > > No, I've been using php-recommended.ini for the last several years. > > It has that error_reporting = E_ALL by default, and that's one of the > > reasons I

Re: [PHP] Json.php

2007-04-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-19 10:50:19 +0200: > Roman Neuhauser wrote: > >>> I wouldn't do it that way. A single class should not be a database > >>> driver *and* manage connections. > >> fair enough, although personally I find that going a bit far, I d

Re: [PHP] warning message to hide

2007-04-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-18 23:03:08 -0500: > On Wed, April 18, 2007 2:21 am, Tijnema ! wrote: > > Hmm, this is what i get: > > ~# php -r 'var_dump($foo);' > > NULL > > ~# php -r 'var_dump(@$foo);' > > NULL > > > > > > PHP6 snapshot from a month ago. > > Your php.ini doesn't have error_report

Re: [PHP] Json.php

2007-04-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-19 02:19:14 +0200: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-04-18 11:54:59 +0200: > >> but a practical question for you Roman (seeing as your very much > >> into OOP), > > > > I'm not very much into OO

Re: [PHP] Json.php

2007-04-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-18 11:54:59 +0200: > Roman Neuhauser wrote: > > That's an incident waiting to happen, and forbidding static calls of > > instance methods is an (intended) anti-footshooting measure. > > nothing an isset($this) didn't/doesn't solve

Re: [PHP] Json.php

2007-04-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-18 04:59:48 -0400: > >So only one of these is "kosher" > >static: > >return Services_JSON::decode($data); > > > >class: > >$json = new Services_JSON; > >return $json->decode($data); > >but not both. > > I'm not trying to start (or further add fuel to) any kind of war

Re: [PHP] isset

2007-04-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-17 13:59:39 +0200: > > > > The count is maintained internally as items are > > added/removed, and it > > > is an O(1) operation for PHP to "count" the array, as it > > already knows > > > the answer and just returns it. > > > Hi nothing to do with the actual top

Re: [PHP] warning message to hide

2007-04-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-18 07:55:05 +0100: > On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > >On Sat, April 14, 2007 12:12 pm, Tijnema ! wrote: > >>> try putting an @ sign before this line. something like this: > >>> @$conn = pg_connect($conn_string); > >> > >> According to the manual:

Re: [PHP] Different behaviour : command line / cron

2007-04-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-17 18:41:46 -0400: > Hi, > > I've developed a simple script that among other things sends a fax using > hylafax's sendfax program. If I test it calling directly from the command > line it works fine. > > If I let it run from cron it executes everything fine except

Re: [PHP] Json.php

2007-04-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-16 14:03:55 +0200: > Jochem Maas wrote: > > > >that's going to make it completely impossible to use then isn't it. > >no way you could possibly wrap the class/objects functionality in a wrapper > >function. > > > At the moment it's sufficient, since I've now time to fi

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-13 07:49:43 +0200: > > > Just post your source already. > > > > ok, the complete workflow is a little bit complicated. we are using a > workflow engine and the newsletter generator is one step of three. the > first cleans the statistics data, the second generates th

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-12 18:17:34 +0200: > 3-4 seconds is dead slow if you ask me - a script like this should be capable > of > making the average mailserver go completely apeshit assuming you'd be mailing > the > newsletters out directly after creating them [rather than storing them in a

Re: [PHP] token_get_all ...

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-12 22:23:23 +0200: > does anyone know if I can rely on token_get_all() tokenized anything > and everything that is thrown at it? It's an interface to the PHP scanner. IOW, yes. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. Yo

Re: [PHP] php5 oop question

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-11 23:44:16 -0700: > Paul Scott wrote: > >On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: > > > >>Has anybody else seen this style of syntax? > >> > >http://5ive.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=init_8059_1163957717&userid=5729061010 > > > >

Re: [PHP] php5 oop question

2007-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-11 23:36:56 -0700: > Paul Scott wrote: > >On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: > >>Has anybody else seen this style of syntax? > > >I don't think that its really useful for anything, except maybe creating > >overly complex SQL queries. > > What about usi

Re: [PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-11 16:34:27 -0300: > 2007/4/11, Roman Neuhauser <[EMAIL PROTECTED]>: > > > ># [EMAIL PROTECTED] / 2007-04-09 19:45:41 -0300: > >> Thanks but that's not what I'm looking for. As I said before, my problem > >> isn&#x

Re: [PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-09 19:45:41 -0300: > Thanks but that's not what I'm looking for. As I said before, my problem > isn't to find an implementation of an ORM, but that the concept I'm working > on will use a very restricted API (array operations), and I'm having trouble > to keep it coher

Re: [PHP] Question about OO design

2007-04-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-09 15:29:01 -0700: > (I'm dealing with PHP4.) > > class User > { > var id; > var name; > var email; > var balance; > var accrual; > var is_manager; > > function User($user_id) > { > $this->id = $user_id; >

Re: [PHP] Re: Random Unique ID

2007-03-22 Thread Roman Neuhauser
# markw@mohawksoft.com / 2007-03-22 08:49:59 -0400: > Tijnema ! wrote: > > > On 3/22/07, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > >> > >> http://www.ossp.org/pkg/lib/uuid > > > > Note that this doesn't gonna work when safe mode is on..!

Re: [PHP] Re: Random Unique ID

2007-03-22 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-21 21:03:35 -0500: > Mark wrote: > >[EMAIL PROTECTED] wrote: > > > >>Hello, > >> > >>I want to add a random unique ID to a Mysql table. Collisions > >>are unlikely but possible so to handle those cases I'd like to > >>regenerate the random ID until there is no collisi

Re: [PHP] What API does PHP need?

2007-03-22 Thread Roman Neuhauser
# markw@mohawksoft.com / 2007-03-20 23:44:48 -0400: > I want to write another PHP extension, for no real reason, I've written a > few and just want to keep up to date. > > What sort of API would you like to see? dup(2) -- How many Vietnam vets does it take to screw in a light bulb? You don't kn

Re: [PHP] Re: working with class inheritance

2007-03-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-20 19:14:17 +1030: > ""Jeff Taylor"" <[EMAIL PROTECTED]> wrote in > message news:[EMAIL PROTECTED] > > Hey all, got a slight problem, where for some reasons my variables > > dont seem to be getting stored in the child class: > > > > e.g > > > > class Parent > > { > >

Re: [PHP] Re: how to display images stored in DB

2007-03-04 Thread Roman Neuhauser
# martin@bugs.unl.edu.ar / 2007-03-03 09:18:08 -0300: > We have a system (I didn't work on it, just maintaining it) that has > about 1100 images in a directory. I think we aren't seen any problems > just because it's on a 64bit system. You should test that assumption. -- How many Vietnam vets

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-02 21:37:48 +0100: > However... 6000 small files (and a sub if obliged) I cannot see one heck of a > good reason NOT to hold storage in a database... Imagine the rotten backup > cyclus. I cannot imagine it. What was the problem? -- How many Vietnam vets does it t

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-01 12:46:09 -0500: > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: > >In this discussion I have stated reasons why it is a bad idea. No one has > >come up with a counter point which can only be served by a database and > >thus proves me wrong. I think that says

Re: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-01 18:28:35 +0200: > #/thepathtophp > > exec("ls -lrt", $stdout, $exitcode); > > if($exitcode!=0) { > echo "Command ls -lrt could not be executed correctly. Exit code: > $exitcode\n"; > } else { > echo "Result:\n"; > foreach($std

Re: [PHP] PHP Documentation in XML

2007-02-28 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-27 20:38:37 -0800: > Does anyone know where I could find PHP Documentation in XML or in an SQL > dump? In the source repository. http://www.php.net/anoncvs.php -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Ca

Re: [PHP] phpmyadmin for FC6

2007-02-23 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-23 21:23:37 +0800: > Which version of phpMyadmin are you using with FC6 ? none -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing

Re: [PHP] serialize() and special ANSI characters

2007-02-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-19 17:29:53 +0100: > Roman Neuhauser wrote: > > > >class serializeASCII241 extends Tence_TestCase > >{ > >function testTruncates() > >{ > >return $this->assertEquals( > >"120GB 2X512MB

Re: [PHP] serialize() and special ANSI characters

2007-02-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-19 15:56:15 +0100: > I'm just curious to find out if I'm the only person to have bumped into > this kind of issue with serialize/unserialize. > > When I try and serialize an array containing a string value with the "?" > character (alt+241 ASCII) such as : > "

Re: [PHP] Object ID

2007-02-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-14 19:31:00 +0200: > Hi, > > How can I get the object ID number of each Object in PHP (v.5.2) ? http://cz2.php.net/manual/en/function.spl-object-hash.php -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you

Re: [PHP] Getting mysql_query results into an array

2007-02-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-13 17:43:10 -0700: > Richard Lynch wrote: > >The most efficient way is "Don't do that." :-) > > > >Simply loop through the results and do whatever you want to do with > >them, and don't put them into an array at all. > > This makes perfect sense. > > However, I am cu

Re: [PHP] Where would you look for documentation about interface RecursiveIterator? RecursiveIteratorAggregate - suggestion

2007-02-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-13 11:54:41 +0100: > > http://de.php.net/~helly/php/ext/spl/interfaceRecursiveIterator.html > > This piece of code > > > $array = array(1, 2 => array(21, 22 => array(221, 222), 23 => array(231)), > 3); > > $dir = new RecursiveIteratorIte

Re: [PHP] Iterators - seg faults again

2007-02-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-12 23:34:21 +0100: > Why is this happening? Can you confirm this? What has to be done different? > If you don't get these results (sef faults (I still want to get 2,3,4,5,6) > would you mind > telling me which version of php you are using? > > The file is t.php and

Re: [PHP] PHP or Bridge (card game)

2007-02-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-10 13:19:02 -0800: > Do any of you also know how to play bridge? > If yes, which do you think is harder to learn, PHP or bridge? I don't play bridge, but both things are languages. Presumably the one with bigger grammar is more complicated. But syntax is just one ax

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 08:57:39 -0800: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-02-09 08:33:29 -0800: > >>Jim Lucas wrote: > >>>So, to my question. Does anybody have a place they can refer me to to > >>>find out about all the

Re: [PHP] Reflection API Questions

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 10:46:44 -0600: > 1) Is there a way to inject a method into a Class such that future > instantiations of that Class will have the method? Try runkit. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you w

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 08:33:29 -0800: > Jim Lucas wrote: > >So, to my question. Does anybody have a place they can refer me to to > >find out about all the available classes in PHP5. Granted that I don't > >have all the various extensions loaded, so I don't have access to the > >var

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 08:15:33 -0800: > Roman Neuhauser wrote: > >The manual? If it's not documented there, try the source. > try the source <-- Joke, right? It's just English text with lots of curly braces. ;) -- How many Vietnam vets does it take to s

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 16:04:35 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100: > >> Jim Lucas wrote: > >>> I am wondering about the "Predefined Classes" for PHP5. > > > > vv

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 14:44:32 +0100: > Jim Lucas wrote: > > I am wondering about the "Predefined Classes" for PHP5. vv > > I don't have all the various extensions loaded, so I don't have > > access to the various class

Re: [PHP] OT - Regular Expression

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 12:44:40 +: > Roman Neuhauser wrote: > >This shouldn't do too much backtracking, try it out: > > > >"*8*" => /^(?:\d*8\d*){4}$/ > > > > > The {4} in there repeats the subpattern 4 times, rather than lim

Re: [PHP] OT - Regular Expression

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 14:13:27 +0200: > I want to match a four digit number. I allow user to enter with * syntax. So > 8* would match anything that starts with 8 and is 4 digit long so: > > /^8[0-9]{3}$/ > > That was easy. Ok then my other case was: *8, so anything that ends with 8 >

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 01:22:14 -0800: > I am wondering about the "Predefined Classes" for PHP5. > > I see that this page: > > http://us3.php.net/manual/en/reserved.classes.php > That page only shows two (2) new predefined classes for PHP5 > > But, as you can see from the first post o

Re: [PHP] array within array

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-09 09:24:01 +0200: > I am currently calling the creation of the array as such; > > $articles = split("Section break", $mystring); <-- this works > > NOW ... I need to split each item in the articles array into its own array > (newsarray) > > I have tried > > Forea

Re: [PHP] base64-encoding in cookies?

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 15:23:45 -0600: > Robert Cummings writes: > > If val can be any value then it can also be: > > > > expires=time; path=/path/ > > > > Obviously, that would be an issue since that's part of the cookie > > parameters. As such, it needs to be encoded. Now go away

Re: [PHP] Error compiling lib

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 15:56:25 +: > Hi, > > I want to compile PHP with IMAP support. > > I've downloaded imap2006e and run: > > # make slx > > but i got this error: > > "make[2]: Entering directory `/usr/local/src/imap-2006e/mtest' > `cat ../c-client/CCTYPE` -I../c-client `cat

Re: [PHP] is_dir reading a folder with a space in the name?

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 16:14:57 +0100: > Like Roman said. I also don't see this behaviour. > Although my test is a lot more simple :) It's not complete: > $dir = "test dir"; mkdir($dir); > if (is_dir($dir)) { > echo "It's a dir :)"; > } rmdir($dir); But even with those two c

Re: [PHP] is_dir reading a folder with a space in the name?

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 16:47:26 +0200: > I am reading directories and one of the directories has a space in it so > when I run: > > if (is_dir($dir)) > > it returns false. How much space? You need at least 1GB. But seriously, I don't see the behaviour you mention: d = $this->mkdtemp(

Re: [PHP] Sorting a multidimensional array

2007-02-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 14:08:13 +: > Hi all. I am building an online events directory and as part of the system > users can search for events by date, category etc. > > The logic involved in finding events that match the user-entered dates works > like so: > > 1. we create a range o

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 20:49:13 -0500: > I am finding that notepad is lacking when correcting syntax errors in my php > code. No line numbers. > > What can people recommend for use under Windows? gvim.exe -- How many Vietnam vets does it take to screw in a light bulb? You don't know,

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 01:14:43 +0100: > 290function setOptions(&$db, $options) > 291{ > 292if (is_array($options)) { > 293foreach ($options as $option => $value) { > 294$test = $db->setOption($option, $value); > 295if (PEAR::isE

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-08 11:27:13 +1100: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-02-07 09:59:15 +1100: > >>Roman Neuhauser wrote: > >>># [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: > >>>>Have been reading posts daily for

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 09:59:15 +1100: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: > >>Have been reading posts daily for two months now on the list, and am very > >>pleased at how informative these can be. > >>I have

Re: [PHP] Opera advice needed!

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200: > Hello, > > I just noticed when I published a new menu system that it does NOT work in > the ISP hosted server. However it works ok on my test server. Here's the > test I have done all in same client machine (=unchanged browser settings): > > My

Re: [PHP] PHP4 extensions not loading

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-07 00:00:57 -0700: > What I need to do is get Apache looking at a > > /var/db/ports/php4-extensions > > directory, which I did create with the options file > listing all the extensions I built individually. > > Can someone tell me how this can be done? How I can >

Re: [PHP] _GET('name') truncates

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 18:09:21 -0600: > GET args can be truncated at some number, if the server does not want > to allow longer args. I believe the minimum compliant limit is 1024 > bytes. Since you asked for a reference in the other post: HTTP/1.1 tries to be as general as possible, a

Re: [PHP] All-in-one PHP Classes

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: > Have been reading posts daily for two months now on the list, and am very > pleased at how informative these can be. > I have noticed, many examples where one is pointed to using classes > downloadable on the internet. > This is when i realized h

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-06 12:45:22 +0100: > there may also be some kind of solution based on > ArrayArrayArrayIteratorIteratorRecursiveArrayIteratorIteratorRecursiveIterator > but personally I don't grok those exotic forms of SPL interface well > enough to tell you. I had wanted to post som

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 23:03:41 +0100: > On Monday 05 February 2007 17:12, Roman Neuhauser wrote: > > > actually i am workinh with the ldap functions of php5. > > > Reading the docs i found the constants > > > > > > GSLC_S

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-04 13:26:39 +0100: > Hello, > > actually i am workinh with the ldap functions of php5. > Reading the docs i found the constants > > GSLC_SSL_NO_AUTH > GSLC_SSL_ONEWAY_AUTH > GSLC_SSL_TWOWAY_AUTH > > They are simply documented, but i can't find any docs about t

Re: [PHP] Sending secure mail

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 00:22:57 +: > I need to send a large number of emails (not spam!) through an external > SMTP server that requires TLS and a username/password. I have some > control over the SMTP server but very little over the web server where > the scripts reside. How do I con

Re: [PHP] nested, referenced foreach & implicit current array pointer issues

2007-02-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-01 15:46:39 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-02-01 02:26:09 +0100: > >> Roman Neuhauser wrote: > >>> # [EMAIL PROTECTED] / 2007-01-31 19:41:42 +0100: > >>>> instead I would sugge

Re: [PHP] nested, referenced foreach & implicit current array pointer issues

2007-02-01 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-01 02:26:09 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-31 19:41:42 +0100: > >> instead I would suggest that your better off doing one of 2 things: > >> > >> 1. pass in the array to the function explicitly. >

Re: [PHP] nested, referenced foreach & implicit current array pointer issues

2007-01-31 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-31 19:41:42 +0100: > instead I would suggest that your better off doing one of 2 things: > > 1. pass in the array to the function explicitly. > 2. use a special function that can be called to retrieve the array > from within your example function. > > bad advice? I'm

Re: [PHP] Can't get PHP extension to Load

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 12:09:44 -0500: > It loads a PHP extension called php_dblib.dll that replaces (the same > way ODBTP does) the php_mssql.dll. The problem is that on the > production machine, even though it is the same version of everything, it > refuses to load the php_dblib.dll.

Re: [PHP] time

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 16:52:02 -: > BTW, you'll need to use a float since there are some non-integer timezone > differences. No need to lose information. Just store the offset in minutes, problem solved. -- How many Vietnam vets does it take to screw in a light bulb? You don't kn

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 18:03:22 +0100: > I am so sorry, I'm so inferior to you great developper. [...] > Now, if you don't have any useful response - not sarcastic, :) > I only wanted to use libraries, but I can see that you never use them, > you code your onw low levels functions. No,

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 10:35:34 -0600: > Jim Lucas wrote: > >he wants a cut/paste answer to his problem. He doesn't want to build > >something and learn how it all works. He just wants it to work out of > >the box. > > > Why would someone want to read an RFC if he didn't have to? May

Re: [PHP] return bounced email to specific email address

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 16:44:38 +0100: > is it possible to specify email address in mail() function where bounced > email could return? Yes, see ftp://ftp.rfc-editor.org/in-notes/rfc2821.txt > I checked http://us2.php.net/manual/en/function.mail.php but didn't find > anything. That's

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 12:17:01 +0100: > Roman Neuhauser a écrit : > >That's probably because you don't know enough about the field to use the > >right search terms, since PEAR *does* contain a package for parsing email > >messages, and I have no problems

Re: [PHP] Parsing mail file

2007-01-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-30 10:18:54 +0100: > I receive mail file from my MTA (ie QMail), that works fine. Now, I > would to find a class or a function that parse the mail and gives > headers informations, body of the mail (even if it is a multi-part mail) > and file attachments. > I found

Re: [PHP] Select record by ID

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 17:54:03 -0600: > MySQL is the *only* db engine that lets you get away with [bleep] like > apostrophes around numbers. Actually, these are examples of valid SQL: INTEGER '1', FLOAT '13.5'. test=# select version(); versi

Re: [PHP] Use array returned by function directly?

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 17:32:43 -0600: > > Mon, January 29, 2007 11:55 am, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800: > >> I remember this discussion 7 years ago. This feature is not > >> possible. > > > > I also

Re: [PHP] Use array returned by function directly?

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 09:19:41 -0800: > I remember this discussion 7 years ago. This feature is not possible. I also remember the debate, but don't recall why it's not possible, AFAIR it was shot down because someone on php-dev@ said so. -- How many Vietnam vets does it take to screw

Re: [PHP] busy message queues

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 12:49:37 -0500: > > > > What version of PostgreSQL are you using? > > > > > > 7.4.x > > > > Too old, 8.1 and 8.2 have way better performance. [...] > Any predictions on what we might see for performance without upgrading > the PG version? No idea, but I wouldn

Re: [PHP] busy message queues

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 11:33:35 -0500: > > Do you actually need the persistence PostgreSQL gives you, or don't > > you mind if the other side is down? If you need to be sure that the > > receiver will process your message even if it's not up when you send > > the message, you'll end up r

Re: [PHP] Re: [BULK] [PHP] Use array returned by function directly?

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 10:12:25 -0600: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-29 15:27:21 +: > >># crash > >>#assert(2 == returns_array()['c']); > > > >># still crash > >>#assert(2 == returns_array()[&#

Re: [PHP] busy message queues

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 11:09:13 -0500: > We've been using Postgres for our messaging queues up to now, but our > message volume seems a bit higher than what we'd expect Postgres to keep > up with... many inserts/deletes from in/out queues seems to dirty a lot > of memory and effect genera

Re: [PHP] Re: [BULK] [PHP] Use array returned by function directly?

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 15:27:21 +: > # crash > #assert(2 == returns_array()['c']); > # still crash > #assert(2 == returns_array()['c']); s/crash/syntax error/ -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't TH

Re: [PHP] Re: [BULK] [PHP] Use array returned by function directly?

2007-01-29 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-29 16:07:39 +0200: > [EMAIL PROTECTED] wrote: > >What's the best way to achieve something like this: > >explode($needle, $array)[3] > >It's too clumsy to use temporary array, and I suppose, quite slow. Is > >there any option, or I'll have to stick to temporary arrays?

Re: [PHP] My objects eats too much (and weird!) memory

2007-01-27 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-26 20:40:34 +0100: > I've written this to check memory consumption of PHP5 objects, because > I'm having memory problems with an OO XMLParser that I've written. It measures something else though. The memory manager doesn't allocate memory for individual variables in P

Re: [PHP] Can a class instance a property of another class

2007-01-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-26 17:18:37 -0600: > So, in the __construct method of a business or data class, for > example, one could: > > include_once("connection_classes.kbk"); > $this->connection_class = new connection_class; > > This syntax fails, so I know this isn't right, but I hope you

Re: [PHP] Ongoing encoding issues

2007-01-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-26 21:09:34 +: > # [EMAIL PROTECTED] / 2007-01-26 09:33:13 +: > > Hi all, I posted a question a couple of days ago regarding a web app I have > > wherein users are able to indicated prices and concessions via a text field, > > and the resulting encoding issues

Re: [PHP] Ongoing encoding issues

2007-01-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-26 09:33:13 +: > Hi all, I posted a question a couple of days ago regarding a web app I have > wherein users are able to indicated prices and concessions via a text field, > and the resulting encoding issues I have experienced, the main one being > seeing the pound

Re: [PHP] Ongoing encoding issues

2007-01-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-26 14:29:52 +0100: > I don't think you are able to detect your users character encoding > with php only (at least not rock-solid). Just some days ago, there > was a discussion about that issue (at least concerning Safari) on the > Apple web dev mailing list. > >

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 14:34:51 -0500: > function bits($num) { >$bit_array = str_split(strrev(decbin(intval($num; >$val_array = array(); >foreach ($bit_array as $pow => $bit) { >if ($val = $bit * pow(2,$pow)) >$val_array[

Re: [PHP] most powerful php editor

2007-01-25 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 11:06:22 +0200: > On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: > > > and also in these days I'm looking for 19 inch (or more) wide LCD > > > sceerns to able

Re: [PHP] sortind arrays

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 08:12:14 +0200: > How can I sort an array like this so that it would be ASC ordered by the [1] > key in subarrays? I need to maintain only the subarray key - value pairs. > (Do I make sense?) > > Array > ( > [0] => Array > ( > [0] => Logo

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-24 23:41:19 -0700: > Just wondering what smart people do for parsing data sent by the > Javascript XMLHTTP object--e.g., http.send("post",url,true)... > > In a normal form submit, the $_POST global nicely allocates form > elements as array elements automatically.

Re: [PHP] most powerful php editor

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 02:21:34 +0100: > Curt Zirzow wrote: > > On 1/20/07, Vinicius C Silva <[EMAIL PROTECTED]> wrote: > >> hi everyone! > >> > >> i'd like to ask something maybe commonly asked here. what is the most > >> powerful php editor? > > > > > > So now we have a 4 day thread o

Re: [PHP] most powerful php editor

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-24 18:23:10 -0600: > On Wed, January 24, 2007 7:41 am, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: > >> and also in these days I'm looking for 19 inch (or more) wide LCD > >> sceerns to able

Re: [PHP] Regular Expression Problem

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 09:27:59 +1100: > > addInfPrice="0.0"> > > > > > > addInfPrice="0.0"> > > >

Re: [PHP] Regular Expression Problem

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-24 23:55:27 +0100: > Roman Neuhauser wrote: > > Are you doing this to learn regular expressions or are you actually > > trying to do work? Because you're going the wrong way. > > It's XML, why do you treat it as text? > > not eve

Re: [PHP] Regular Expression Problem

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-25 09:27:59 +1100: > I must be dumb as I have been battling my way through regular expression > examples for a while and I can not work out why the following does not work > properly. I am the first to admit that regular expressions confuse me greatly. > > The string

Re: [PHP] Package php code

2007-01-24 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-24 21:34:43 +0200: > Is there any similar way to package PHP software as Java with a jar file or > similar? I have never seen it, because then would probably Smarty for > example be packaged already :-) This question came out of the blue when I > was thinking about how

  1   2   3   4   >