Re: [PHP] Can't read $_POST array

2010-08-18 Thread Adam Richardson
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

Re: [PHP] Can't read $_POST array

2010-08-18 Thread Adam Richardson
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

Re: [PHP] method overloading in a class

2010-08-18 Thread Adam Richardson
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

Re: [PHP] Encryption/Decryption Question

2010-08-12 Thread Adam Richardson
, 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

Re: [PHP] Quotes vs. Single Quote

2010-08-05 Thread Adam Richardson
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

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Adam Richardson
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

Re: [PHP] the state of the PHP community

2010-07-29 Thread Adam Richardson
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

Re: [PHP] opening link in new window

2010-07-24 Thread Adam Richardson
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 >

Re: [PHP] opening link in new window

2010-07-24 Thread Adam Richardson
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

[PHP] help with sql statement

2010-07-12 Thread Adam
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

Re: [PHP] adduser & php

2010-07-10 Thread Adam Richardson
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

Re: [PHP] Login using just cookies, bad idea?

2010-07-08 Thread Adam Richardson
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

Re: [PHP] Setting up a XDebug debugging environment for PHP / WAMP / Eclipse PDT

2010-07-08 Thread Adam Richardson
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

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Adam Richardson
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

Re: [PHP] php processing name vs. id field

2010-07-02 Thread Adam Richardson
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

Re: [PHP] Delegating variable-length argument lists

2010-07-02 Thread Adam Richardson
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

Re: [PHP] php processing name vs. id field

2010-06-30 Thread Adam Richardson
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

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Adam Richardson
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

Re: [PHP] $_SERVER['REMOTE_ADDR'] and sql injection

2010-06-23 Thread Adam Richardson
.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

Re: [PHP] Encrypt and Decript email using PHP

2010-06-20 Thread Adam Richardson
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

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Adam Richardson
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

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Adam Richardson
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 >

[PHP] stripping first comma off and everything after

2010-06-18 Thread Adam
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

[PHP] stripping first comma off and everything after

2010-06-18 Thread Adam Williams
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

Re: [PHP] Unit testing in PHP

2010-06-17 Thread Adam Richardson
> > 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

Re: [PHP] protecting email addresses on a web site

2010-06-14 Thread Adam Richardson
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 > > &

Re: [PHP] String Parse Help for novice

2010-06-13 Thread Adam Richardson
> > 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

Re: [PHP] Question - foreach.

2010-06-09 Thread Adam Richardson
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 >

Re: [PHP] Blowfish Encryption

2010-06-08 Thread Adam Richardson
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

Re: [PHP] Blowfish Encryption

2010-06-07 Thread Adam Richardson
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

Re: [PHP] Finding a font.

2010-06-07 Thread Adam Richardson
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

Re: [PHP] DOMDocument::loadXML() failed when parsing comments inside a script tag

2010-06-06 Thread Adam Richardson
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";> > > > >