php-general Digest 9 Sep 2008 15:19:26 -0000 Issue 5672

2008-09-09 Thread php-general-digest-help
php-general Digest 9 Sep 2008 15:19:26 - Issue 5672 Topics (messages 279709 through 279732): running a very long process from php 279709 by: Rene Veerman 279716 by: Nathan Rixham 279717 by: Per Jessen Re: CSV output. 279710 by: Eric Gorr Re: Using DOM

Re: [PHP] Using DOM textContent Property

2008-09-09 Thread Mario Trojan
Hi Nathan, if you're already speaking of iterating children, i'd like to ask you another question: Basically i was trying to do the same thing as Tim, when i experienced some difficulties iterating over DOMElement-childNodes with foreach and manipulating strings inside the nodes or even

Re: [PHP] Length of Exception text?

2008-09-09 Thread Peter Ford
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. First time I though

[PHP] Re: Interntet Explorer 8 beater 2

2008-09-09 Thread Colin Guthrie
Ross McKay wrote: Jochem Maas wrote: how do you handle licensing/activation in these VMs? I have parallels on my Mac and a 'proper' bootcamp install of WinXP which I need for work ... and I'm not about to screw with that install for the sake of testing another POS version of IE. You need a

[PHP] unsubscibe

2008-09-09 Thread songtao zheng

[PHP] Zend Platform

2008-09-09 Thread Nathan Rixham
Morning All, Short and sweet; does anybody have any practical experience; thoughts or case studies in regards to implementing the Zend Platform. Many Regards Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: running a very long process from php

2008-09-09 Thread Nathan Rixham
Rene Veerman wrote: Hi. For my CMS, i need to do imports of photos and videos. For uploading large files i have a Java FTP applet with automated resume, so no problems there. But: unzipping them and importing them might take a long time if it's a large batch (1000s of pictures/videos).

Re: [PHP] Re: running a very long process from php

2008-09-09 Thread Per Jessen
Nathan Rixham wrote: sounds like it's time to get your own dedicated server to be honest; Yeah, that was my first thought too. in the time it takes you to do that semi-manual process I'm sure you could easily do a couple of jobs to fund the server if needs be; They're not even very

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.

[PHP] Regex help

2008-09-09 Thread Jason Pruim
Hey everyone, Not completely specific to php but I know you guys know regex's better then I do! :) I am attempting to match purl.schreurprinting.com/jasonpruim112 to purl.schreurprinting.com/p.php?purl=jasonpruim112 Here are my current matching patterns: RewriteRule

[PHP] Re: Regex help

2008-09-09 Thread Nathan Rixham
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 purl.schreurprinting.com/jasonpruim112 to purl.schreurprinting.com/p.php?purl=jasonpruim112 Here are my current matching patterns:

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: Regex help

2008-09-09 Thread Jason Pruim
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 purl.schreurprinting.com/jasonpruim112 to purl.schreurprinting.com/p.php?purl=jasonpruim112

Re: [PHP] Re: Regex help

2008-09-09 Thread Nathan Rixham
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 purl.schreurprinting.com/jasonpruim112 to

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

2008-09-09 Thread Nathan Rixham
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 cat, method two: $str =

Re: [PHP] PHP RSS to email

2008-09-09 Thread Nathan Rixham
Jason Pruim wrote: On Sep 8, 2008, at 7:59 AM, Richard Heyes wrote: Correct me if I'm wrong, but couldn't you use grab and parse the rss feeds you want, store the titles in a database, with a column for identifying if the e-mail has been sent? So every hour it checks your feeds, grabs the

Re: [PHP] Re: Regex help

2008-09-09 Thread Per Jessen
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 purl.schreurprinting.com/jasonpruim112 to

RE: [PHP] Regex help

2008-09-09 Thread Boyd, Todd M.
-Original Message- From: Jason Pruim [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 7:30 AM To: PHP-General List Subject: [PHP] Regex help Hey everyone, Not completely specific to php but I know you guys know regex's better then I do! :) I am attempting to match

[PHP] SimpleXML strange behaviour.

2008-09-09 Thread Mirco Soderi
Do you know any reason why the following code does work $xmlOperazioni = simplexml_load_file($xmlFilename); foreach($xmlOperazioni-operazione as $operazione) { if($operazione['nome'] == $operazioneRichiesta) { require($operazione['php']); break; } } but the following does not

Re: [PHP] Problem of Connection Character Sets and Collations

2008-09-09 Thread Eric Butera
On Sat, Sep 6, 2008 at 10:41 AM, [EMAIL PROTECTED] wrote: php : Which command line is right ? 1, mysql_query(SET NAMES utf8); 2, mysql_query(SET NAMES utf-8); Many thank for your help ! Edward. On the php side look at this: http://us3.php.net/manual/en/function.mysql-set-charset.php

Re: [PHP] PHP RSS to email

2008-09-09 Thread Richard Heyes
ps: may be worth ntoing this'd make a great open source site or even subscription service; I'd sign up for it! I've already knocked something up. It's attached if you want it. -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP

Re: [PHP] Re: Regex help

2008-09-09 Thread Jason Pruim
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] Shopping Carts/Checkout Software

2008-09-09 Thread Charlene
Micah Gersten wrote: ZenCart Reasons: PHP-based Open Source lots if plugins Take a look at this: http://en.wikipedia.org/wiki/Zen_Cart Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Charlene wrote: Micah Gersten wrote: Try Zencart. Thank you,

[PHP] Re: Zend Platform

2008-09-09 Thread Colin Guthrie
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 clients getting in the way

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] Shopping Carts/Checkout Software

2008-09-09 Thread Lester Caine
Charlene wrote: It doesn't look like zencart includes a checkout system. I really need the complete system. You will find you need to select the payment packages you want available. It certainly does the complete process, including weight based shipping. Otherwise, what I see at their site

[PHP] Re: Zend Platform

2008-09-09 Thread Colin Guthrie
Jochem Maas wrote: Zend Framework and Zend Platform are 2 different animals Egads.. totally didn't read that mail properly! Too much trawling on the ZF mailing lists today methinks! Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited

Re: [PHP] Shopping Carts/Checkout Software

2008-09-09 Thread Manuel Barros Reyes
On Mon, Sep 8, 2008 at 12:09 PM, Charlene [EMAIL PROTECTED] wrote: The company I work for is going to be creating the catalog to a small store (~100 items). The customized catalog will include the front end that the shoppers will use as well as the back end data entry. We need shopping

Re: [PHP] Re: Regex help

2008-09-09 Thread Jason Pruim
On Sep 9, 2008, at 12:18 PM, Jochem Maas wrote: 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

[PHP] Re: SimpleXML strange behaviour.

2008-09-09 Thread Carlos Medina
Mirco Soderi schrieb: Do you know any reason why the following code does work $xmlOperazioni = simplexml_load_file($xmlFilename); foreach($xmlOperazioni-operazione as $operazione) { if($operazione['nome'] == $operazioneRichiesta) { require($operazione['php']); break; } } but

Re: [PHP] Zend Platform

2008-09-09 Thread Stut
On 9 Sep 2008, at 18:52, Nathan Rixham wrote: Short and sweet; does anybody have any practical experience; thoughts or case studies in regards to implementing the Zend Platform. Yeah, I used it in my previous job a coupla years ago. It looks great, the marketing hype is well executed but as

Re: [PHP] SimpleXML strange behaviour.

2008-09-09 Thread Nathan Nobbe
2008/9/9 Mirco Soderi [EMAIL PROTECTED] Do you know any reason why the following code does work $xmlOperazioni = simplexml_load_file($xmlFilename); foreach($xmlOperazioni-operazione as $operazione) { if($operazione['nome'] == $operazioneRichiesta) { require($operazione['php']);

Re: [PHP] Using DOM textContent Property

2008-09-09 Thread Nathan Nobbe
On Tue, Sep 9, 2008 at 12:37 AM, Mario Trojan [EMAIL PROTECTED] wrote: Hi Nathan, if you're already speaking of iterating children, i'd like to ask you another question: Basically i was trying to do the same thing as Tim, when i experienced some difficulties iterating over

[PHP] Basics of OOP

2008-09-09 Thread Ben Stones
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(); $class-outputText; ? As well as the following

Re: [PHP] Basics of OOP

2008-09-09 Thread Robert Cummings
On Tue, 2008-09-09 at 20:09 +0100, 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 =

Re: [PHP] Using DOM textContent Property

2008-09-09 Thread Nathan Rixham
Nathan Nobbe wrote: In my opinion, the DomNodeList class is useless. agreed; ever tried making a replacement node class that extends it? then you see how useless it is! [yet a vital part of the dom structure] ot here; but I thought maybe useful for reference; I do loads of xml/dom api

[PHP] Re: Basics of OOP

2008-09-09 Thread Nathan Rixham
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(); $class-outputText; ? As well

Re: [PHP] Interntet Explorer 8 beater 2

2008-09-09 Thread Ashley Sheridan
No, I test as far as IE6 and 7 as far as Microshaft browsers go. As it's a beta, and a M$ beta at that, it's likely to change a considerable bit before it's a final product, so not much point testing it this early in it's life cycle. Maybe more towards the time when it is ready to be fully

Re: [PHP] php image and javascript include

2008-09-09 Thread Ashley Sheridan
Kate has an auto text feature, and you can set it to start prompting from typing in as few characters as you wish, although it only prompts for things you've already typed, it this does save you from making obvious variable name typos as it will prompt the next time you try to use it, and it

Re: [PHP] CSV output.

2008-09-09 Thread Ashley Sheridan
I'm guessing that when you are writing your values, you are writing numbers to the file and not strings. With numbers, the significant floating-point values are obviously preserved, but a number like 12.00 will be written as just 12. Try either casting the value to a string, or having PHP

[PHP] Re: Secure way to handle pw on session.

2008-09-09 Thread Dan
You should never store a user's password. Instaed immediatly do an SHA1 hash of the password and compare that to the hashed password in your database. It doesn't make any sense to store passwords in clear text. Even if they found the hash they wouldn't be able to reverse it (hashes are once

RE: [PHP] Google Chrome

2008-09-09 Thread John A DAVIS
Yeah, my Kerios firewall kept popping up asking me to Permit google something to go somewhere off my computer. Even when Chrome wasn't running. I sure like the skinnyness and the last visited webpage. What can you tell a 500 pound gorilla? probably nothing. "Boyd, Todd M." [EMAIL

[PHP] SOAP call

2008-09-09 Thread Christoph Boget
Is there a way to call a SOAP function and pass the required XML as an argument instead of an object? I can get this to work: $oClient = new SoapClient( $sWSDL_URI, array( 'trace' = TRUE, 'exceptions'= TRUE ); $oArgObj = new ArgObj(); $oArgObj-node1 = 'value' $oArgObj-node2 = 'value'

Re[2]: [PHP] Length of Exception text?

2008-09-09 Thread ANR Daemon
Greetings, Peter Ford. In reply to Your message dated Tuesday, September 9, 2008, 12:37:30, 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

Re[2]: [PHP] Problem of Connection Character Sets and Collations

2008-09-09 Thread ANR Daemon
Greetings, [EMAIL PROTECTED] In reply to Your message dated Monday, September 8, 2008, 19:35:22, For displaying with unicode Character Sets problem : MySQL : MySQL question. There's got to be a mailing list on http://www.mysql.com phpmyadmin : PHPMyAdmin question. PHPMyAdmin, while written in

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] Creating single row for multiple items.

2008-09-09 Thread tedd
At 10:04 PM -0600 8/31/08, Tom Shaw wrote: My array looks very similar to this. I need to create a single row for the items that have the same order number for CSV export. I'd prefer to do this PHP wise instead of SQL. But would appreciate any help I can get. $ar = array( array(

Re: [PHP] Creating single row for multiple items.

2008-09-09 Thread Ashley Sheridan
I'm assuming because this is part of a shopping cart, so he would have to put the data into the database only to retrieve it again, which is a little bit of a waste. As for how to do it, I'd look through the arrays you have and use associative arrays (where the order number is the key of the

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[2]: [PHP] translations for PHP app

2008-09-09 Thread ANR Daemon
Greetings, Wolf. In reply to Your message dated Monday, September 8, 2008, 15:08:22, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25

Re: [PHP] Creating single row for multiple items.

2008-09-09 Thread tedd
At 12:38 AM +0100 9/10/08, Ashley Sheridan wrote: I'm assuming because this is part of a shopping cart, so he would have to put the data into the database only to retrieve it again, which is a little bit of a waste. If it's a shopping cart filled with Pianos, it's going to be heavy anyway.

Re: [PHP] Creating single row for multiple items.

2008-09-09 Thread Micah Gersten
Databases are for storing and retrieving data. :) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ashley Sheridan wrote: I'm assuming because this is part of a shopping cart, so he would have to put the data into the database only to retrieve it again,

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

2008-09-09 Thread tedd
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; break; } all

Re: [PHP] translations for PHP app

2008-09-09 Thread tedd
At 9:12 PM -0500 9/7/08, Shawn McKenzie wrote: Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single word defines - about 19 PHP

Re: [PHP] translations for PHP app

2008-09-09 Thread Yi Wang
On Mon, Sep 8, 2008 at 10:12 AM, Shawn McKenzie [EMAIL PROTECTED] wrote: Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single

Re: [PHP] Recommendation

2008-09-09 Thread tedd
At 10:15 AM -0500 9/2/08, Shawn McKenzie wrote: Eric Butera wrote: I'm on there too. http://www.linkedin.com/in/ericbutera Me too... http://www.linkedin.com/in/rsmckenzie -Shawn -Shawn: How do I get an email to you at: Shawn McKenzie [EMAIL PROTECTED] ? Cheers, tedd -- ---

[PHP] tedd's back from vacation

2008-09-09 Thread tedd
hi gang: For those who wondered where I went -- I was on vacation. I would have announced it before I left, but I was afraid that someone would have broken into my collection of stuff. I'll post pictures of my vacation soon. Oh, I had lot's of fun -- so much so, I broke my big toe on my

Re: [PHP] tedd's back from vacation

2008-09-09 Thread Dan Joseph
On Tue, Sep 9, 2008 at 10:00 PM, tedd [EMAIL PROTECTED] wrote: hi gang: For those who wondered where I went -- I was on vacation. I would have announced it before I left, but I was afraid that someone would have broken into my collection of stuff. I'll post pictures of my vacation soon.

Re: [PHP] translations for PHP app

2008-09-09 Thread Shawn McKenzie
tedd wrote: At 9:12 PM -0500 9/7/08, Shawn McKenzie wrote: Hi All, I'm looking for professional translations from English of the following: - admin.php lang file just under 150 PHP defines - user.php lang file just under 30 PHP defines - a javascript file with about 25 single word defines -

Re: [PHP] Recommendation

2008-09-09 Thread Shawn McKenzie
I don't understand the question. It is an email account that I check and I get mail from that address all the time. Of course it's late/much wine and there may be some humor here that is totally escaping me. -Shawn tedd wrote: At 10:15 AM -0500 9/2/08, Shawn McKenzie wrote: Eric Butera

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] translations for PHP app

2008-09-09 Thread Anderson Franco
Hi Shawn I can translate from English into Portuguese. Please contact me in pvt. Regards, Anderson Franco Web Developer Email: [EMAIL PROTECTED] MSN/GTalk: [EMAIL PROTECTED] On Sun, Sep 7, 2008 at 11:12 PM, Shawn McKenzie [EMAIL PROTECTED]wrote: Hi All, I'm looking for professional

Re: [PHP] Zend Platform

2008-09-09 Thread Ray Hauge
Stut wrote: On 9 Sep 2008, at 18:52, Nathan Rixham wrote: Short and sweet; does anybody have any practical experience; thoughts or case studies in regards to implementing the Zend Platform. Yeah, I used it in my previous job a coupla years ago. It looks great, the marketing hype is well