nt and beneficial. When we have that, and
> programmers learn massively parallel design, maybe then we will have a need
> for parallel php (pphp?) for now, there is no need, only poor design.
What? i don't know what you mean by "massively parallel architecture"
but it certainly ha
solution I was glad that I did. PHP
is not memory efficient and we really don't need it hogging up the CPU
when a real C program can do the intensive work. And if you need
threading, then you are very likely looking at exactly the type of
workload that PHP is designed not to do!
--
Dotan Cohen
x27;m not supposed to touch the main script without a very good
reason.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Apr 23, 2012 at 14:18, Jim Giner wrote:
> Just my $.02, but don't you need:
>
> ini_set('display_errors', '1');
>
> as well?
>
Possibly, thanks. I actually don't have access to that!
--
Dotan Cohen
http://gibberish.co.il
http://what
half-Francophone who
> sometimes calls days "jours". Not that it helps me remember it, I
> have to refer to that page pretty much every time I use date().
>
I also refer to that page enough to have it bookmarked on my homepage!
--
Dotan Cohen
http://gibberish.co.il
http://
sn't chosen.
>
> Well, try remembering the 'l' in 'full' if you need it the next time..;)
>
You are some sleuth! Let me know first if you ever have any dirt on me, Matijn!
Thank you for the mnemonic "full". I'll know next week if it sticks
On Tue, Feb 7, 2012 at 19:31, Dotan Cohen wrote:
> function is_strong($char) {
> if ( in_array($char, $arrayOfRtlCharacters) ) {
> return "RTL";
> }
> if ( in_array($char, $arrayOfLtrCharacters) ) {
> return "LTR";
> }
>
r, $arrayOfRtlCharacters) ) {
return "RTL";
}
if ( in_array($char, $arrayOfLtrCharacters) ) {
return "LTR";
}
return FALSE;
}
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ray
of the vB_ProfileBlock_* classes and they are called by
vB_ProfileBlock_$className. I personally consider that terrible coding
practice, but then again if vBulletin were well-coded then I would
probably be made redundant so I cannot complain!
Thanks for the help and for the ideas!
--
Dotan
this class object is
created?
Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
). They can pass in crap data, and the first thing your
> data access library does before doing anything else is it encodes the
> data into a bunch of gibberish... And when they pull the data back,
> your library gets the data and unencodes it. the devs don't have to
> worry about SQL injection, you don't have to worry about their
> competence, you win ;)
>
Change the access libraries for the devs? I think that you've gone a
bit too far!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Sep 21, 2011 at 22:36, Daniel Brown wrote:
> I should've specified, though, that then you would simply have the
> fatal error message (call to undefined function) pass through, not the
> unhashed original text.
>
Yes, that is obvious.
--
Dotan Cohen
http://gib
Thanks Igor. I will sleep peacefully this night!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s rebuilt without MD5 hash support, or some other
> oddity that is on the outside edge of possibility.
>
The rebuild without md5 is an interesting point. That sounds exactly
like the type of it-will-never-happen-until-it-happens-to-me problems!
Thanks for the heads up.
--
Dotan Cohen
http
id FROM table WHERE password='{$password}'";
Now I'm a bit queasy about not using mysql_real_escape_string() on
that $password variable! Please reassure me or tell me the folly of my
ways. Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP Gene
id FROM
> special_table ORDER BY special_id LIMIT 0, 1000) AS table2 USING (id)
>
> Note: syntax may not be valid, but should be fairly straight forward
> to fix, have no time to play with it though...
>
Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
pe_string().
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lly you query will be
> doomed. Inner joins in,this is the best option for this . You can use a temp
> table for this
>
Thanks Chetan. I will keep that in mind if I ever get around to
learning about subselects.
Have a great day!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
ere is to use the USING clause which seems to run a lot
> faster than any ON clause, or work on an optimized subselect, especially if
> you are running a cluster.
>
Agreed. In fact I don't know from where the array is coming, that's
not my part of the code! But I agree that if it is
.
>
The number is never exactly 50 but rather some arbitrary large number.
But there is no need for LIMIT, that is the purpose of the _INNER_
JOIN. INNER means to only return the matching rows.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://w
FROM othertable where (using logic here));
>
> guess it all depends on how you want to do it... but that would make it
> 1 db query
>
I personally would stick with the inner join as I know that syntax,
but thanks for introducing me to the subselect. I have never seen
that.
--
Dota
this is only 1 call, and gets you the data.
>
This is exactly what I need, thanks!
> Are you querying the database to get the id's in the frist place? if
> so, you could look at doing an inner join on the 2 tables.
>
Actually, I do suspect that is where it's coming fr
RE
> userID= in($ids ) }
Thank you Muad!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Sep 13, 2011 at 17:29, Ashley Sheridan
wrote:
> SELECT * FROM table WHERE userID IN (1,2,3,4,5,etc)
>
> Much smaller than what you proposed in #3, and easier to make if your user is
> list is already an array.
>
Thank you Ash, that is exactly what I was looking for!
lause,
containing all the userID's that I am interested in?
Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Aug 18, 2011 at 23:17, Daniel Brown wrote:
> Depending on your keyboard layout, yes. ;-P
>
It is on all four of mine :)
> If you like operators with your grep, try grepping on steroids by
> using egrep (`man egrep`).
>
I'll look into that. Thanks!
-
both on the same key.
Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;s practice of redundancy in the name of
consistency. If nothing at the least, it gets us used to looking at
the code to debug as above.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
has a Hebrew interface. Are you getting directional
display issues? Gibberish?
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ave to touch a live site, in fact _most_ of the work I do
is for small accounts that don't have a test environment. I can often
write a test page with a security-by-obscurity filename, but relying
on the interpreter is a habit that I cannot afford.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e you only need to scan one axis.
>
That bracing style drives me nuts! But I have no problem scanning a
single axis for the close brace and any statement, be it an if, while,
switch, or something else.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (
whatever feels
reasonable at the time. Often that depends on the complexity of
surrounding code.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at is a good compromise.
Like this I suppose:
if (something)
if (something) {
}
if (something) {
// Code here
}
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
her while or
if, he will get lost in the sea of parenthesis. Therefore, I always
close elements before filling them in. It keeps the mind's state
machine saner!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
beginners.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
el, no recursion and 1 query (more or less) and I
> have all the results I needed. It was seconds in comparison.
>
Thanks, I enjoy reading these real-life scenarios. This was a terrific example.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ories of category X requires searching
> first for all children, then all grandchildren, and so on, resulting in a
> recursive query.
> Using the nested sets model requires a single non-recursive query to get the
> same data.
>
I do agree that the non-recursive method at retrieval ti
the length of the sig far outweighs the length of
your typically concise and to-the-point post. Constructive advice:
trim the sig!
Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Adding categories to the hierarchical model is definitely faster
> so it comes down to your insert-to-select ratio. Moving a subtree is also
> much easier with the hierarchical model.
Which do you call the hierarchical model? That term is not used in the
linked article.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at for tomorrow) I'll see it differently. Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ng that a customer exists, that
implies compensation, and therefore fair bait.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed
> within the equation.
>
> However, I digress, momentarily.
>
> But Einstein gave freely, for humanity, not for gain, other than
> personal freedom.
>
> An equation that benefited all, and yet gain is a personal product.
>
> Also, if you can answer it, is gravit
if you have multiple tag hierarchies.
>
Is that strategy widely deployed, then? It seems so unruly having to
change on average half the database records for every new leaf.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e that is to
> work like libraries do: 10 is "fiction", 10.05 is "crime novels", 10.05.07 is
> "British authors", and so forth. Your `tags` table then looks like
>
Thanks. I prefer the "parent tag" field, though, I feel that it is
more flexible.
On Thu, Jan 20, 2011 at 18:20, Dotan Cohen wrote:
> On Thu, Jan 20, 2011 at 17:00, Richard Quadling wrote:
>> I'd have my items table, my tags table and a join table for the two.
>> My join table is really simple. UniqueID, ItemID, TagID.
>>
>
> Yes, that is the
27;d recommend using a nested set approach for the tags
> (http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
> gives a good explanation on the issues and methodology of nested
> sets).
>
That is terrific, at least the first half. The second half, with the
Venn diag
he skirted personal attacks and
borderline trolling. Seriously, it is as entertaining as it is
informative. Who needs slashdot with action like this?
If this stuff ever comes up again, will the participants be so kind as
to CC me so I don't miss it? Thanks!
--
Dotan Cohen
http://gibberish.co.il
h
mation on
> the server.
>
> How do you thwart these possible and other intrusion nodes?
>
A different password on each potentially-weak site? Lasspass is great
for this. You can then export and print your Lastpass data, put it on
a removable media, or access it via web access.
--
t logged if you typed it in as well, on the site, or that
> someone could lift the password if given the authority on your system,
> correct?
>
There is little us as serverside programmers can do when the user's
system is already compromised. However, securing the password down the
wir
are assigned passwords.
> Under the circumstances I described, I have yet to hear in what way
> copying and pasting passwords compromises security of anything by
> itself. Please enlighten me.
>
I think this is the underwear rule: never leave passwords/underwear
out in the open where
or trailing spaces in the the username only:
"Your username [begins||ends] with an errant space. Please reenter
your credentials more carefully."
I hope that they figure out to check their passwords as well.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
on cold, the last of the Mohicans, the look on your face,
> the way we were, the DeLorean, the secret of nirvana, and all of my
> exabytes of pr0n collections.
>
Did you know that when you type 'brown1' we see it as **? Your
system does that automatically.
--
Dotan Cohen
On Tue, Dec 28, 2010 at 22:43, Nathan Rixham wrote:
> that's what pkcs12 was invented for, just issue another certificate / key
> pair.
>
I could probably automate and script it, I would just give the users a
name/password combo to their own control panel...
--
Dot
possible!
While we're at it, how about adding just one little feature...
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he public key
>> of the cert.
>
> I just realize that this would also completely solve your trim() problem!
>
"Hello, Dotan? Hi, we haven't spoken in a full week now that we don't
have the trim problem. But I reinstalled Windows and wiped the drive,
now I c
rd && $enteredPassword!=$realPassword){
print "Warmer!";
}
I'm kidding. I'll not trim. But if $trimmedUsername !=
$enteredUsername I'll mention that fact to the user and remind him to
be careful to copy exactly what he means to copy. Username only, not
password.
gt; But before all that goes on, I have to decide what to do about leading
>> and trailing spaces.
>
> As has been noted a couple of times: trim usernames. Never trim passwords.
>
I think that is right. I needed that push. Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-
flow uphill, or
reversing aging? I can do a lot of things, but don't even ask me to
bring back the dead!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on the client, testing for
this, then logging it to a separate database with no correlation to
the users. Interesting it will be, at least.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. This way, each login is done with a
different hash of the password so an attacker cannot simply capture
and reuse the hashed password.
But before all that goes on, I have to decide what to do about leading
and trailing spaces.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ssword that takes advantage of both these features might be "
John123Lennon&lang=en" which is easy to type, easy to remember, very
long and contains a wide variety of characters. Trimming spaces would
_not_ be what a user of this password would want. And yes, I'm the OCD
geek with su
the new bank's website would not let me use an
exclamation point in my password. I might be an extreme example, but
it is behaviour that I do not agree with.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
find counting the password character in a
> field difficult because the characters are all the same and the eyes can't
> follow easily)
>
I will add such a footnote in the event of a failed password attempt
(right there with the capslock warning) but I do not think that a
coun
course, if I trim() also when the user is setting
his password then he will never know that his password is really 1
digit shorter, but do I really want to do that? Thoughts? Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net
I found this terrific tool for creating dynamic zip files:
http://pablotron.org/software/zipstream-php/
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of this in the fine manual, and even
googling has led me nowhere. Ideas? Am I missing something obvious?
Thanks!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld run web-languages such
> that users in the office could access their server and run scripts using
> browsers?
>
Just connect them to a router and don't connect the router to the WAN.
Each machine will get it's own IP address (assuming that the router is
running a DHCP server).
ng totally closed to the outside world other than to their
> internal employees? Or is this something that can only be provided by a LAN
> with no Internet connection?
>
Filter on IP address. Not foolproof, but mostly there.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
han, I _just_finished_ reading that page!
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e quote character is
not a valid character in a variable name.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Take for example:
INSERT INTO table ( field ) VALUES ('{$variable}' )
Why the curly brackets? Where in the fine manual is this addressed? I
started from [1] but did not find the relevant info.
[1] http://il2.php.net/manual/en/book.mysql.php
--
Dotan Cohen
http://gibberish.co.il
http
On 14 June 2010 15:36, HallMarc Websites wrote:
> Another is a CSS solution where you type the email address backwards and
> then use the CSS style declaration:
> style="direction: rtl; unicode-bidi: bidi-override;"
>
How does that work with screen readers? How about copy-p
t; javascript but have concerns about accessibility for both of these.
>
> Does anyone have any experience of writing quizzes with php and if so,
> can you recommend any resources to get me started?
>
> TIA
>
> Paul
HTML has a element with radio buttons, text fields, and more. U
gt; Thanks...
>
What is wrong with 626,299 groups of 2 items each (done in my head, so
I might be off a little)?
--
Dotan Cohen
http://bido.com
http://what-is-what.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
't forget, there might even be a cookie with the name "foo".
--
Dotan Cohen
http://bido.com
http://what-is-what.com
Please CC me if you want to be sure that I read your message. I do not
read all list mail.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
> What about eBook ($23.99)?
>
> http://oreilly.com/catalog/9780596006563
>
> If you can get this, you can get that.
>
That may be a good idea. Certainly better than the pirate bay.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
Please CC me if you want to b
27;user_id'];
>
> $comment = base64_encode($_POST['comment']);
>
>
> $sql = "INSERT INTO `comments` (user_id, comment) VALUES ($user_id,
> '$comment')";
>
> ?>
I see what you mean. In fact, userIDs are stored, and indeed I ensure
that they are inte
On 19 February 2010 16:27, tedd wrote:
> At 3:18 PM +0200 2/19/10, Dotan Cohen wrote:
>>
>> In order to prevent SQL injection, can one simply base64 encode the
>> data and store that? Then it can be decoded when I need to display it
>> on a website. I understand that th
other drawbacks or things to be aware of?
Thanks.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
Please CC me if you want to be sure that I read your message. I do not
read all list mail.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
communicate verbally,
even when one could simply fax a photo of a grape and a glass of wine.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
duder. When I say 'arrow-thingy' you make hyphen and a
> greater-than sign. Capiche?" Problem solved. ;-)
>
That is what was done, but I wanted to know if there was already some
agreed-upon language.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP G
>
It _should_ all be UTF-8 but I suppose that it is possible for someone
to spoof a non-UTF-8 POST request. I do not want to take the
development of a secure function into my own hands.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.
> If you look a little closer, you will see that I am not using addslashes().
> Rather, I am using addcslashes(). This allows to specify the characters
> that I want escaped, instead of the default assumed characters from
> addslashes().
>
I do not know which characters to esc
om/214652
>
> For more real-time collaboration and sharing of code fragments.
>
Widely used, but sometimes unavailable due to technological limitations.
> Daevid.
Is your name related to "David"? I have never seen this spelling, and
my interest in etymology is overwhelming. Wh
> Maybe this will help...
>
> Jim
>
So far as I understand mysql_real_escape_string() was invented because
addslashes() is not adequate.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> if(@mysql_real_escape_string($variable) === false)
>
Perfect! The @ symbol suppresses the error and I can structure the
code according to whether or not there is a connection.
Thank you!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List
f it is
all internal users.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
orting($error_reporting);
> unset($error_reporting);
>
Thanks, I will try that this evening. I may not have permissions for
that, but we'll see.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s to do on this server. But it fact this seems to be
the key that I was missing, and even though I cannot make use of it at
least I know in general what needs to be done.
Thanks.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$difference)
function obfuscate_email_address ($address)
Not all of the functions are used in all scripts, however, this file
of reusable functions is included in all of them. Only the clean_mysql
function gives me trouble because it calls mysql_real_escape_string().
--
Dotan Cohen
http://what-is-wh
one always open for the
> purpose of validation? Potentially wasteful, but the architecture in this
> idea is a little different from the norm.
>
Very wasteful indeed, I cannot be so irresponsible with this server.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP
, '\r', '', '\\\'', '\\"', '\\\x1a');
> return str_replace($patterns, $replace, $input);
> }
>
> ?>
>
I think that I would rather trust the built-in functions. I don't need
to do anything "smart" and get attacked. Anybody else have an opinion
on this?
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/10/19 Kim Madsen :
> Dotan Cohen wrote on 2009-10-18 21:21:
>
>> I thought that one could not test if a database connection is
>> established or not, this is the most relevant thing that I found while
>> googling that:
>> http://bugs.php.net/bug.php?id=29645
>
ion sanitize_input() based
> on ereg_* and/or str_replace and the likes.
>
All the connections are to MySQL databases, but to _different_ MySQL
databases on the same host.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To u
mples.
>
Thanks. Going through those pages, I see that it is not what I need.
It is good to know, though.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
functions.inc file as
that will interfere with the database connections going on in the
scripts including that file.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> As for following a convention, just
> get the PHP terminology right,
That is what I was hoping to learn!
> or at least agree on your on
> bastardized terminology.
>
Because this may cause problems in the future.
--
Dotan Cohen
http://what-is-what.com
http://gibberish
> This is a lot of posts to say either read it off character by
> character
If there is a jargon for operators such as -> I'd like to know them.
> or just email the damn line.
>
Not possible for whatever reason, otherwise I wouldn't be bothering the list!
--
Do
es, I need the function to work independently of the database
connection. In other words, the include file cannot connect to the
database but it still must perform the mysql_real_escape_string()
function on UTF-8 data.
Thanks in advance for any ideas.
--
Dotan Cohen
http://what-is-what.com
is definitely not "experienced". ;)
>
I do not need to explain it, I need to say it.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 596 matches
Mail list logo