php-general Digest 16 Feb 2011 21:16:38 -0000 Issue 7185

2011-02-16 Thread php-general-digest-help
php-general Digest 16 Feb 2011 21:16:38 - Issue 7185 Topics (messages 311359 through 311392): Re: errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide? 311359 by: Richard Quadling 311361 by: Andre Polykanine 311363 by: Richard Quadling 311372 by:

[PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread fotoo
Hi everyone! after upgrading vomn php 5.2.10 to 5.3.0 I get a lot of errors. I changed already in some files ereg_replace() to preg_replace(), but it generates more errors as you can see. The typo3 installation ins still working. So - how can I prevent php from printing out this errors on

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Richard Quadling
On 16 February 2011 09:12, fo...@gmx.de wrote: Hi everyone! Hi. Please read the changelog http://docs.php.net/ChangeLog-5.php#5.3.0 and do a search for ereg. You'll notice that it has been deprecated. As such, old code that relies on this feature may no longer work as expected and/or give a

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Andre Polykanine
Hello Micky, And I prefer this: if ($foo==$baz) :-). I don't know if it's kosher not to put spaces around the == but still... -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook:

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Andre Polykanine
Hello Fotoo, ? error_reporting(0); -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From:

[PHP] DOMDocument, content of entity

2011-02-16 Thread Fanda
Hi, does anybody know, how can I parse (by DOMDocument::loadHTMLFile) content of td tag, containing string in 3 rows (br)? I need it to split to 3 strings. Thanks. Fanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Richard Quadling
On 16 February 2011 11:25, Andre Polykanine an...@oire.org wrote: Hello Fotoo,           ? error_reporting(0); Really? You consider shoving your head in the sand a REALISTIC option? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General

RE: [PHP] DOMDocument, content of entity

2011-02-16 Thread Jay Blanchard
[snip] Hi, does anybody know, how can I parse (by DOMDocument::loadHTMLFile) content of td tag, containing string in 3 rows (br)? I need it to split to 3 strings. [/snip] http://www.php.net/explode -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] DOMDocument, content of entity

2011-02-16 Thread Fanda
http://www.php.net/explode I know it, but when I get content of td by $cols-item(0)-nodeValue, it is without br tags. So I need to: a) get content with tags also or b) split content by DOM (if it is possible) and get 3 different parts -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] DOMDocument, content of entity

2011-02-16 Thread Jay Blanchard
[snip] http://www.php.net/explode I know it, but when I get content of td by $cols-item(0)-nodeValue, it is without br tags. So I need to: a) get content with tags also or b) split content by DOM (if it is possible) and get 3 different parts [/snip] The DOM only exists in the browser, it really

RE: [PHP] DOMDocument, content of entity

2011-02-16 Thread Jay Blanchard
[snip] The DOM only exists in the browser, it really isn't available server-side (it is proposed). What does this data look like? Is it just strings? [/snip] Have you tried DOMDocument::loadHTML? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Daniel P. Brown
On Wed, Feb 16, 2011 at 07:15, Richard Quadling rquadl...@gmail.com wrote: On 16 February 2011 11:25, Andre Polykanine an...@oire.org wrote: Hello Fotoo,           ? error_reporting(0); Really? You consider shoving your head in the sand a REALISTIC option? Well, at the least, it

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread David Hutto
On Wed, Feb 16, 2011 at 9:34 AM, Daniel P. Brown daniel.br...@parasane.net wrote: On Wed, Feb 16, 2011 at 07:15, Richard Quadling rquadl...@gmail.com wrote: On 16 February 2011 11:25, Andre Polykanine an...@oire.org wrote: Hello Fotoo,           ? error_reporting(0); Really? You consider

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Daniel P. Brown
On Wed, Feb 16, 2011 at 09:37, David Hutto smokefl...@gmail.com wrote: What was the intended purpose again? The hiding of errors. -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread David Hutto
Only those who live in glass houses, should hide their errors. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread David Hutto
On Wed, Feb 16, 2011 at 9:41 AM, David Hutto smokefl...@gmail.com wrote: Only those who live in glass houses, should hide their errors. if that makes sense. -- According to theoretical physics, the division of spatial intervals as the universe evolves gives rise to the fact that in another

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Daniel P. Brown
On Wed, Feb 16, 2011 at 09:41, David Hutto smokefl...@gmail.com wrote: On Wed, Feb 16, 2011 at 9:41 AM, David Hutto smokefl...@gmail.com wrote: Only those who live in glass houses, should hide their errors. if that makes sense. Did you even bother to read the whole of what I said? I

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Richard Quadling
On 16 February 2011 14:34, Daniel P. Brown daniel.br...@parasane.net wrote: On Wed, Feb 16, 2011 at 07:15, Richard Quadling rquadl...@gmail.com wrote: On 16 February 2011 11:25, Andre Polykanine an...@oire.org wrote: Hello Fotoo,           ? error_reporting(0); Really? You consider

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Donovan Brooke
Tamara Temple wrote: On Feb 15, 2011, at 4:17 PM, Donovan Brooke wrote: [snip] This is what I show my students: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php Cheers, tedd I didn't know there were names for bracing styles... but Neither did I -- just the KR style was the only

Re: [PHP] errors after upgrade vom 5.2.10 to 5.3.0 howto solve or hide?

2011-02-16 Thread Robert Cummings
On 11-02-16 09:45 AM, Daniel P. Brown wrote: On Wed, Feb 16, 2011 at 09:41, David Huttosmokefl...@gmail.com wrote: On Wed, Feb 16, 2011 at 9:41 AM, David Huttosmokefl...@gmail.com wrote: Only those who live in glass houses, should hide their errors. if that makes sense. Did you

[PHP] PHP+MySQL question

2011-02-16 Thread דניאל דנון
Hi. I have a table called images with 4 columns - `image_id`, `item_name`, `image_url`, `image_views` (Where image_id is UNIQUE and AUTO-INCREMENT). Sometimes, there might be many items with the same name (but not with the same url). I want to make sure that each item name has at most 3 images

Re: [PHP] PHP+MySQL question

2011-02-16 Thread Robert Cummings
On 11-02-16 11:37 AM, דניאל דנון wrote: Hi. I have a table called images with 4 columns - `image_id`, `item_name`, `image_url`, `image_views` (Where image_id is UNIQUE and AUTO-INCREMENT). Sometimes, there might be many items with the same name (but not with the same url). I want to make

Re: [PHP] PHP+MySQL question

2011-02-16 Thread Robert Cummings
On 11-02-16 11:55 AM, Robert Cummings wrote: On 11-02-16 11:37 AM, דניאל דנון wrote: Hi. I have a table called images with 4 columns - `image_id`, `item_name`, `image_url`, `image_views` (Where image_id is UNIQUE and AUTO-INCREMENT). Sometimes, there might be many items with the same name

Re: [PHP] Custom function

2011-02-16 Thread Mark Kelly
Hi. On Wednesday 16 Feb 2011 at 00:49 Simon J Welsh wrote: As $z is converted to a boolean and exists, that works just the same way as !empty(). --- First I'd like to apologise for handing out bad advice, and second, to thank Simon and Andre for pointing out my mistake. I'll go back to

Re: [PHP] Custom function

2011-02-16 Thread Dan Schaefer
In my code, I set the optional parameter to NULL and check for triple equals === or !== to see if the variable has been passed with a value. IMO, this is the safest way. function MyFunction($x, $y, $z=NULL) { if ($z !== NULL) { // Do Something } } Dan Schaefer Web Developer/Systems Analyst

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com wrote: In my code, I set the optional parameter to NULL and check for triple equals === or !== to see if the variable has been passed with a value. IMO, this is the safest way. function MyFunction($x, $y, $z=NULL) { if ($z !==

Re: [PHP] Custom function

2011-02-16 Thread Andre Polykanine
Hello Peter, So is func_get_args() the unique way? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message

Re: [PHP] Custom function

2011-02-16 Thread Adam Richardson
On Wed, Feb 16, 2011 at 3:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com wrote: In my code, I set the optional parameter to NULL and check for triple equals === or !== to see if the variable has been passed with a value.

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Andre Polykanine an...@oire.org wrote: Hello Peter, So is func_get_args()     the unique way? Not really sure what you mean by the unique way. Most things proposed so far in the thread would be fine for most purposes, I'd say. If you really need finegrained

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Adam Richardson simples...@gmail.com wrote: On Wed, Feb 16, 2011 at 3:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com wrote: In my code, I set the optional parameter to NULL and check for triple

Re: [PHP] Custom function

2011-02-16 Thread Paul M Foster
On Wed, Feb 16, 2011 at 09:21:20PM +0100, Peter Lind wrote: On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com wrote: In my code, I set the optional parameter to NULL and check for triple equals === or !== to see if the variable has been passed with a value. IMO, this is

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 22:04, Paul M Foster pa...@quillandmouse.com wrote: On Wed, Feb 16, 2011 at 09:21:20PM +0100, Peter Lind wrote: On 16 February 2011 21:00, Dan Schaefer d...@performanceadmin.com wrote: In my code, I set the optional parameter to NULL and check for triple equals === or

[PHP] iVery payment integration help

2011-02-16 Thread Michael Simiyu
hello, i need some quick help integrating the iVery payment gateway in a wordpress site thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iVery payment integration help

2011-02-16 Thread Mujtaba Arshad
Here you go: http://lmgtfy.com/?q=how+to+integrate+the+iVeri+payment+gateway+in+a+wordpress+site On Wed, Feb 16, 2011 at 4:27 PM, Michael Simiyu simiyu.mich...@gmail.comwrote: hello, i need some quick help integrating the iVery payment gateway in a wordpress site thanks -- PHP

[PHP] DOMDocument depth limit

2011-02-16 Thread James Devine
Is there any way to pass LIBXML_PARSEHUGE to DOMDocument::loadHTML ? I'm trying to load an in-memory html document and I'm hitting this limit, DOMDocument::load and DOMDocument::loadXML both look like they accept options but DOMDocument::loadHTML does not. -- PHP General Mailing List

Re: [PHP] iVery payment integration help

2011-02-16 Thread Nicholas Kell
On Feb 16, 2011, at 3:34 PM, Mujtaba Arshad wrote: Here you go: http://lmgtfy.com/?q=how+to+integrate+the+iVeri+payment+gateway+in+a+wordpress+site On Wed, Feb 16, 2011 at 4:27 PM, Michael Simiyu simiyu.mich...@gmail.comwrote: hello, i need some quick help integrating the iVery

[PHP] root of PHP found!

2011-02-16 Thread Daevid Vincent
Aha! I am working for the company that was the root of PHP! http://www.panasonic.net/history/founder/chapter3/story3-02.html ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Howdy (new in here)

2011-02-16 Thread Tamara Temple
On Feb 15, 2011, at 11:23 PM, Brian Waters wrote: On Tue, Feb 15, 2011 at 11:46 PM, Tamara Temple tamouse.li...@gmail.com wrote: I was unlucky enough to find someone who coded a function that went on for 30 pages one (this was in C, not PHP) and *that* was hard to untangle.

Re: [PHP] root of PHP found!

2011-02-16 Thread Daniel Brown
On Wed, Feb 16, 2011 at 18:15, Daevid Vincent dae...@daevid.com wrote: Aha!  I am working for the company that was the root of PHP! http://www.panasonic.net/history/founder/chapter3/story3-02.html ;-) I'm surprised you found that. Very few people know that PHP is actually just a

[PHP] How is this possible???? (addslashes)

2011-02-16 Thread Paul S
Can anyone please tell me how the addslashes output (note = Everyone''s a card on the \earth) in the following example is possible. It is addslashes output but this result is consistent with the output from post when runtime is set: 1): a single quote is inserted before a single quote and nothing

Re: [PHP] How is this possible???? (addslashes)

2011-02-16 Thread Daniel Brown
On Feb 16, 2011 7:07 PM, Paul S pau...@roadrunner.com wrote: Can anyone please tell me how the addslashes output (note = Everyone''s a card on the \earth) in the following example is possible. It is addslashes output but this result is consistent with the output from post when runtime is set:

Re: [PHP] Turning off magic_quotes_gpc?

2011-02-16 Thread Michael Stroh
Thanks for the replies, I got caught up in another project and wasn't able to get back to this. The problem is that I've located a couple of scripts that are already on the system and are acting up and I believe it's due to magic quotes being on. Is there a way I could