php-general Digest 18 Feb 2011 14:41:08 -0000 Issue 7188
Topics (messages 311420 through 311423):
Re: How is this possible???? (addslashes)
311420 by: Nisse Engström
assistance
311421 by: Michael Simiyu
311422 by: Daniel Brown
Re: Howdy (new in here)
311423 by: Kirk Bailey
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 ---
On Thu, 17 Feb 2011 06:56:33 +0700, "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 single quote is inserted before a single
> quote and nothing is added before " or \.
...
> <?php
> $note = "Everyone's a card on the \earth";
> echo "<br>$note<br>";
> $note = addslashes($note);
> echo "<br>note = $note<br>";
> ?>
...
> output:
>
> Everyone's a card on the \earth
>
> note = Everyone''s a card on the \earth
<http://se.php.net/manual/en/function.addslashes.php>
"Having the PHP directive magic_quotes_sybase set to on
will mean ' is instead escaped with another '."
Both "\e" and "\\e" produces the same output.
/Nisse
--- End Message ---
--- Begin Message ---
am using jcart but would like to customize the gateway.php file to use
another payment gateway instead of paypal....any help from the
community ?
--- End Message ---
--- Begin Message ---
On Fri, Feb 18, 2011 at 06:06, Michael Simiyu <[email protected]> wrote:
> am using jcart but would like to customize the gateway.php file to use
> another payment gateway instead of paypal....any help from the community ?
Doubtful. Contact someone at jcart instead --- it's not related
to general PHP stuff.
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
--- End Message ---
--- Begin Message ---
Oh hey, that's a good point. All the stuff i saw so far indented 2
spaces. WHY?
Can I just indent a TAB if my editor permits this? indenting 4
spaces (2 nests) is easy, but suppose I hit one extra space- not
enough difference to be really noticeable. Let's talk about
indentation in php for a moment, could we?
On 2/16/2011 6:36 PM, Tamara Temple wrote:
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
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-----+
| BOX |
+-----+
think
--- End Message ---