Re: [PHP] Formatting Decimals

2010-01-11 Thread Adam Richardson
On Mon, Jan 11, 2010 at 7:45 PM, Mattias Thorslund wrote: > 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 3,

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 dat

Re: [PHP] strtotime

2010-01-14 Thread Adam Richardson
s a default "-00-00" value 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 >

[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 thei

Re: [PHP] Cookies & sessions

2010-01-19 Thread Adam Richardson
On Tue, Jan 19, 2010 at 12:42 PM, Paul M Foster wrote: > On Tue, Jan 19, 2010 at 10:06:26PM +1100, clanc...@cybec.com.au wrote: > > > I am trying for the first time to use cookies. The manual contains the > > statement "Cookies > > are part of the HTTP header, so setcookie() must be called before

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 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 run

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 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 = > > > > > >

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 issue,

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 wrote: > 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=1&story=358 >> > > Very interesting... I heard abo

Re: [PHP] session variables and SVG documents

2010-02-03 Thread Adam Richardson
On Wed, Feb 3, 2010 at 8:20 AM, Ashley Sheridan wrote: > 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 display the > > info

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 wrote: > 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 > development machine where

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 = ne

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 wrote: > Richard Quadling wrote: > > On 20 February 2010 11:18, wrote: > >> Or: > >> > >> $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', > 'brown'); > >> $b = '';// Just in case it has some

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 wrote: > FYI > > http://digg.com/programming/PHP_compiler_performance > > -- > > Regards, > Manuel Lemos > > Find and post PHP jobs > http://www.phpclasses.org/jobs/ > > PH

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 breakin

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 wrote: > On 1 March 2010 19:34, Adam Richardson wrote: > > I use namespaces within my web framework because the framework takes a > more > > function

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, wrote: > A week ago Dasn asked a question about converting arrays, and I quoted one > possible way of > achieving his task, using the operation: > > $i =

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 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 avoid

Re: [PHP] php string syntax question with html

2010-03-10 Thread Adam Richardson
Try this: ''; On Wed, Mar 10, 2010 at 7:15 PM, David Mehler wrote: > Hello, > I've got what is probably a very simple question, probably something > having to do with quotes single vs. double, but the answer is > frustrating elusive, I keep getting a syntax error. > I'm trying to customize a wo

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Adam Richardson
On Thu, Mar 11, 2010 at 4:57 PM, George Langley wrote: >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 $_GET: > > echo $_GE

Re: [PHP] Re: PHP in HTML code

2010-03-16 Thread Adam Richardson
On Tue, Mar 16, 2010 at 7:06 PM, Ashley Sheridan wrote: > On Tue, 2010-03-16 at 23:42 +0100, Rene Veerman wrote: > > > maybe adding a > then deprecating > > > On Tue, Mar 16, 2010 at 7:18 PM, tedd wrote: > > > At 5:54 PM + 3/15/10, Jochem Maas wrote: > > >> > > >> Op 3/13/10 3:49 PM, Jorge

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 11:28 AM, tedd wrote: > At 9:34 AM + 3/18/10, Pete Ford wrote: > >> >> I do tend to use > camp here. >> > > > Whoa, that's even worse -- make a choice and stick with it -- IMO. > > I'm all for consistency and have often found myself redoing dozens of > scripts because

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 1:37 PM, Ashley Sheridan wrote: > On Thu, 2010-03-18 at 18:37 +0100, Jan G.B. wrote: > > > > > > > 2010/3/18 Ashley Sheridan > > > > > > On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > > > > > 2010/3/18 Ashley Sheridan > > > > > > > I

Re: [PHP] web sniffer

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 6:03 PM, madunix 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..."*** > mad

Re: [PHP] web sniffer

2010-03-18 Thread Adam Richardson
On Thu, Mar 18, 2010 at 6:08 PM, Ashley Sheridan wrote: > 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 Sheridan > > wrote: >

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 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 this to n

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 wrote: > 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 PHP code that ac

Re: [PHP] Session Variable Problem

2010-03-20 Thread Adam Richardson
On Sat, Mar 20, 2010 at 2:22 PM, Gary 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 carries f

Re: [PHP] Session Variable Problem

2010-03-20 Thread Adam Richardson
tay. Is there an easier > method > (perhaps putting the post or session variables into an array? > > Again thank you for your reply and your solution. > > Gary > > > "Adam Richardson" wrote in message > news:e4d8ea9d1003201529p1ab72baei147549423f5e3...@mail.g

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 wrote: > 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, 2010 at 1:00 AM

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

2010-03-20 Thread Adam Richardson
On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev wrote: > > 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 can file_get_co

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

2010-03-20 Thread Adam Richardson
RL work? > > > On Sun, Mar 21, 2010 at 2:13 AM, Adam Richardson wrote: > >> On Sun, Mar 21, 2010 at 1:45 AM, Stan Vassilev wrote: >> >>> >>> Hi, >>> >>> As the error says, this is a problem with the server configuration. >>> In your p

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

2010-03-22 Thread Adam Richardson
On Mon, Mar 22, 2010 at 10:23 PM, Daevid Vincent wrote: > > Is this a case of "it's too hard"? > > > > Subscribe to internals. Read the archives. The truth is out there. > > I have Googled a while on this and don't see much of anything about "PHP > threading" of use. Just a bunch of people d

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 ha

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 wrote: > On Wed, Mar 24, 2010 at 12:28 PM, Tommy Pham 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 implemented C because you need

Re: [PHP] Noloh PHP Framework

2010-03-27 Thread Adam Richardson
On Sat, Mar 27, 2010 at 1:30 PM, Ashley Sheridan wrote: > 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 lot of people h

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 forki

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 c

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 ex

Re: [PHP] GetElementByClass?

2010-04-03 Thread Adam Richardson
> > > Who is Roger Rabbit? > > > 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 this usin

Re: [PHP] OO Design Formally

2010-04-04 Thread Adam Richardson
On Sun, Apr 4, 2010 at 8:37 PM, Daniel Kolbo 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... However, > sometim

Re: [PHP] Constructor usage

2010-04-04 Thread Adam Richardson
On Sun, Apr 4, 2010 at 6:36 PM, Larry Garfield wrote: > 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 Foo { > public

Re: [PHP] Inserting into multiple tables

2010-04-10 Thread Adam Richardson
On Sat, Apr 10, 2010 at 5:27 PM, Gary wrote: > I am experimenting with multiple tables, it is only a test that is my local > machine only. This is the current code, which does not work , I have tried > to concatonate the insert statements. I have tried multiple $query > variables, but it is just

Re: [PHP] Inserting into multiple tables

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

Re: [PHP] Basic switch statement

2010-04-15 Thread Adam Richardson
On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim wrote: > > 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 for phpDoc or >>

Re: [PHP] PHP and schedules tasks/events

2010-04-16 Thread Adam Richardson
On Fri, Apr 16, 2010 at 5:15 PM, Don Wieland wrote: > 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. > > I am lookin

Re: [PHP] Directory permissions question

2010-04-19 Thread Adam Richardson
On Mon, Apr 19, 2010 at 10:59 AM, Al 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 site are named

Re: [PHP] Class constants

2010-04-19 Thread Adam Richardson
On Mon, Apr 19, 2010 at 10:25 AM, Peter Lind wrote: > On 19 April 2010 16:18, Gary . wrote: > > On Mon, Apr 19, 2010 at 2:37 PM, Peter Lind > wrote: > >> On 19 April 2010 14:24, Gary wrote: > >>> On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote: > > > So no, you shouldn't be able to do t

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan wrote: > 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 single > character): > >

Re: [PHP] Using usort in a class

2010-04-22 Thread Adam Richardson
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan wrote: > On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote: > > On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan > wrote: > > I've not had to do this before, and now that I am, I've hit a bit of a > wall: &g

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 6:19 AM, Richard Quadling wrote: > On 23 April 2010 10:55, Ashley Sheridan wrote: > > I know the subject line might sound a bit like an oxymoron, but bear > > with me! > > > > What I'd like to have is a property of an object that behaves like a > > public variable when it

Re: [PHP] Remote Key Question

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:03 PM, tedd 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 article/author e

Re: [PHP] public readonly variables

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind wrote: > On 23 April 2010 18:10, Ashley Sheridan 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 instead! As it's only me who'll be using

Re: [PHP] Remote Key Question

2010-04-23 Thread Adam Richardson
r whatever for the view portion of the app. > > I just say this because Junction tables really don't save you much and > infact this it's very clear what your doing. > > David > > -Original Message- > From: Adam Richardson [mailto:simples...@gmail.com] &g

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 wrote: > On Fri, Apr 23, 2010 at 13:20, Ashley Sheridan > 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 PC.] > > -- > > daniel.br...@par

Re: [PHP] Problem with pg_prepare function

2010-04-23 Thread Adam Richardson
On Fri, Apr 23, 2010 at 9:42 PM, Giancarlo Boaron wrote: > 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 configurat

Re: [PHP] Contact form....

2010-04-26 Thread Adam Richardson
On Mon, Apr 26, 2010 at 3:16 PM, Watson Blair wrote: > 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: > > > > >Send E-mail to: > >G

Re: [PHP] php quiz script/tutorial

2010-04-27 Thread Adam Richardson
On Tue, Apr 27, 2010 at 12:55 PM, tedd 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 far I've looked

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 co

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, image

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 wrote: > > "Adam Richardson" wrote in message > news:aanlktinqixxb9oipu4op2xztrze_vwpbymaywziwb...@mail.gmail.com... > > > > >> $sqlStatements = "INSERT INTO guns (manufacturer, type, model, caliber, > >>

Re: [PHP] Need login suggestions

2010-05-02 Thread Adam Richardson
On Mon, May 3, 2010 at 12:42 AM, Angus Mann 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 >> site. That

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 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 checko

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 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 > i'll transition to a

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 wrote: > On Thu, May 13, 2010 at 5:18 PM, Ashley Sheridan > 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 > >> with xhtml, but only with

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 wrote: > On Fri, 2010-05-14 at 13:18 -0400, Adam Richardson wrote: > > On Fri, May 14, 2010 at 8:59 AM, Andrew Ballard wrote: > > > On Thu, May 13, 2010 at 5:18 PM, Ashley Sheridan > > wrote: > > > On Thu, 2010-0

Re: [PHP] Version de MySQL

2010-05-19 Thread Adam Richardson
2010/5/19 MSc. Carlos Pollán Estrada > 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. > Esp. Ciencia

Re: [PHP] __call for existing methods?

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

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 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 only one file

Re: [PHP] securing a custom app

2010-05-23 Thread Adam Richardson
On Sun, May 23, 2010 at 12:40 AM, David Mehler wrote: > 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 app and updating

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

2010-05-25 Thread Adam Richardson
On Tue, May 25, 2010 at 1:17 PM, Alice Wei wrote: > > Hi, > > It is kind of difficult to explain what I am trying to do here, I will > provide the form here to give a better idea. > > >Select the type of your starting point of > interest: >

Re: [PHP] displaying database output in a table

2010-05-25 Thread Adam Richardson
On Tue, May 25, 2010 at 9:27 PM, David Mehler wrote: > Hello, > I'm trying to display mysql database output in a formatted table. My > problem is i'm getting a blank screen with no errors. I've got > debugging on, and have run the cli php on this file which produces no > errors either, but neithe

Re: [PHP] Google checkout nightmare

2010-05-26 Thread Adam Richardson
On Wed, May 26, 2010 at 10:54 AM, Ashley Sheridan wrote: > 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 match > of bits, and d

Re: [PHP] One more time about regexes

2010-05-26 Thread Adam Richardson
On Wed, May 26, 2010 at 11:10 PM, Nilesh Govindarajan wrote: > -- Forwarded message -- > From: Nilesh Govindarajan > Date: Thu, May 27, 2010 at 8:40 AM > Subject: Re: [PHP] One more time about regexes > To: Andre Polykanine > > > On Thu, May 27, 2010 at 3:33 AM, Andre Polykanine

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 wrote: > 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 one), > but would like to

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 t

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

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 lik

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

2010-05-27 Thread Adam Richardson
Thanks a lot! > > -- > With best regards from Ukraine, > Andre > Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ > jabber.org > Yahoo! messenger: andre.polykanine; ICQ: 191749952 > Twitter: m_elensule > > - Original message - &g

Re: [PHP] Method documentation

2010-05-27 Thread Adam Richardson
On Thu, May 27, 2010 at 3:59 PM, Waynn Lue 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 wrote: > >> > >> > >> > Larry, > >> > >

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 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, Bob McConnell

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 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: F

Re: [PHP] get classname without namespace

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

Re: [PHP] Credit Card encryption

2010-05-30 Thread Adam Richardson
On Sun, May 30, 2010 at 2:16 AM, Ashley Sheridan wrote: > 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 tightening the > > scr

Re: [PHP] regular expression

2010-06-01 Thread Adam Richardson
On Tue, Jun 1, 2010 at 11:19 AM, Tanel Tammik 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: http://www.php.net/unsub.php > > $

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 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 good ex

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Adam Richardson
> > I am reading this PHP for Dummies and then I plan to read Head First with > PHP, MySQL, and Apache. Do you know any books that I can read online or I > can buy? I would be happy to do that. > Hi Shreyas, I think you've received some excellent advice. I like the Head First Books quite a bit.

Re: [PHP] image thumbnail from blob data

2010-06-06 Thread Adam Richardson
On Sun, Jun 6, 2010 at 8:24 PM, Phpster wrote: > > > On Jun 6, 2010, at 5:51 PM, Paul M Foster wrote: > > On Sun, Jun 06, 2010 at 09:55:20PM +0100, Ashley Sheridan wrote: >> >> >> >> >>> Having said that, it's not generally a good idea to store images as >>> blobs in my experience. It can crea

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";> > > > >