On Wed, Aug 18, 2010 at 4:55 PM, Adam Richardson wrote:
> On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan > wrote:
>
>> On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote:
>>
>> > I'm trying to write a VERY simple script that does nothing but store all
&g
On Wed, Aug 18, 2010 at 4:49 PM, Ashley Sheridan
wrote:
> On Wed, 2010-08-18 at 13:45 -0700, Brian Dunning wrote:
>
> > I'm trying to write a VERY simple script that does nothing but store all
> the submitted GET and POST vars in a string and echo it out.
> >
> > $response = print_r($_REQUEST, tru
ver, the functions differ significantly in terms of signature, I
tend to write a wrapper function that chooses the appropriate internal call
(e.g., newbar()), but this doesn't play too nicely with documentation within
the PHP ecosystem (although within other language systems such as Java, C#,
a
, just joking with that one.)
Bastiens's points about storage are on spot. I would store the credentials
(in memory, you'd have to reenter them when you reboot) on a separate
machine which would handle all of the encrypted data processing (the DB
server would merely hand-off the en
to that make a case for the
deprecation of single quotes in (X)HTML attributes, please let me know.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
p
>
>
Tristan,
The good news is that you're not crazy. I've had this exact issue (at least
in terms of symptoms) when working with one of my client's websites.
The bad news is that this was long ago, I was using a shared host, and I'm
not the one who cause or, more import
ta to substantiate this worry, however, and the
beautiful simplicity of PHP could still provide the impetus needed to stay
competitive.
> Are there any efforts, projects or initiatives which are floating your boat
> right now and that your watching eagerly (or getting involved with)?
>
Brushing up on C skills so maybe I can try to create some extensions that
facilitate functional programming approaches within PHP (currying, etc.)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Sat, Jul 24, 2010 at 10:20 AM, Robert Cummings wrote:
> On 10-07-24 04:19 AM, Adam Richardson wrote:
>
>>
>> Code that resembled the below is how I used to open new windows before I
>> started using jQuery Note, this completely avoids use of the target
>
gt; copying, and distribution are prohibited unless authorized.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Code that resembled the below is how I used to open new windows before I
started using jQuery Note, this completely avoids use of the target
attribute.
function wireNewWindows(){
if(document.getElementsByTagName){
var anchors = document.getElementsByTagName("a");
for(var i = 0; i < anchors.length; i++){
var node = anchors[i];
if(node.getAttribute('rel') == 'external' ||
node.getAttribute('rel') == 'nofollow'){
node.onclick = function(){
var url = this.href;
window.open(
url,
'newWin','width=700,height=500,Menubar=yes,Toolbar=no,Location=no'
);
return false;
}
}
}
}
}
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
I was google searching, and the only SQL mailing list I found is
currently giving a 503 error, so I hope you don't mind me asking my SQL
question here, since there are a lot of SQL gurus here. I am having a
syntax problem:
Instead of doing a query like this::
select SMS_R_SYSTEM.Name from SM
they're contained within single quotes and will be evaluated
literally:
http://php.net/manual/en/language.types.string.php
That said, as others have pointed out, be very, very careful with this type
of functionality. Even just viewing the code makes me feel like I should
smoke a cigarette to calm my nerves (and I've never been a smoker ;)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
nfo, user first name, etc.), and when I wanted to protect the
information, I signed and encrypted it. Because of the nature of a cookie,
you'd have to guard against replay attacks even if the information is
encrypted:
http://en.wikipedia.org/wiki/Replay_attack
In summary, a cookie is merely
w.php.net/unsub.php
>
>
Thanks for sharing, David. That's a nice compilation of information into
one easy-to-read post.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind wrote:
> On 2 July 2010 19:52, Adam Richardson wrote:
> > On Fri, Jul 2, 2010 at 12:28 PM, wrote:
> >
> >> "Bob McConnell" wrote on 07/02/2010 08:53:30 AM:
> >>
> >> > > Argument
ng up this weekend, have a good one!
>
> Kirk
Hi Kirk,
You beat me to it, that's exactly the issue at hand in this debate. Name IS
deprecated (both in newer versions of HTML and XHTML) for those particular
elements:
http://derickrethans.nl/html-name-attribute-deprecated.html
As Derrick points out on that page, "always read the specs carefully" ;)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
values by reference.
I point this out as perhaps seeing the code will give you a clue as to why
your code had issues in your second test. If you want help figuring out
what's causing trouble, try posting some of the other code (at least the
class and instance vars, connection method, and the query method(s))
contained within the class.
Adam
P.S. Sorry for the duplicate reply, Jakob, I forgot to reply to the entire
list the first time :(
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
ne id with the value "zip".)
That all said, with the advent of javascript data attributes, you'll have
one more way to target elements for design and functionality:
http://ejohn.org/blog/html-5-data-attributes/
Hope this helps,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
ity, the password field was meant merely to protect against
nearby people peering over the shoulder of the user typing in their password
(aka, shoulder surfing.) So in terms of security, nothing is flawed, and
there has been some debate on the need and implementation of password
fields, especiall
.php.net/unsub.php
>
>
As long as you treat it with the same caution that you do general form input
(e.g., proper validation, escaping for mysql or using prepared statements,
etc.), you'll be fine ;)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
andard such as s/mime, then yes:
http://en.wikipedia.org/wiki/S/MIME
http://www.php.net/manual/en/function.openssl-pkcs7-encrypt.php
http://deb-tech.spaces.live.com/blog/cns!49551AC4A11853DE!1021.entry
http://support.apple.com/kb/TA22353
Adam
--
Nephtali: PHP web framework that
On Sat, Jun 19, 2010 at 3:08 AM, Adam Richardson wrote:
> On Fri, Jun 18, 2010 at 3:56 PM, Adam Williams <
> adam_willi...@bellsouth.net> wrote:
>
>> I'm querying data and have results such as a variable named
>> $entries[$i]["dn"]:
>>
>> CN
On Fri, Jun 18, 2010 at 3:56 PM, Adam Williams
wrote:
> I'm querying data and have results such as a variable named
> $entries[$i]["dn"]:
>
> CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx
>
I'm querying data and have results such as a variable named
$entries[$i]["dn"]:
CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx
Basically I need to strip off the first command everything after, so
that I just have it d
I'm querying data and have results such as a variable named
$entries[$i]["dn"]:
CN=NTPRTPS3-LANIER-LD335c-LH107-PPRNP9A92,OU=XXf,OU=XX,OU=X,DC=,DC=xx,DC=xxx
Basically I need to strip off the first command everything after, so
that I just have it d
>
> From: vikash
>
> > What do you use for unit testing in PHP? phpUnit, SimpleTest or any
> other?
>
SimpleTest because of the flexibility.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
like the form to be
> > sent to.
> >
> > In general, on contact forms or "about us" pages, I include some
> > physical address and possibly a phone number. This might satisfy Ash's
> > requirement for "contact details".
> >
> > Paul
> >
&
>
> Cheers,
> Rob.
> --
> E-Mail Disclaimer: Information contained in this message and any
> attached documents is considered confidential and legally protected.
> This message is intended solely for the addressee(s). Disclosure,
> copying, and distribution are prohibited unless authorized.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Clean and lean, Robert ;) Nice!
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
fore
> walking through it with foreach.'*
> *
> *
> *Does this mean - *
> *1) Before I navigate the array, foreach will bring the pointer to the
> starting key?*
> *2) After the first index, it goes to 2nd, 3rd, and nth? *
>
>
> Regards,
> Shreyas
>
exts will be represented by the
same cipher texts, and must be shared between those wishing to encrypt and
decrypt the message. However, it doesn't have to kept secret.
>
> Paul
>
> --
> Paul M. Foster
>
Sounds like you're making progress :) I'm busy today (of
the families of calls in ways that might lead to unexpected
results. Try the below:
$ciphertext = mcrypt_encrypt(
$cipher = MCRYPT_BLOWFISH,
$key,
$plaintext,
$mode = 'cbc', // I just tossed this in as an example, but you should
match the mode bcrypt is using
$iv = 'use only once, sometimes a count, or a date' // needed for
decryption, too, although it doesn't have to remain a secret.
);
Hope this helps,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
ttp://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I believe Karl nailed it. And, for future reference, WhatTheFont works
quite well for this type of thing most of the time. I quick tested the
image (after quick pulling out the background), and it was one of the top
suggestions.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Sun, Jun 6, 2010 at 10:39 PM, Raymond Irving wrote:
> Hello,
>
> I'm experiencing another issue when attempting to use
> DOMDocument::loadXML()
> to load the following HTML code:
>
> $html = '
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
>
>
>