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

2007-02-01 Thread Jochem Maas
Roman Neuhauser wrote: ... > > Singleton in Design Patterns, p. 127: > > : Intent > : Ensure a class only has one instance, and provide a global point of > : access to it. > > The second part is IMO pretty much what you said. it's completely out of context: a, there is no suggestion

[PHP] Re: Combining 2 DOM XML nodes from different documents

2007-02-01 Thread Eli
EOT; $x2 = << EOT; $X1 = new DOMDocument(); $X1->loadXML($x1); $X2 = new DOMDocument(); $X2->loadXML($x2); $X1->firstChild->appendChild($X2->firstChild->cloneNode(true)); echo htmlspecialchars($X1->saveXML()); ?> I got an error in the line $X1->firstChild->appendChild... [01-Feb-

Re: [PHP] date to string

2007-02-01 Thread Chris
John Taylor-Johnston wrote: Chris wrote: John Taylor-Johnston wrote: How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date). echo date("l, F j, Y", st

Re: [PHP] date to string

2007-02-01 Thread John Taylor-Johnston
Chris wrote: John Taylor-Johnston wrote: How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date). echo date("l, F j, Y", strtotime("2007-02-01")); That'

Re: [PHP] date to string

2007-02-01 Thread Chris
John Taylor-Johnston wrote: How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date). -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Gen

Re: [PHP] PHP5 & Commercial Development

2007-02-01 Thread Chris
Eric Gorr wrote: I haven't tracked this particular issue, but I know when PHP5 was first released is wasn't recommended in a commercial/production environment. However, a lot of time has passed and we're at v5.2 now...have things changed? Have Google&Yahoo, for example, moved to PHP5? Or is PHP

[PHP] date to string

2007-02-01 Thread John Taylor-Johnston
How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Simple question, except I don't know the answer :) This is all I see for now: http://ca.php.net/manual/en/function.px-date2string.php John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] PHP5 & Commercial Development

2007-02-01 Thread Ligaya A. Turmelle
AFAIK php5 is the preferred production/enterprise environment. (buzzword +1) Respectfully, Ligaya Turmelle -Original Message- From: Eric Gorr [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 9:13 AM To: php-general@lists.php.net Subject: [PHP] PHP5 & Commercial Development I ha

[PHP] PHP5 & Commercial Development

2007-02-01 Thread Eric Gorr
I haven't tracked this particular issue, but I know when PHP5 was first released is wasn't recommended in a commercial/production environment. However, a lot of time has passed and we're at v5.2 now...have things changed? Have Google&Yahoo, for example, moved to PHP5? Or is PHP4 still the r

Re: [PHP] Who uses PHP

2007-02-01 Thread Jon Anderson
Eric Gorr wrote: PHP has to many security issues and should not be used with a user authentication system. We should use XXX. Well, people's complaints about PHP probably stem from some security pitfalls built-in for simplicity's sake. (The most common being register_globals.) For th

RE: [PHP] OT - PHP Code Search

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 23:51 +0200, WeberSites LTD wrote: > I guess you have no real use for advertising cause no one really comes to > your site. > Go get a life instead of sending idiotic emails to the list. *lol* That's not what you said when you tried to recruit me as a forum moderator for the

Re: [PHP] Send Email to Mobile

2007-02-01 Thread Richard Lynch
Add a Reply-to: field on your headers. http://php.net/mail Read about the fifth argument. On Thu, February 1, 2007 10:17 am, Marcelo Ferrufino Murillo wrote: > Hi guys, I have a script that send emails to mobiles: > > $subject=$_REQUEST["sb"]; > $nmobile=trim($_REQUEST["nmobile"]); > $message=$

Re: [PHP] OT - PHP Code Search

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 16:18 -0500, [EMAIL PROTECTED] wrote: > Not too many ads on the pages after you find what you're searching for, and > mostly just some "ads by google" type stuff. > > Speaking of Google.. you can also go here for PHP code searching.. I do all > my "cod" (sic) searching ther

Re: [PHP] OT - PHP Code Search

2007-02-01 Thread tg-php
Not too many ads on the pages after you find what you're searching for, and mostly just some "ads by google" type stuff. Speaking of Google.. you can also go here for PHP code searching.. I do all my "cod" (sic) searching there! Fresh! http://www.google.com/codesearch?q=lang%3Aphp&hl=en&btnG=S

Re: [PHP] OT - PHP Code Search

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 22:51 +0200, WeberSites LTD wrote: > www.php-cod-search.com/ Why? Is this a new site you've set up with disgusting amounts of advertising? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn

[PHP] OT - PHP Code Search

2007-02-01 Thread WeberSites LTD
If you are looking for php code examples try searching for them at http://www.php-code-search.com/ berber

[PHP] Combining 2 DOM XML nodes from different documents

2007-02-01 Thread Eli
Hi, EOT; $x2 = << EOT; $X1 = new DOMDocument(); $X1->loadXML($x1); $X2 = new DOMDocument(); $X2->loadXML($x2); $X1->firstChild->appendChild($X2->firstChild->cloneNode(true)); echo htmlspecialchars($X1->saveXML()); ?> I got an error in the line $X1->firstChild->appendChil

[PHP] Trouble...

2007-02-01 Thread Leandro Martín Peralta
I have an xml stored in a variable. If I load it in a domdocument as HTML: $DDoc->loadHTML($xml); I can get elements by an xpath query, but if I instead load it as XML my xpath queries stop working: $DDoc = new DOMDocument(); $DDoc->loadXML($xml); $xpath = new DOMXPath($DDoc); $query = "//[EMA

RE: [PHP] Send Email to Mobile

2007-02-01 Thread Peter Lauri
This kind of hassle you can avoid if you use PHPMailer that you can find at http://phpmailer.sourceforge.net Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Marcelo Ferrufin

RE: [PHP] Manipulating "categories" in a mysql database

2007-02-01 Thread Tim
> -Message d'origine- > De : Richard Lynch [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 1 février 2007 02:35 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Manipulating "categories" in a mysql database > > On Tue, January 30, 2007 12:36 pm, Tim wrote: > > This is more of a

[PHP] Send Email to Mobile

2007-02-01 Thread Marcelo Ferrufino Murillo
Hi guys, I have a script that send emails to mobiles: And this is the message in a mobile: [EMAIL PROTECTED] I don´t know why appear the address [EMAIL PROTECTED] the address must be: [EMAIL PROTECTED], could you help me please, thank you

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

2007-02-01 Thread Németh Zoltán
On cs, 2007-02-01 at 10:53 -0500, Robert Cummings wrote: > On Thu, 2007-02-01 at 16:42 +0100, Roman Neuhauser wrote: > > > > If PHP was statically typed, global variables would still be a bad > > smell. They are bad smell in C++ and Java, for example. It's too easy > > to call getfoo() before you

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

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 16:42 +0100, Roman Neuhauser wrote: > > If PHP was statically typed, global variables would still be a bad > smell. They are bad smell in C++ and Java, for example. It's too easy > to call getfoo() before you have set up $foo. The risk grows > exponentially: as soon as you

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 suggest that your better off doing one of 2 things: > >

Re: [PHP] Who uses PHP

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 10:19 -0500, Eric Gorr wrote: > > Well, if you do not know the answer to my particular question, I'm > curious how might you respond to someone who says: > > PHP has to many security issues and should not be used with a > user authentication system. > We shoul

Re: [PHP] Who uses PHP

2007-02-01 Thread Németh Zoltán
On cs, 2007-02-01 at 10:19 -0500, Eric Gorr wrote: > On Feb 1, 2007, at 10:06 AM, Jochem Maas wrote: > > > Eric Gorr wrote: > >> > >> On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: > >> > >>> Eric Gorr wrote: > I've heard some concern expressed that PHP might be more > insecure then >

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
On Feb 1, 2007, at 10:06 AM, Jochem Maas wrote: Eric Gorr wrote: On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: Eric Gorr wrote: I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I perso

Re: [PHP] Who uses PHP

2007-02-01 Thread Jochem Maas
Eric Gorr wrote: > > On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: > >> Eric Gorr wrote: >>> I've heard some concern expressed that PHP might be more insecure then >>> other methods of developing website where security was of prime >>> importance. Now, I personally do not believe this, but it wo

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Butera
On 2/1/07, Eric Gorr <[EMAIL PROTECTED]> wrote: On Feb 1, 2007, at 9:50 AM, Jay Blanchard wrote: > > Also, check out > http://www.shiflett.org as Chris is one of if not the leading > expert in > security with PHP. Great site. thank you. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
On Feb 1, 2007, at 9:50 AM, Jay Blanchard wrote: Also, check out http://www.shiflett.org as Chris is one of if not the leading expert in security with PHP. Great site. thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: Eric Gorr wrote: I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I personally do not believe this, but it would help me to convince others

RE: [PHP] Who uses PHP

2007-02-01 Thread Jay Blanchard
[snip] I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I personally do not believe this, but it would help me to convince others if I could point to major sites, where security (mostly wi

Re: [PHP] Who uses PHP

2007-02-01 Thread Jochem Maas
Eric Gorr wrote: > I've heard some concern expressed that PHP might be more insecure then > other methods of developing website where security was of prime > importance. Now, I personally do not believe this, but it would help me > to convince others if I could point to major sites, where security

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

2007-02-01 Thread Jochem Maas
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 suggest that your better off doing one of 2 things: 1. pass in the array to the function explicitly. 2. use a

[PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I personally do not believe this, but it would help me to convince others if I could point to major sites, where security (mostly with resp

Re: [PHP] Socket problem plz read.

2007-02-01 Thread Németh Zoltán
On cs, 2007-02-01 at 14:45 +0100, Scripter47 wrote: > Richard Lynch skrev: > > On Wed, January 31, 2007 9:39 am, Németh Zoltán wrote: > >> On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote: > >>> I'm making a simple socket server that just receive some data, and > >>> then > >>> send some data ba

Re: [PHP] Socket problem plz read.

2007-02-01 Thread Scripter47
Richard Lynch skrev: On Wed, January 31, 2007 9:39 am, Németh Zoltán wrote: On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote: I'm making a simple socket server that just receive some data, and then send some data back again to the client. EDIT: I forgot to tell that i need help! I have sea

[PHP] Re: [PHP-DEV] PHP 4.4.5RC2

2007-02-01 Thread Edin Kadribasic
The Windows build is ready as well: http://downloads.php.net/edink/php-4.4.5RC2-Win32.zip Edin Derick Rethans wrote: Hello! I packed PHP 4.4.5RC2 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if y

[PHP] Re: Parsing mail file

2007-02-01 Thread tom
Easy!! Pierre Pintaric : Hello there, I'm sure this question was ask 1,000 times, but I didn't find any archive about this, that's why I need help... Here is my problem: 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 mai

[PHP] CONTACT ...

2007-02-01 Thread Man-wai Chang
Alberto Ferreira wrote: > Teste > -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.10) Linux 2.6.19.2 ^ ^ 19:27:01 up 20 days 22:39 0 users load average: 1.07 1.02 1.00 news://news.3

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. > >> 2. use a special function that can

[PHP] PHP 4.4.5RC2

2007-02-01 Thread Derick Rethans
Hello! I packed PHP 4.4.5RC2 today, which you can find here: http://downloads.php.net/derick/ Please test it carefully, and report any bugs in the bug system, but only if you have a short reproducable test case. If everything goes well, we can release it somewhere at the end of next week. re

Re: [PHP] Pwersistent Queue

2007-02-01 Thread Nicholas Yim
Hello chetan rane, use serialize, unserialize, array and file. or xml Best regards, === At 2007-02-01, 13:53:38 you wrote: === >Hi everyone > >I aneed top maintain a persisistent Queue can anyone help. > > >-- >Have A plesant Day >Chetan. D. Rane >Location: Pune , India >Co