[PHP] Question on PHP 6 and static calls to instance methods.

2008-05-03 Thread Adam Richardson
, Adam Adam Richardson Envision Internet Consulting, LLC Phone: (517)623-0485 Services and insight for building effective, user-oriented websites.

[PHP] Question on PHP 6 and static calls to instance methods.

2008-05-03 Thread Adam Richardson
framework. However, It sounds like this is going to cause a fatal error in PHP6. Is this in fact true? And, if the behavior is going to change, can somebody explain what the impetus for this change was? Thank you very much for your time, Adam Adam Richardson Envision Internet Consulting, LLC

Re: [PHP] php.ini

2008-05-09 Thread Adam Richardson
And, at some hosts you have to change the settings in htaccess as opposed to php.ini. On Fri, May 9, 2008 at 12:53 PM, André Medeiros [EMAIL PROTECTED] wrote: I'm not sure PHP5 would read php.ini from that directory. You should take in account that your hosting company may _NOT_ allow you to

RE: [PHP] Re: Ignore Tags

2008-05-11 Thread Adam Richardson
I didn't check out your source, but in terms of a regex that only matches items not surrounded by some special tag, what about negative lookaheads and lookbehinds, like: (?!\[specialtag\])REST_OF_YOUR_REGEX(?!\[specialtag\]) I've not used them in PHP, but just a quick thought that might help.

Re: [PHP] Validating Form input

2008-05-15 Thread Adam Richardson
/what_is_drm; Ham Radio Repeater Database. http://hrrdb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Adam Richardson Envision Internet Consulting, LLC Phone: (517)623-0485 Services and insight for building effective, user-oriented

Re: [PHP] Restricting access to a file

2008-05-28 Thread Adam Richardson
as to the best way to handle this ? TIA, JC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Adam Richardson Envision Internet Consulting, LLC Phone: (517)623-0485 Services and insight for building effective, user-oriented websites. -- PHP General

Re: [PHP] use of static methods after namespaces arrive

2008-05-28 Thread Adam Richardson
If the functionality doesn't conceptually promote the inclusion of the variables it works on (i.e., no class variables), doesn't conceptually fit a scheme where instances can exist, and likely won't benefit from refactoring into component methods, then I could see using a namespaced function. Most

Re: [PHP] Method chaining off constructors

2008-06-06 Thread Adam Richardson
The 'new' keyword has to apply to the object created in the constructor (and not the return value of any of the follow-up calls.) To establish this precedence, chaining wasn't allowed on constructors. On Fri, Jun 6, 2008 at 11:04 AM, Eric Butera [EMAIL PROTECTED] wrote: On Fri, Jun 6, 2008

Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-04 Thread Adam Richardson
Larry, I agree that having to escape values in a stored procedure does run counter to expectations. It's likely other developers have the potential for short-circuiting their LIKE conditions without realizing it. I've dealt with this issue, too, and haven't been especially pleased with any of

Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-04 Thread Adam Richardson
On Mon, 4 Aug 2008 15:49:52 -0400, Adam Richardson [EMAIL PROTECTED] wrote: Larry, I agree that having to escape values in a stored procedure does run counter to expectations. It's likely other developers have the potential for short-circuiting their LIKE conditions without realizing

Re: [PHP] Graph type

2008-08-08 Thread Adam Richardson
When I first saw it, I thought of a stem and leaf graph: http://cnx.org/content/m10157/latest/#table3 http://www.nervenet.org/papers_images/cb2.jpg However, your stem remains constant (10), so I'm not really sure what you're graphing. Adam On Fri, Aug 8, 2008 at 1:11 PM, tedd [EMAIL PROTECTED]

Re: [PHP] Formatting Decimals

2010-01-11 Thread Adam Richardson
On Mon, Jan 11, 2010 at 7:45 PM, Mattias Thorslund matt...@thorslund.uswrote: tedd wrote: At 2:55 PM -0500 1/11/10, Rick Dwyer wrote: I have been asked to further modify the value to the nearest half cent. So if the 3rd decimal spot ends in 1 or 2, it gets rounded down to 0 If it ends in

Re: [PHP] strtotime

2010-01-14 Thread Adam Richardson
When you set the date to -00-00, you start the following sequence: 1. strtotime returns false, because -00-00 isn't a date it can parse into a timestamp. 2. date returns 1969, because it's not passed a valid timestamp and it works from December 31, 1969 for any invalid date.

Re: [PHP] strtotime

2010-01-14 Thread Adam Richardson
for date fields generally, but when converted into a timestamp, the string equates to a false value. In PHP, timestamps are numerical values indicating the seconds since Midnight of the 1st January 1969. As PHP uses loose data typing, false /snip Adam Richardson wrote on 14/01/2010 19:25: snip

[PHP] PHP 5.3 shared hosting

2010-01-15 Thread Adam Richardson
Hi, I've developed a framework that requires PHP 5.3 (it takes a more functional approach.) I'm hosting my own apps on a dedicated server running cpanel (thanks to their recent upgrade.) However, for client work I prefer not to personally host the websites. I've been contacting hosts about

Re: [PHP] PHP 5.3 shared hosting

2010-01-20 Thread Adam Richardson
On Fri, Jan 15, 2010 at 6:25 PM, Michael A. Peters mpet...@mac.com wrote: Adam Richardson wrote: Hi, I've developed a framework that requires PHP 5.3 (it takes a more functional approach.) I'm hosting my own apps on a dedicated server running cpanel (thanks to their recent upgrade

Re: [PHP] Re: http vs https

2010-01-23 Thread Adam Richardson
Just as a warning, I have worked on linux servers where this did not work, perhaps because of what silverquick points out: http://www.php.net/manual/en/reserved.variables.server.php I think the HTTPS element will only be present under Apache 2.x. It's not in the list of special variables here:

Re: [PHP] help with preg_replace pattern

2010-01-26 Thread Adam Richardson
On Tue, Jan 26, 2010 at 10:37 PM, Rob Gould gould...@mac.com wrote: It appears that IE renders it's display: none in all caps while Firefox and other browsers pass it back in lowercase. This throws off my php line of code the is supposed to nuke blank bullets from a string of text: $bl = LI

Re: [PHP] Appalling Dreamweaver performance

2010-01-31 Thread Adam Richardson
Dreamweaver is notorious for memory leaks (some releases have much more severe issues than others.) Sometimes just closing the app and then reopening makes a big difference, especially when it comes to tasks that take a large amount of memory. That said, I'm certainly not sure this was the

Re: [PHP] Facebook PHP compiler

2010-02-02 Thread Adam Richardson
Looks very promising !!! On Tue, Feb 2, 2010 at 1:12 PM, Robert Cummings rob...@interjinn.comwrote: Cesar D. Rodas wrote: Hello, Have you guys checked this PHP to C++ converter from the Facebook People? http://developers.facebook.com/news.php?blog=1story=358 Very interesting... I heard

Re: [PHP] session variables and SVG documents

2010-02-03 Thread Adam Richardson
On Wed, Feb 3, 2010 at 8:20 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wed, 2010-02-03 at 10:49 +0100, Aurelie REYMUND wrote: Hello, unfortunately, it does not suite my needs. The image must be clickable. The application I'm developping reads data from a database and

Re: [PHP] PHP will NOT display this on my dev machine: Warning: session_start()...

2010-02-11 Thread Adam Richardson
Do you have output buffering turned on? On Thu, Feb 11, 2010 at 1:19 PM, John Black s...@network-technologies.orgwrote: I am running into a strange problem and I hope someone might have an idea why this is happening. My installation of PHP will *NOT* display the warning message below on my

Re: [PHP] array conversion

2010-02-18 Thread Adam Richardson
Or, function new_arr(array $arr) { $count = count($arr); if ($count % 2 != 0) throw new Exception('The new_arr() function requires an even number of elements.'); for ($i = 0; $i $count; $i += 2) { $new_arr[$arr[$i]] = $arr[$i + 1]; } return $new_arr; } $test =

Re: [PHP] Re: Pre/Post inc (Was array conversion)

2010-02-20 Thread Adam Richardson
On Sat, Feb 20, 2010 at 11:10 AM, Nathan Rixham nrix...@gmail.com wrote: Richard Quadling wrote: On 20 February 2010 11:18, clanc...@cybec.com.au wrote: Or: $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', 'brown'); $b = '';//

Re: [PHP] HipHop and other PHP compiler performance evaluation

2010-02-24 Thread Adam Richardson
Really nice article, Manuel. Thanks for writing and sharing the link. Adam On Wed, Feb 24, 2010 at 11:14 AM, Manuel Lemos mle...@acm.org wrote: FYI http://digg.com/programming/PHP_compiler_performance -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/

Re: [PHP] When to use namespaces

2010-03-01 Thread Adam Richardson
I use namespaces within my web framework because the framework takes a more functional approach (no objects are created within the framework other than from existing classes such as PDO or Exception, immutability is promoted, etc.), and in this context, the namespaces felt quite natural for

Re: [PHP] When to use namespaces

2010-03-02 Thread Adam Richardson
Thanks, Richard, I wasn't aware of that function. Another nice option. On Tue, Mar 2, 2010 at 6:18 AM, Richard Quadling rquadl...@googlemail.comwrote: On 1 March 2010 19:34, Adam Richardson simples...@gmail.com wrote: I use namespaces within my web framework because the framework takes

Re: [PHP] PHP: inexplicable behaviour of pre- and post-increment operators

2010-03-02 Thread Adam Richardson
Thanks for taking time to provide the examples, Clancy, I'll know what potential pitfalls to wary of now :) On Fri, Feb 26, 2010 at 11:01 PM, clanc...@cybec.com.au wrote: A week ago Dasn asked a question about converting arrays, and I quoted one possible way of achieving his task, using the

Re: [PHP] EHLO error 554: what can it be?

2010-03-09 Thread Adam Richardson
On Mon, Mar 8, 2010 at 11:46 PM, Kevin Kinsey k...@daleco.biz wrote: Andre Polykanine wrote: Hello everyone, I'm writing a class to send mail via an SMTP server with authorization. Everything seems to work but I get an EHLO error: 554 SMTP synchronization error Where should I look to

Re: [PHP] php string syntax question with html

2010-03-10 Thread Adam Richardson
Try this: 'link href='.$_SERVER['DOCUMENT_ROOT'] .'/wp-content/themes/themestyle/white.css rel=stylesheet type=text/css /'; On Wed, Mar 10, 2010 at 7:15 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got what is probably a very simple question, probably something having to do with

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Adam Richardson
On Thu, Mar 11, 2010 at 4:57 PM, George Langley george.lang...@shaw.cawrote: Hi all. Is there an issue with $_GET not handling a Base64-encoded value correctly? (PHP is 5.1.6) Am receiving a Base64-encoded value: theurl.com/index.php?message=x and retrieving it with

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Adam Richardson
On Tue, Mar 16, 2010 at 7:06 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Tue, 2010-03-16 at 23:42 +0100, Rene Veerman wrote: maybe adding a ?php= as equivalent to ?= and ?php echo , then deprecating ?= would be useful. On Tue, Mar 16, 2010 at 7:18 PM, tedd

Re: [PHP] web sniffer

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 6:03 PM, madunix madu...@gmail.com wrote: I've been trying to read the contents from a particular URL into a string in PHP, and can't get it to work. any help. Thanks -- If there is a way, I will find one...*** If there is none, I will make one...***

Re: [PHP] web sniffer

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 6:08 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Fri, 2010-03-19 at 00:11 +0200, madunix wrote: trying http://us3.php.net/manual/en/function.fsockopen.php do you a piece of code that read parts pages. On Fri, Mar 19, 2010 at 12:00 AM, Ashley

Re: [PHP] Example of good PHP namespace usage?

2010-03-19 Thread Adam Richardson
On Fri, Mar 19, 2010 at 3:05 AM, D. Dante Lorenso da...@lorenso.com wrote: All, I want to start using PHP namespaces for my projects. Currently, I name my classes similar to how Zend Framework names theirs and I end up with classes like: LS_Util_String I'm thinking that if I converted

Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Adam Richardson
On Fri, Mar 19, 2010 at 10:23 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Fri, 2010-03-19 at 10:17 -0400, Robert P. J. Day wrote: (just a warning -- as a relative newbie to PHP, i'll probably have the occasional dumb question. just humour me.) i'm looking at some existing

Re: [PHP] Session Variable Problem

2010-03-20 Thread Adam Richardson
On Sat, Mar 20, 2010 at 2:22 PM, Gary gwp...@ptd.net wrote: I have this perplexing issue of session varibles getting dropped. It is a 4 page form, the last page being a review page incase the submitter wants to change any of the information.If you go through the form, all of the information

Re: [PHP] Session Variable Problem

2010-03-20 Thread Adam Richardson
thank you for your reply and your solution. Gary Adam Richardson simples...@gmail.com wrote in message news:e4d8ea9d1003201529p1ab72baei147549423f5e3...@mail.gmail.com... On Sat, Mar 20, 2010 at 2:22 PM, Gary gwp...@ptd.net wrote: I have this perplexing issue of session varibles getting

Re: [PHP] Re: Pulling my hair out over an include_once();

2010-03-20 Thread Adam Richardson
On Sun, Mar 21, 2010 at 1:12 AM, Watson Blair bestudios...@gmail.comwrote: ah, i forgot to properly phrase my question... what am i doing wrong, and how do i make it work? slash, could you guys/girls point me towards a tutorial that will give me a hand? Thanks again, Watson On Sun, Mar 21,

Re: [PHP] Re: Pulling my hair out over an include_once();

2010-03-21 Thread Adam Richardson
On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev sv_for...@fmethod.comwrote: Hi, As the error says, this is a problem with the server configuration. In your php.ini file, allow_url_include should be enabled. As an alternative, if you have allow_url_include off, but allow_url_fopen on, you

Re: [PHP] Re: Pulling my hair out over an include_once();

2010-03-21 Thread Adam Richardson
at 2:13 AM, Adam Richardson simples...@gmail.comwrote: On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev sv_for...@fmethod.comwrote: Hi, As the error says, this is a problem with the server configuration. In your php.ini file, allow_url_include should be enabled. As an alternative, if you have

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Adam Richardson
Rene, I don't want you to jump ship. You've been helpful to many other posters, and I appreciate various points of view on all subjects, yours included. Please bottom post in the future now that you know of their preference, and please step back for a few and take some time to relax. No

Re: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Adam Richardson
On Wed, Mar 24, 2010 at 6:34 AM, Rene Veerman rene7...@gmail.com wrote: On Wed, Mar 24, 2010 at 12:28 PM, Tommy Pham tommy...@gmail.com wrote: Funny you should mention all that. Let's say that you're longer with that company, either by direct employment or contract consultant. You've

Re: [PHP] Noloh PHP Framework

2010-03-27 Thread Adam Richardson
On Sat, Mar 27, 2010 at 1:30 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2010-03-27 at 13:33 -0400, Brandon Rampersad wrote: Sorry, im on gmail and can't find that button. i only see the reply button. maybe try manually adding the php-general email address in? I know a

Re: [PHP] Re: Allowing multiple, simultaneous, non-blocking queries.

2010-03-28 Thread Adam Richardson
Threading is only realistically needed when you have to get data from multiple sources; you may as well get it all in parallel rather than sequentially to limit the amount of time your application / script is sitting stale and not doing any processing. In the CLI you can leverage forking

Re: [PHP] Re: Allowing multiple, simultaneous, non-blocking queries.

2010-03-28 Thread Adam Richardson
Hi Nathan, By factoring each data providing source (which could even be a single sql query) in to scripts of their own, with their own URIs - it allows you to implement static caching of results via the web server on a case by case basis. My web framework automatically builds in REST-ful

Re: [PHP] File encryption under PHP

2010-04-01 Thread Adam Richardson
Then one-way encryption would be something no one would do. I must be using the wrong term. What I mean is that it needs a password, which is used to encrypt and decrypt the file. *Symmetric* encryption uses the same key to encrypt and decrypt the text (what you're talking about, and example

Re: [PHP] GetElementByClass?

2010-04-03 Thread Adam Richardson
p class=question Who is Roger Rabbit? /p My question is -- how can I extract the string Who is Roger Rabbit? from each page using php? You see, I want to store the questions in a database without having to re-type, or cut/paste, each one. I have not found/created a working example of

Re: [PHP] OO Design Formally

2010-04-04 Thread Adam Richardson
On Sun, Apr 4, 2010 at 8:37 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I've been doing the programming thing for about 10 years now: amateur side gigs turned into ten years pretty fast. I think i have a fairly strong sense of object oriented design, data modeling, etc...

Re: [PHP] Constructor usage

2010-04-04 Thread Adam Richardson
On Sun, Apr 4, 2010 at 6:36 PM, Larry Garfield la...@garfieldtech.comwrote: Hi folks. Somewhat philosophical question here. I have heard, although not confirmed, that the trend in the Java world in the past several years has been away from constructors. That is, rather than this: class

Re: [PHP] Inserting into multiple tables

2010-04-10 Thread Adam Richardson
of using multiple tables, yet are thin on the insert issue. Searching the web I have read several answers saying you simply cant insert into multiple tables at once. So if multiple tables is such an important issue, why is there no insert solution. What am I missing? Gary Adam

Re: [PHP] Basic switch statement

2010-04-15 Thread Adam Richardson
On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim li...@pruimphotography.comwrote: On Apr 15, 2010, at 8:55 AM, tedd wrote: At 4:13 PM -0400 4/14/10, Al wrote: Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code beautifier. You can set it

Re: [PHP] PHP and schedules tasks/events

2010-04-16 Thread Adam Richardson
On Fri, Apr 16, 2010 at 5:15 PM, Don Wieland d...@dwdataconcepts.comwrote: On Apr 16, 2010, at 1:26 PM, Bastien Koert wrote: Run a cronjob at midnight and send the email. Track who it got sent to, so you don't duplicate it. Easy peasy! This is fine if the email is to be sent at midnight.

Re: [PHP] Directory permissions question

2010-04-19 Thread Adam Richardson
On Mon, Apr 19, 2010 at 10:59 AM, Al n...@ridersite.org wrote: I'm working on a hosted website that was hacked and found something I don't fully understand. Thought someone here may know the answer. The site has 4 php malicious files in directories owned by system [php created dirs on the

Re: [PHP] Class constants

2010-04-19 Thread Adam Richardson
On Mon, Apr 19, 2010 at 10:25 AM, Peter Lind peter.e.l...@gmail.com wrote: On 19 April 2010 16:18, Gary . php-gene...@garydjones.name wrote: On Mon, Apr 19, 2010 at 2:37 PM, Peter Lind peter.e.l...@gmail.com wrote: On 19 April 2010 14:24, Gary wrote: On Mon, Apr 19, 2010 at 10:36 AM,

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: I've not had to do this before, and now that I am, I've hit a bit of a wall: Basically, I've an array that might look like this (the number of elements may vary, but the letter is always unique and remains a

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've not had to do this before, and now that I am, I've hit a bit

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
Adam Richardson */ class PHPClass { /** * Name for object. * @var String */ public $name; /** * Size of something really important. * @var int */ public $size; /** * Local storage of magic vars * @var array */ private $_vars

Re: [PHP] Remote Key Question

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:03 PM, tedd t...@sperling.com wrote: Hi gang: A few times I've found myself confronted with a problem that might be better solved than the way I currently solve it. I would like your opinions/solutions as to how you might solve this. Here's the given (as an

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind peter.e.l...@gmail.com wrote: On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I think for now I'll just resort to leaving it as a public variable. I'll leave the specific set function for it in and just hope that is used

Re: [PHP] Remote Key Question

2010-04-23 Thread Adam Richardson
save you much and infact this it's very clear what your doing. David -Original Message- From: Adam Richardson [mailto:simples...@gmail.com] Sent: Friday, April 23, 2010 11:09 AM To: tedd Cc: PHP eMail List Subject: Re: [PHP] Remote Key Question On Fri, Apr 23, 2010 at 12:03 PM

Re: [PHP] Re: replying to list (I give up)

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 1:34 PM, Daniel Brown paras...@gmail.com wrote: On Fri, Apr 23, 2010 at 13:20, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I have heard good things about Windows 7, but I've not used it myself yet (and don't really plan to) Wise. [Sent from a Win7

Re: [PHP] Problem with pg_prepare function

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 9:42 PM, Giancarlo Boaron gboa...@yahoo.com.brwrote: Hi all. I'm receiving the following message when I try to use pg_prepare() function: Call to undefined function pg_prepare(). My application works very well with others pg_* commands... I already checked my

Re: [PHP] Contact form....

2010-04-26 Thread Adam Richardson
On Mon, Apr 26, 2010 at 3:16 PM, Watson Blair bestudios...@gmail.comwrote: Hey guys, so ive coded a sucessfull contact form before, but for some reason this bit of code is giving me the run-arroundl so my HTML end is: form action=send.php method=post enctype=multipart/form-data

Re: [PHP] php quiz script/tutorial

2010-04-27 Thread Adam Richardson
On Tue, Apr 27, 2010 at 12:55 PM, tedd tedd.sperl...@gmail.com wrote: At 4:12 PM +0100 4/26/10, Paul Jinks wrote: I'm considering my options for making quizzes mostly multiple choice type of thing, but also 'filling in the gaps'. This is in support of educational materials I'm working on. So

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Adam Richardson
If the OP does clean his $_POST before putting the results in his database, his database will look like 'poo' if the wrong person comes along. Gary had mentioned in his initial post he was testing on a local machine and would add the checks after resolving this issue. Also, the OP's code

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Adam Richardson
$sqlStatements = INSERT INTO guns (manufacturer, type, model, caliber, condition, price, description, image_file_name, available) VALUES ('$manufacturer', '$type', '$model','$caliber','$condition','$price','$description','$image_file_name','$available'); INSERT INTO images(id,

Re: [PHP] Any One See where this is going wrong?

2010-05-01 Thread Adam Richardson
On Sat, May 1, 2010 at 6:54 PM, Gary gwp...@ptd.net wrote: Adam Richardson simples...@gmail.com wrote in message news:aanlktinqixxb9oipu4op2xztrze_vwpbymaywziwb...@mail.gmail.com... $sqlStatements = INSERT INTO guns (manufacturer, type, model, caliber, condition, price, description

Re: [PHP] Need login suggestions

2010-05-02 Thread Adam Richardson
On Mon, May 3, 2010 at 12:42 AM, Angus Mann angusm...@pobox.com wrote: We're building a large site for a school district, to be used by both students and parents. When a student logs in, they gain some access to the site, and when a parent logs in, they gain access to other sections on the

Re: [PHP] In need of CVS/SVN checkout script for Production servers [solved]

2010-05-05 Thread Adam Richardson
On Wed, May 5, 2010 at 9:27 PM, Nathan Rixham nrix...@gmail.com wrote: Daevid Vincent wrote: -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Wednesday, May 05, 2010 8:19 AM To: Daevid Vincent; php-general@lists.php.net Subject: RE: [PHP] In need of CVS/SVN

Re: [PHP] dynamically generating and retrieving page data using flat files

2010-05-09 Thread Adam Richardson
On Sat, May 8, 2010 at 9:41 PM, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a project that i have to reference information stored on one page from another. This page I won't be visiting first, and at the moment i'd prefer to use flat php files, but should that prove to hard

Re: [PHP] opening a link in a new window

2010-05-14 Thread Adam Richardson
On Fri, May 14, 2010 at 8:59 AM, Andrew Ballard aball...@gmail.com wrote: On Thu, May 13, 2010 at 5:18 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-05-13 at 17:13 -0400, David Mehler wrote: Hello, I want to open an external link in a new window, i know i can do this

Re: [PHP] opening a link in a new window

2010-05-14 Thread Adam Richardson
On Fri, May 14, 2010 at 4:49 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Fri, 2010-05-14 at 13:18 -0400, Adam Richardson wrote: On Fri, May 14, 2010 at 8:59 AM, Andrew Ballard aball...@gmail.com wrote: On Thu, May 13, 2010 at 5:18 PM, Ashley Sheridan a...@ashleysheridan.co.uk

Re: [PHP] Version de MySQL

2010-05-19 Thread Adam Richardson
2010/5/19 MSc. Carlos Pollán Estrada cpol...@ahm.granma.inf.cu Hola colegas. Neceseto saber con qué función de PHP (si la hay) puedo optener la versión del MySQL que estoy utilizando. Gracias de antemano. Salu2 MSc. Carlos Pollán Estrada.

Re: [PHP] __call for existing methods?

2010-05-21 Thread Adam Richardson
On Fri, May 21, 2010 at 2:46 PM, Maximiliano Churichi mchuri...@gmail.comwrote: Is there a way to catch EVERY method of a inheritance class? something like this... class Father { public function __call ($name, $args) { $this-doSomethingBefore();

Re: [PHP] Using if(isset()) with $_GET and switch and default

2010-05-21 Thread Adam Richardson
On Fri, May 21, 2010 at 3:24 PM, MuFei mufe...@gmail.com wrote: Hi, I'm still new to PHP and everyday I learn something new. Today I was trying to make some script using the switch statement but I have some issue that I don't know how to get around it. It's a simple test script that contain

Re: [PHP] securing a custom app

2010-05-23 Thread Adam Richardson
On Sun, May 23, 2010 at 12:40 AM, David Mehler dave.meh...@gmail.comwrote: Hello, I've got a custom app that interacts with a database. I want to use something stronger than .htaccess to protect it and ssl is not available as this is a shared host. There will be several user's accessing this

Re: [PHP] Google checkout nightmare

2010-05-26 Thread Adam Richardson
On Wed, May 26, 2010 at 10:54 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Hi All, I'm trying to get a custom shopping cart integrated with Google Checkout. I've done it before with their older API, but it's changed a lot since I last used it. The official documentation is a mix and

Re: [PHP] One more time about regexes

2010-05-26 Thread Adam Richardson
On Wed, May 26, 2010 at 11:10 PM, Nilesh Govindarajan li...@itech7.comwrote: -- Forwarded message -- From: Nilesh Govindarajan li...@itech7.com Date: Thu, May 27, 2010 at 8:40 AM Subject: Re: [PHP] One more time about regexes To: Andre Polykanine an...@oire.org On Thu, May

Re: [PHP] Convert UTF-8 to PHP defines

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 9:45 AM, Guus Ellenkamp ellenkamp_g...@hotmail.comwrote: Thanks, but are you sure of that? I did some research a while ago and found that officially PHP files should be ascii and not have any specific character encoding. I believe it will work anyhow (did not try this

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 12:44 PM, la...@garfieldtech.com la...@garfieldtech.com wrote: On 5/27/10 11:30 AM, Peter Lind wrote: Sure, but @param, @access and possibly @return are but a part. I stand by my words: document the parent as a stub and provide actual documentation for the real

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 1:14 PM, la...@garfieldtech.com la...@garfieldtech.com wrote: On 5/27/10 12:10 PM, Adam Richardson wrote: Larry, I've thought about this very issue before (java developers sometimes lament this issue, too), and I error on the side of duplication if I'm using

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
Larry, I've thought about this very issue before (java developers sometimes lament this issue, too), and I error on the side of duplication if I'm using inheritance. However, I'd say I rarely use inheritance for anything in my development, and I'm much more likely to use

Re: Re[2]: [PHP] One more time about regexes

2010-05-27 Thread Adam Richardson
- From: Adam Richardson simples...@gmail.com To: php-general@lists.php.net php-general@lists.php.net Date: Thursday, May 27, 2010, 7:56:28 AM Subject: [PHP] One more time about regexes On Wed, May 26, 2010 at 11:10 PM, Nilesh Govindarajan li...@itech7.com wrote: -- Forwarded

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 3:59 PM, Waynn Lue waynn...@gmail.com wrote: I've seen @inheritDoc used in Java before, though I'm not sure about the php support. Waynn On 5/27/10, Adam Richardson simples...@gmail.com wrote: Larry, I've thought about this very issue before (java

Re: [PHP] displaying database output in a table

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 5:47 PM, David Mehler dave.meh...@gmail.com wrote: Hello Everyone, Thanks for all your suggestions. Unfortunately, I've replaced require_once with include_once and require with include in all the documents, I'm still not having any luck. Thanks. Dave. On 5/27/10,

Re: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-28 Thread Adam Richardson
On Fri, May 28, 2010 at 8:01 PM, Alice Wei aj...@alumni.iu.edu wrote: From: aj...@alumni.iu.edu To: tedd.sperl...@gmail.com CC: php-general@lists.php.net Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms Date: Fri, 28 May 2010 19:31:10 -0400 Date:

Re: [PHP] get classname without namespace

2010-05-30 Thread Adam Richardson
On Sat, May 29, 2010 at 4:20 PM, Tanel Tammik keevit...@gmail.com wrote: Hi, is there a way to get the called classname without the namespace? ?php //PHP 5.3.x namespace some\where; abstract class ParentClass { public static function name() { return strtolower(get_called_class());

Re: [PHP] Credit Card encryption

2010-05-30 Thread Adam Richardson
On Sun, May 30, 2010 at 2:16 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sun, 2010-05-30 at 01:49 -0400, Paul M Foster wrote: This question is for people who take and store credit card information for customers. Credit card companies, in an attempt to lessen fraud, are

Re: [PHP] regular expression

2010-06-01 Thread Adam Richardson
On Tue, Jun 1, 2010 at 11:19 AM, Tanel Tammik keevit...@gmail.com wrote: How to check with regular expression (preg) if string has: 1. only letters 2. only letters and spaces Br Tanel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] RE: JSON RPC with SSL and .pem certificates? [SOLVED]

2010-06-01 Thread Adam Richardson
On Tue, Jun 1, 2010 at 8:41 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Thursday, May 27, 2010 4:48 PM To: 'php-general@lists.php.net' Subject: JSON RPC with SSL and .pem certificates? Anyone have a

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 xwis...@gmail.com wrote: Hello, I'm experiencing another issue when attempting to use DOMDocument::loadXML() to load the following HTML code: ?php $html = ' !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Re: [PHP] Finding a font.

2010-06-07 Thread Adam Richardson
On Mon, Jun 7, 2010 at 10:22 PM, Karl DeSaulniers k...@designdrumm.comwrote: Hi Dave, It is called Fine Hand I believe. Found a copy here. http://www.fonts.com/FindFonts/Detail.htm?pid=203813/cgi-bin/MsmGo.exe?grab_id=0page_id=8346query=HANDWRITINGSCOPE=Fonts HTH, Karl On Jun 7,

Re: [PHP] Blowfish Encryption

2010-06-07 Thread Adam Richardson
On Mon, Jun 7, 2010 at 11:20 PM, Paul M Foster pa...@quillandmouse.comwrote: I've got a file of passwords I'd like to encrypt/decrypt using blowfish. I'd like to be able to do so with PHP and via the command line. I have a Linux utility call bcrypt which encrypts/decrypts files using

Re: [PHP] Blowfish Encryption

2010-06-08 Thread Adam Richardson
Hi Paul, If one has multiple samples of encrypted emails, it's likely that the several of the samples will end using the same cipher text, as many people end their emails with a consistent signature. This repeated cipher text improves the ability of those trying to attack (decrypt

Re: [PHP] Question - foreach.

2010-06-09 Thread Adam Richardson
On Wed, Jun 9, 2010 at 9:49 PM, Shreyas shreya...@gmail.com wrote: PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don’t need to reset an array before

Re: [PHP] String Parse Help for novice

2010-06-13 Thread Adam Richardson
On Sun, Jun 13, 2010 at 9:29 PM, Robert Cummings rob...@interjinn.comwrote: Rick Dwyer wrote: Hello List. I need to parse the PATH portion of URL. I have assigned the path portion to a variable using the following: $thepath = parse_url($url); Now I need to break each portion of the

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

2010-06-14 Thread Adam Richardson
On Mon, Jun 14, 2010 at 5:51 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2010-06-14 at 17:20 -0400, Paul M Foster wrote: On Mon, Jun 14, 2010 at 01:06:29PM +0100, Ashley Sheridan wrote: On Mon, 2010-06-14 at 08:02 -0400, David Mehler wrote: Hello, I've got a

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] stripping first comma off and everything after

2010-06-19 Thread Adam Richardson
On Fri, Jun 18, 2010 at 3:56 PM, Adam Williams adam_willi...@bellsouth.netwrote: 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

  1   2   3   >