php-general Digest 17 Feb 2011 13:17:55 -0000 Issue 7186
Topics (messages 311393 through 311403):
iVery payment integration help
311393 by: Michael Simiyu
311394 by: Mujtaba Arshad
311396 by: Nicholas Kell
DOMDocument depth limit
311395 by: James Devine
root of PHP found!
311397 by: Daevid Vincent
311399 by: Daniel Brown
Re: Howdy (new in here)
311398 by: Tamara Temple
How is this possible???? (addslashes)
311400 by: Paul S
311401 by: Daniel Brown
Re: Turning off magic_quotes_gpc?
311402 by: Michael Stroh
PHP 5.3.6RC1 Released for Testing
311403 by: Johannes Schlüter
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
hello,
i need some quick help integrating the iVery payment gateway in a
wordpress site....
thanks
--- End Message ---
--- Begin Message ---
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 <[email protected]>wrote:
> 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
>
>
--
Mujtaba
--- End Message ---
--- Begin Message ---
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
> <[email protected]>wrote:
>
>> 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
>>
>>
>
>
> --
> Mujtaba
HA! That's a good one. *bookmarked*
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
Aha! I am working for the company that was the root of PHP!
http://www.panasonic.net/history/founder/chapter3/story3-02.html
;-)
--- End Message ---
--- Begin Message ---
On Wed, Feb 16, 2011 at 18:15, Daevid Vincent <[email protected]> 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-Asian culture influence operations
conducted regularly by the CIA.
Unfortunately, now that you do know, you know what we have to do to you....
;-P
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--- End Message ---
--- Begin Message ---
On Feb 15, 2011, at 11:23 PM, Brian Waters wrote:
On Tue, Feb 15, 2011 at 11:46 PM, Tamara Temple <[email protected]
> 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?)fortunately, he was no longer with the company, which was why I
got to take it over. It wasn't the oddest thing, by far. His designs
were hugely complex (way overengineered for the task at hand, plus
they didn't work), and he didn't use any consistent indenting style.
--- End Message ---
--- Begin Message ---
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 is added before " or \.
php: ...
-------------------------------------------
<?php
//error_reporting(E_ALL);
echo 'display_errors = ' . ini_get('display_errors') . "<br>";
echo 'register_globals = ' . ini_get('register_globals') . "<br>";
echo 'magic_quotes_gpc = ' . ini_get('magic_quotes_gpc') . "<br>";
echo 'get_magic_quotes_gpc = ' . get_magic_quotes_gpc() . "<br>";
echo 'get_magic_quotes_runtime = ' . get_magic_quotes_runtime() . "<br>";
echo "<br><br>";
echo "<br>";
echo 'Current PHP version: ' . phpversion();
echo "<br><br>";
?>
<?php
$note = "Everyone's a card on the \earth";
echo "<br>$note<br>";
$note = addslashes($note);
echo "<br>note = $note<br>";
?>
<?php
phpinfo();
?>
-------------------------------------------------
output:
------------------------------------------------
display_errors = 1
register_globals = 1
magic_quotes_gpc = 1
get_magic_quotes_gpc = 1
get_magic_quotes_runtime = 1
Current PHP version: 4.4.4
Everyone's a card on the \earth
note = Everyone''s a card on the \earth
Warning: phpinfo() has been disabled for security reasons in
-----------------------------------------------------------------------------------
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--- End Message ---
--- Begin Message ---
On Feb 16, 2011 7:07 PM, "Paul S" <[email protected]> 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 single quote is inserted before a single
> quote and nothing is added before " or \.
>
> php: ...
> -------------------------------------------
> <?php
> //error_reporting(E_ALL);
> echo 'display_errors = ' . ini_get('display_errors') . "<br>";
> echo 'register_globals = ' . ini_get('register_globals') . "<br>";
> echo 'magic_quotes_gpc = ' . ini_get('magic_quotes_gpc') . "<br>";
> echo 'get_magic_quotes_gpc = ' . get_magic_quotes_gpc() . "<br>";
> echo 'get_magic_quotes_runtime = ' . get_magic_quotes_runtime() . "<br>";
> echo "<br><br>";
> echo "<br>";
> echo 'Current PHP version: ' . phpversion();
> echo "<br><br>";
> ?>
>
> <?php
> $note = "Everyone's a card on the \earth";
> echo "<br>$note<br>";
> $note = addslashes($note);
> echo "<br>note = $note<br>";
> ?>
>
> <?php
> phpinfo();
> ?>
> -------------------------------------------------
>
> output:
> ------------------------------------------------
> display_errors = 1
> register_globals = 1
> magic_quotes_gpc = 1
> get_magic_quotes_gpc = 1
> get_magic_quotes_runtime = 1
>
>
>
> Current PHP version: 4.4.4
No offense, but are you kidding me? The host disables phpinfo() for
security reasons, but keeps 4.4.4 running? Talk about running, Paul.... run
away from them. Fast.
> Everyone's a card on the \earth
>
> note = Everyone''s a card on the \earth
>
> Warning: phpinfo() has been disabled for security reasons in
>
-----------------------------------------------------------------------------------
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
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 turn magic quotes off on a file by file basis or even just
folders at a time to test things systematically before I turn things
off system wide?
Cheers,
Michael
On Thu, 10 Feb 2011 14:52:26 -0500
"Bob McConnell" <[email protected]> wrote:
It's a good idea to turn it off as soon as possible. However, you need
to test your site to make sure it won't broke something first.
You have to test not only your site, but also the data that possible
lies in the database, if any.
There is a way to undo the results of magic quotes. We have
implemented it on a number of sites so that we won't care when it
gets turned off. Early in the script we have the following code:
// If magic quotes is on, we want to remove slashes
if (get_magic_quotes_gpc()) {
// Magic quotes is on
$response = stripslashes($_GET[$key]);
}
Many people use this approach or something similar and when you use
that from the beginning of production, it's not a problem.
If however you are going to turn Magic Quotes off while running a
production system where it was previously turned on, you might run into
problems.
Don't trust this method blindly. You have to remember that stripslashes
will only remove a single slash. If, for some reason, data has been
pulled out, updated, and re-inserted it may contain several slashes
(because each time Magic Quotes will add a new slash).
If you are turning off Magic Quotes on a system that has been running
with Magic Quotes on, you have to inspect the data manually to be safe.
---
Kind regards
Kim N. Lesmer
Programmer/Unix systemadministrator
Web : www.bitflop.com
E-mail : [email protected]
From: Michael Stroh
I'm maintaining various php scripts on a server that was originally
configured to have magic_quotes_gpc turned on. The installed php
version
is 5.2.6. I've read that magic_quotes_gpc is deprecated in 5.3 and
continuing to use it is "highly discouraged." I've ran into a few
fields
that I believe this is causing issues with so I'm considering turning
it
off but am wondering what steps should I take to make sure that
nothing
breaks and what should I look out for? Also, is it still a good idea
to
turn off since this installation isn't yet at 5.3?
It's a good idea to turn it off as soon as possible. However, you need
to test your site to make sure it won't broke something first.
There is a way to undo the results of magic quotes. We have implemented
it on a number of sites so that we won't care when it gets turned off.
Early in the script we have the following code:
// If magic quotes is on, we want to remove slashes
if (get_magic_quotes_gpc()) {
// Magic quotes is on
$response = stripslashes($_GET[$key]);
}
Bob McConnell
I'm maintaining various php scripts on a server that was
originally configured to have magic_quotes_gpc turned on. The
installed php version is 5.2.6. I've read that magic_quotes_gpc
is deprecated in 5.3 and continuing to use it is "highly
discouraged." I've ran into a few fields that I believe this is
causing issues with so I'm considering turning it off but am
wondering what steps should I take to make sure that nothing
breaks and what should I look out for? Also, is it still a good
idea to turn off since this installation isn't yet at 5.3?
Cheers,
Michael
|
--- End Message ---
--- Begin Message ---
The first release candidates of 5.3.6 was just released for testing and
can be downloaded here:
http://downloads.php.net/johannes/php-5.3.6RC1.tar.bz2 (md5sum:
f78d7b47ddbfca42ebdfcdef2adfe859)
The windows binaries are available at: http://windows.php.net/qa/
This is the first step in the release process of this versions and goal
is having a 2nd RC two weeks from now. Majority of the changes are of
the "bug fix" variety. To ensure that the release is solid, please test
this RC against your code base and report any problems that you
encounter.
Johannes Schlüter
PHP 5.3 Release Master
--- End Message ---