php-general Digest 3 Oct 2011 07:04:26 -0000 Issue 7502
Topics (messages 315111 through 315114):
EBNF-Grammar of PHP
315111 by: Anonym
Re: php.ini setting
315112 by: Jim Giner
315113 by: Stephen
Oauth consumer and provider gives signature_invalid error
315114 by: chamila gayan
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi
i´m looking for an EBNF-Grammar of PHP. is there an official (or
complete) grammar available?
thanks for your help
--- End Message ---
--- Begin Message ---
Spoke to quickly - still having issues. While the .ini file in each of my
appl. folders has magic quotes set to Off, my scripts are still escaping my
input - obviously following the server's .ini file settings. Waiting for my
hosters to get back to me.
--- End Message ---
--- Begin Message ---
On 11-10-02 12:12 PM, Jim Giner wrote:
Spoke to quickly - still having issues. While the .ini file in each of my
appl. folders has magic quotes set to Off, my scripts are still escaping my
input - obviously following the server's .ini file settings. Waiting for my
hosters to get back to me.
You could refer them to:
http://php.net/manual/en/security.magicquotes.php
Indicate that magic quotes have deprecated, and ask them to turn them off.
But they will say "no", because of all the other users on the server
that you use.
In the end, you will be left with stripping the slashes on your own:
<?php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}
?>
I know it is not the answer you are looking for, but it does work, and
used by thousands of coders.
Stephen
--- End Message ---
--- Begin Message ---
hi All,
I'm trying develop Oauth consumer and provider as very same way of twitter.
I followed the below tutorials. Here is my consumer code
http://pastebin.com/39sxKbuz and here is my provider code
http://pastebin.com/xtEsrTGf
when I run the client it gives error as follow
Array
(
[oauth_problem] => signature_invalid
[debug_sbs] => GET
[http%253A%252F%252Fwww.abc.loc%252Foauth%252Frequesttoken] =>
[oauth_consumer_key%253D1d7259a770e0732d191bb566b5cf9e%2526oauth_nonce%253Db4168962db5559eb55859f1699622d07%2526oauth_signature_method%253DHMAC-SHA1%2526oauth_timestamp%253D1317621581%2526oauth_version%253D1.0%2526route%253Doauth%25252Frequesttoken]
=>
)
may be I'm doing this in a wrong way or not understood properly so your
suggestions are welcome. And I really appreciate if someone can explain
what are the wrong codes here and how I correct them. thanks a bunch .
~Chamila Gayan
--- End Message ---