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 t

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

2011-02-16 Thread Daniel Brown
On Feb 16, 2011 7:07 PM, "Paul S" 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: 1): a si

[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 no

Re: [PHP] root of PHP found!

2011-02-16 Thread Daniel Brown
On Wed, Feb 16, 2011 at 18:15, Daevid Vincent 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 cover-up for Pan-Asi

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 > 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. Why!?!?!?!?!?!?! - BW (un?)fortu

[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] 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 > wrote: > >> hello, >> >> i need some quick help integrating the iVery payment gateway i

[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 (http://www.

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 wrote: > hello, > > i need some quick help integrating the iVery payment gateway in a > wordpress site > > thanks > > -- > PHP General Mailing List

[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] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 22:04, Paul M Foster wrote: > On Wed, Feb 16, 2011 at 09:21:20PM +0100, Peter Lind wrote: > >> On 16 February 2011 21:00, Dan Schaefer wrote: >> > In my code, I set the optional parameter to NULL and check for triple >> equals >> > "===" or "!==" to see if the variable has bee

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 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.

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Adam Richardson wrote: > On Wed, Feb 16, 2011 at 3:21 PM, Peter Lind wrote: > >> On 16 February 2011 21:00, Dan Schaefer wrote: >> > In my code, I set the optional parameter to NULL and check for triple >> equals >> > "===" or "!==" to see if the variable has been pass

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:45, Andre Polykanine 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 control, I'd su

Re: [PHP] Custom function

2011-02-16 Thread Adam Richardson
On Wed, Feb 16, 2011 at 3:21 PM, Peter Lind wrote: > On 16 February 2011 21:00, Dan Schaefer 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. > > > >

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 From

Re: [PHP] Custom function

2011-02-16 Thread Peter Lind
On 16 February 2011 21:00, Dan Schaefer 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 !== NULL) { > // Do

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 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 kee

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] 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 su

[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 ima

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 Hutto wrote: On Wed, Feb 16, 2011 at 9:41 AM, David Hutto 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 sai

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 K&R style was the only n

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 wrote: > On Wed, Feb 16, 2011 at 07:15, Richard Quadling wrote: >> On 16 February 2011 11:25, Andre Polykanine wrote: >>> Hello Fotoo, >>> >>>           >> error_reporting(0); >> >> Really? >> >> You consider shoving your head in the sand a REALISTIC op

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 wrote: > On Wed, Feb 16, 2011 at 9:41 AM, David Hutto 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 wasn't advocating it as a solution,

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 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 timeline, your interd

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 Daniel P. Brown
On Wed, Feb 16, 2011 at 09:37, David Hutto wrote: > > What was the intended purpose again? The hiding of errors. -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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 wrote: > On Wed, Feb 16, 2011 at 07:15, Richard Quadling wrote: >> On 16 February 2011 11:25, Andre Polykanine wrote: >>> Hello Fotoo, >>> >>>           >> error_reporting(0); >> >> Really? >> >> You consider shoving your head in the sand a REALIS

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 wrote: > On 16 February 2011 11:25, Andre Polykanine wrote: >> Hello Fotoo, >> >>           > error_reporting(0); > > Really? > > You consider shoving your head in the sand a REALISTIC option? Well, at the least, it would shut the errors up in

Re: [PHP] Finding split points in an article for inserting ads

2011-02-16 Thread Gerardo Benitez
I think you can do it any of both, is only a matter of taste. Gerardo. On Wed, Feb 16, 2011 at 1:26 AM, Tamara Temple wrote: > > > Dear list, > > I want to extend the original question to a discussion about the relative > merits of doing this within PHP vs. doing it afterwards in JavaScript. I

Re: [PHP] DOMDocument, content of entity

2011-02-16 Thread Fanda
No I have not. Should I? Works it different way from DOMDocument::loadHTMLFile()? Data looks like this: Name Address Contact ID: 3517438CategoryDate ""Jay Blanchard"" píse v diskusním príspevku news:E6996B6DBDAC894FAEC7E807EE4482E308E696@ygex01wal.onecall.local... [snip] The DOM onl

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: http://www.php.net/unsub.php

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 by $cols->item(0)->nodeValue, it is without 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 i

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 by $cols->item(0)->nodeValue, it is without 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 unsubscr

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 tag, containing string in 3 rows ()? 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: 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 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 Mailing List (

[PHP] DOMDocument, content of entity

2011-02-16 Thread Fanda
Hi, does anybody know, how can I parse (by DOMDocument::loadHTMLFile) content of tag, containing string in 3 rows ()? 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 Andre Polykanine
Hello Fotoo, http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: fo...@gmx.de To: php-general@lists.php.net Date created: , 11:12:13 AM Subject: [PHP] errors after u

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: http:

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, 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 warning - jus

[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 t