Re: Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Paul M Foster
(n) has performance advantages in some other database systems, it has no such advantages in PostgreSQL. In most situations text or character varying should be used instead. http://www.postgresql.org/docs/8.0/interactive/datatype-character.html Paul -- Paul M. Foster -- PHP General Mailing List

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Paul M Foster
'; ? Nicely done. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing and then printing ANSI escape sequences in (and then from) variables

2009-01-07 Thread Paul M Foster
') will return decimal 109. That's only an example, since you should be able to send single characters to the terminal as is. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: hello

2009-01-10 Thread Paul M Foster
a scorcher this year! Grumble, grumble... did I mention freshwater falls from the sky and forms vertical piles outside my home? High of 72 degrees in central Florida. Now, where did I put my swimsuit? ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: hello

2009-01-10 Thread Paul M Foster
On Sat, Jan 10, 2009 at 03:16:34AM -0500, Robert Cummings wrote: On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote: On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote: On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: On Fri, 2009-01-09 at 18:15 -0500, Phpster

Re: [PHP] Couple of beginner questions

2009-01-10 Thread Paul M Foster
PHP code in the middle of a HTML page, make the extension PHP. Otherwise, Apache will not interpret the PHP code as PHP (unless you do some messing with .htaccess or whatever). It's just simplest to call a file something.php if it has PHP in it. Paul -- Paul M. Foster -- PHP General Mailing List

Re: [PHP] Referencing variable in calling class?

2009-01-10 Thread Paul M Foster
controllers are. It's just a bunch of routines and function calls in index.php.) Does that make sense? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Paul M Foster
work? Or is that some academic's view of the way things *should* be done? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Paul M Foster
On Sun, Jan 11, 2009 at 11:28:49PM -0800, Lars Torben Wilson wrote: 2009/1/11 Paul M Foster pa...@quillandmouse.com: snip But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages

Re: [PHP] Re: Php and CSS where to put it

2009-01-12 Thread Paul M Foster
!important to stress your IE styles. Best thing though is it validates through the W3C because it is just an HTML comment. Don't move that page; I've bookmarked it. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread Paul M Foster
changes you make to their code. But for a framework, it's pretty good. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Paul M Foster
down framework numbers the most. When I wrote C code, the CPU would blaze through the actual code, but file opens and reads consumed far more time than in-memory code execution. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-14 Thread Paul M Foster
silly if you suggested objects to them. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-15 Thread Paul M Foster
On Thu, Jan 15, 2009 at 09:57:42AM +0300, Usamah M. Ali wrote: On Thu, Jan 15, 2009 at 1:59 AM, Paul M Foster pa...@quillandmouse.com wrote: If you're going to go with a prebuilt framework, I'd recommend CodeIgniter for your first time out. If the docs look good to you

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Paul M Foster
On Thu, Jan 15, 2009 at 04:20:16AM -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: Incidentally, I would differ from the reviewer in the link above only in this respect: He maintains that every line of code adds time. While this is true, I believe

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Paul M Foster
On Thu, Jan 15, 2009 at 04:17:51AM -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: snip The pages are significantly slower than straight PHP by orders of magnitude: [1]http

Re: [PHP] Mirroring/caching PHP webpages.

2009-01-15 Thread Paul M Foster
your variable names and they submit to your existing form, your PHP can simply ignore it. Also, you might try CAPTCHA (look it up). It tries to weed out human from non-human surfers. You've probably got a 'bot submitting to you, so this might help. Paul -- Paul M. Foster -- PHP General Mailing

Re: [PHP] print a to z

2009-01-15 Thread Paul M Foster
) echo $i the only problem with the 2nd solutions is it only print up to Y without z. so how to print up to z with the 2nd solutions? because it turn out that you cant to something like for($i = 'a'; $i = 'z'; ++$i).. for ($i = 'a'; $i = 'z'; $i++) echo $i; Paul -- Paul M. Foster

Re: [PHP] Mirroring/caching PHP webpages.

2009-01-17 Thread Paul M Foster
On Sun, Jan 18, 2009 at 01:03:44PM +1100, Clancy wrote: On Fri, 16 Jan 2009 00:51:58 -0500, pa...@quillandmouse.com (Paul M Foster) wrote: On Fri, Jan 16, 2009 at 11:57:24AM +1100, Clancy wrote: . The only explanation I can see is that someone has somehow

Re: [PHP] Need List Advice

2009-01-19 Thread Paul M Foster
that yours are negative. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] developers life

2009-01-19 Thread Paul M Foster
On Mon, Jan 19, 2009 at 10:23:49PM -, c...@l-i-e.com wrote: ESTJ Me too. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] maybe we could all?

2009-01-19 Thread Paul M Foster
, would need max input and discussion to get the best solutions for us all, and class at a time should mean we get a steady stream of classes to the repo.. think about 6 months down the line] You really don't have enough to do, do you? Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] maybe we could all?

2009-01-19 Thread Paul M Foster
On Tue, Jan 20, 2009 at 03:29:29AM +, Nathan Rixham wrote: Paul M Foster wrote: On Mon, Jan 19, 2009 at 11:57:25PM +, Nathan Rixham wrote: snip You really don't have enough to do, do you? Paul actually, way too much - but I like to learn, contribute, think about what I'm

Re: [PHP] maybe we could all?

2009-01-19 Thread Paul M Foster
On Tue, Jan 20, 2009 at 03:57:34AM +, Nathan Rixham wrote: snip welcome; good to see a new face - even if it is preformatted courier as per :p That preformatted courier sounds like your email client. I use mutt an vim for mail. Paul -- Paul M. Foster -- PHP General Mailing List

Re: [PHP] maybe we could all?

2009-01-19 Thread Paul M Foster
On Mon, Jan 19, 2009 at 10:49:34PM -0500, Daniel Brown wrote: On Mon, Jan 19, 2009 at 22:46, Paul M Foster pa...@quillandmouse.com wrote: Incidentally, I'm relatively new to the list, but I see a lot of CCs along with posts to the list. The CCs are only useful if non-subscribers can post

[PHP] Client/Server Printing

2009-01-20 Thread Paul M Foster
to the PDF on the web page. The user clicks on the generated PDF, and his/her browser opens up Acrobat or xpdf, and prints from that application to their local machine. Is that a reasonable way to implement this? Any better ideas? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
-- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About printing functions

2009-01-21 Thread Paul M Foster
or cookie, at least if you want to save it beyond the present page. Oh, you could also store it in a database. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
On Wed, Jan 21, 2009 at 09:10:54PM +0100, Jochem Maas wrote: Paul M Foster schreef: On Wed, Jan 21, 2009 at 11:37:07AM -0600, Jay Moore wrote: This is a MySQL class I use and I wanted to get everyone's thoughts on how/if I can improve it. This is for MySQL only. I don't need to make

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
default or predone handlers, you have to put all kinds of try/catch blocks around everything. They make for non-linear execution, and I prefer my code to execute in a linear fashion. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Paul M Foster
for errors. Generally speaking, my next step is going to be to display the page again and tell the user to retype the date properly anyway. There are reasons to use setjmp and longjmp in C as well, but I only ever used them once, and later ripped out that code. Paul -- Paul M. Foster -- PHP General

Re: [PHP] distinguish between null variable and unset variable

2009-01-21 Thread Paul M Foster
it when testing POST and GET variables from web pages. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Paul M Foster
-- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Paul M Foster
with the HTTP protocol, and you're embedding PHP in HTML pages. Otherwise its syntax is almost completely C-like. HTH, Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: Paul M Foster wrote: snip In case this has yet to be answered to your satisfaction... Your page will *have* to reload when the user presses the button, but the majority of content can look the same, except for the content

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote: Paul M Foster wrote: snip Please show me how *without Javascript* and *only with PHP* you can change the content on a page interactively as the user described *without* reloading the whole page. Xajax contains Javascript

Re: [PHP] Re: New PHP User with a simple question

2009-01-26 Thread Paul M Foster
on the list. A lot of programmer types can get prickly with each other about details. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Programming general question

2009-01-27 Thread Paul M Foster
. You can also make those methods private so that code outside the object can't see them. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
(columns lined up, etc.), the simplest solution is to use HTML tables. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
On Wed, Jan 28, 2009 at 02:40:55PM -0500, Stephen wrote: Paul M Foster wrote: If you want exact layout (columns lined up, etc.), the simplest solution is to use HTML tables. The horror. Do not use tables for layout. Use CSS. Especially now that Microsoft, just this week, is sending

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
. The gurus look at things in such a lofty way that answering simple questions at the level of a beginner sounds like a dissertation on the subtleties of Spanish art in the 1500s. Just my opinion. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
, and when in doubt I check the function documentation on the php.net site. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
. But as you can see here from other replies, tables are the simplest choice for a lot of people who work with web pages all the time. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
as good in CSS as it does in tables. Even with tables, I had more experimenting and colspans than you can imagine. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP question

2009-01-28 Thread Paul M Foster
On Wed, Jan 28, 2009 at 11:41:31PM +, Nathan Rixham wrote: Paul M Foster wrote: On Wed, Jan 28, 2009 at 09:26:10PM +, Ashley Sheridan wrote: snip I use CSS as much as possible, and it's second nature to me now to design with CSS rather than tables, but the only area I find

Re: [PHP] Re: Hidden costs of PHP arrays?

2009-01-29 Thread Paul M Foster
M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Paul M Foster
commenting out everything below it...Oi ...is this ever going to get easier for me I often wonder... Use Vim. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Garbage Collection

2009-02-05 Thread Paul M Foster
it with timestamp fields in the table. I'd build a new file that contained the history. Maybe when timestamp operation char(1) what char(1) which id Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Connect local app to a web app

2009-02-05 Thread Paul M Foster
data, get the data back and save into localhost database. If you have control of the server, you can just set this up in a bash script, using mysql commands, which connect to the remote and then then local databases. I'm talking about cron running the script periodically. Paul -- Paul M. Foster

Re: [PHP] DB Comparisons

2009-02-05 Thread Paul M Foster
MySQL add full-fledged DBMS features. So their capabilities have come closer and closer together. But I believe PostgreSQL is still the superior choice for an *enterprise* DBMS. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Preserving History

2009-02-05 Thread Paul M Foster
can't change it without cascading problems. That key is now in *at least* two places and must be changed *everywhere*, and the DBMS normally won't let you do that. You could add cascade update provisions into your tables, but why? Just use an integer key, and you're away. Paul -- Paul M. Foster

Re: [PHP] require() causing strange characters ?

2009-02-05 Thread Paul M Foster
blanks for all the non-printing PHP code in the file. But that's just a guess. How exactly are you managing to obtain the page in such a way that you can test character codes and such? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] long echo statement performance question

2009-02-06 Thread Paul M Foster
separated from presentation in a elegant way. snip In a thread about performance you suggest Smarty? Really? :D You know, I was gonna say something about that, but I figure I've complained enough on list. I agree, though. Paul -- Paul M. Foster -- PHP General Mailing List (http

[PHP] Session variables

2009-02-06 Thread Paul M Foster
does a server get a cookie? Is it a separate request made by the server to the client? If the value I've asked the user for is *not* stored as a cookie, then is it passed as part of the HTTP submission or what? Thanks for any enlightenment on this. Paul -- Paul M. Foster -- PHP General

Re: [PHP] PHP usage stats

2009-02-08 Thread Paul M Foster
the pinheads in academia don't see the value of FOSS compared to being beholden to huge corporate behemoths like Microsoft. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class constant inconsistency

2009-02-08 Thread Paul M Foster
of it. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP OOP

2009-02-09 Thread Paul M Foster
on their own. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute EXE with variables

2009-02-13 Thread Paul M Foster
the variables to it. Use the system() command, and enclose both your command and its parameters in a pair of single quotes, as: system('mycmd -a alfa -b bravo'); Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Apache odd behavior

2009-02-15 Thread Paul M Foster
doing wrong? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
, like: http://example.com/graphics/my_portrait.gif My casual observation seems to indicate that the former will load faster than the latter. But has anyone done any benchmarking on it? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
is the *whole* URL. mod_rewrite might resolve this, but it isn't allowed on all servers. So it's not a reliable solution. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
to be rewritten. Ugh. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
-- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
-- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache odd behavior

2009-02-16 Thread Paul M Foster
might be a bit much. I'm not happy with the way DW handles this stuff, but I have to strike a balance between my vim-handcoding-command-line method and my wife's click-and-drag-gotta-be-GUI method. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Paul M Foster
On Mon, Feb 16, 2009 at 08:49:06PM +, Stuart wrote: 2009/2/16 Paul M Foster pa...@quillandmouse.com: snip Agreed. But here's the real reason, in my case. We develop the pages on an internal server, which has the URL http://pokey/mysite.com. When we move the pages to the live server

Re: [PHP] Apache odd behavior

2009-02-17 Thread Paul M Foster
On Tue, Feb 17, 2009 at 12:27:58PM +, Stuart wrote: 2009/2/17 Paul M Foster pa...@quillandmouse.com: On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote: snip This is your problem, you're not understanding where the paths are being resolved. Apache has absolutely

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Paul M Foster
On Tue, Feb 17, 2009 at 11:22:32AM +, Stuart wrote: 2009/2/17 Paul M Foster pa...@quillandmouse.com: snip Maintaining identical development, staging and live environments is one of the key components of reliable, repeatable and streamlined development, testing and deployment

Re: [PHP] How should I ....--its a date/timestamp issue

2009-02-17 Thread Paul M Foster
the dates. And after all that, you'd still have to do some pre-processing of it to limit selections to current date and later. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Full versus relative URLs

2009-02-18 Thread Paul M Foster
(one directory up from /var/www/includes). Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How should I ....--its a date/timestamp issue

2009-02-18 Thread Paul M Foster
this 1235109600 What is that?? It's a *nix timestamp number. Give it to date() this way: date('Y-m-d', $startday) And you'll see the date it represents. (It's actually the number of seconds since, the Unix epoch, in 1970.) Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] File Write Operation Slows to a Crawl....

2009-02-23 Thread Paul M Foster
Hope I read things correctly and that this helps. Sorry if my analysis is off. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Having Trouble With Session Variable in Query Statement

2009-02-23 Thread Paul M Foster
`mytable` SET thetotal=$amt WHERE id=$_SESSION['thisid']; Don't single quote values inside array brackets when the whole expression is in double quotes. You've got: ... $_SESSION['thisid']; Do this instead: ... $_SESSION[thisid]; Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] Why PHP won

2009-02-23 Thread Paul M Foster
On Mon, Feb 23, 2009 at 01:39:51PM -0800, Daevid Vincent wrote: http://startuplessonslearned.blogspot.com/2009/01/why-php-won.html I *like* the way this guy thinks. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] verify text in field

2009-02-26 Thread Paul M Foster
that well. PostgreSQL only returns *false* if there's a problem with the query. If the query yields nothing, then you have to check with pg_num_rows(). Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird spam messages on the list... [WAS: Stop Being a Wage Slave! Join EarnGoogleCash Program!]

2009-02-27 Thread Paul M Foster
, the listadmins from list.php.net should blacklist lists.debian.org. Look more closely at the headers. There is spoofing going on here. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Paul M Foster
table_name = 'table_name' this might help with doing the same for M$Access? This is the SQL standard way of doing this. Both MySQL and PostgreSQL support it. Don't know about MSSQL. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Get a list of column field names from a MS Access table

2009-02-28 Thread Paul M Foster
On Sat, Feb 28, 2009 at 06:54:25PM -0500, Andrew Ballard wrote: On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster pa...@quillandmouse.com wrote: On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote: On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote: snip That'll just

Re: [PHP] multiple categories

2009-03-02 Thread Paul M Foster
differently, if you like, but the idea is the same). You might want to invest in a book like PHP Cookbook which has a great deal of working code for you to look at and emulate. It's pretty much all examples and their explanations. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] Question about template systems

2009-03-03 Thread Paul M Foster
-- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] whoami explanation

2009-03-03 Thread Paul M Foster
On Tue, Mar 03, 2009 at 10:57:21AM -0500, PJ wrote: snip How does one enter back quotes from the keyboard? Tell me you didn't seriously just ask that question. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: whoami explanation

2009-03-03 Thread Paul M Foster
or carefully research an item on the web. And FWIW, php.net has better documentation than that of any other package I've ever seen. I keep a browser tab open to php.net at all times. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] whoami explanation

2009-03-04 Thread Paul M Foster
about it? Sorry, I used to live in LA, and I had health food people up to here. They were the sickest people I knew. So I took it as my personal mission to smoke, drink and eat as much crappy food as I could just to prove I'd outlast them. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] Website on a USB key?

2009-03-05 Thread Paul M Foster
either copy it to the document root of the webserver on the machine, or mount it at a point within the doc root. Otherwise, the web server won't see it as a website to serve up. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: if elseif elseif elseif....

2009-03-06 Thread Paul M Foster
Someone would add gotos to a language *on purpose*?! Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] verify another flavor

2009-03-06 Thread Paul M Foster
= $first_name . ' ' . $last_name; or $name = $first_name $last_name; Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Paul M Foster
On Sat, Mar 07, 2009 at 05:52:55AM -0500, Robert Cummings wrote: On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote: On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote: On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote: On Fri, Mar 6, 2009 at 00:12

Re: [PHP] verify problem

2009-03-07 Thread Paul M Foster
On Sat, Mar 07, 2009 at 02:13:11PM +, Ashley Sheridan wrote: snip And spaces instead of tabs! That's heresy! No, it's python. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Paul M Foster
? In any case, I just wrote my own driver class for each DB type, and then a function which instantiates the appropriate driver with the appropriate parameters. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if elseif elseif elseif....

2009-03-07 Thread Paul M Foster
change I would make. Overall, I completely agree with this philosophy. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Paul M Foster
On Sat, Mar 07, 2009 at 05:12:28PM -0500, Eric Butera wrote: On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster pa...@quillandmouse.com wrote: On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote: snip PDO.  :)  Anything else is a waste of cpu cycles. I've looked into PDO

Re: [PHP] Re: Database Abstraction Class

2009-03-08 Thread Paul M Foster
requiring unnecessary code duplication. Wow, a proprietary language that I get to learn on top of the two that do the job and that I already know! Bonus! ROTFL! Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Frameworks

2009-03-08 Thread Paul M Foster
to be the most promising? Use CodeIgniter. It's about the lightest weight and relatively easy to understand. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cookies/Sessions and how they work

2009-03-09 Thread Paul M Foster
for the above is: http://us2.php.net/manual/en/features.cookies.php#36058 Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cookies/Sessions and how they work

2009-03-09 Thread Paul M Foster
On Mon, Mar 09, 2009 at 11:35:57PM -0400, APseudoUtopia wrote: On Mon, Mar 9, 2009 at 10:26 PM, Paul M Foster pa...@quillandmouse.com wrote: This is in two parts. First cookies. I'm a little unclear on how they work. From what I've read, cookies are stored by the browser. When a request

Re: [PHP] [PHP MySQL] Introduction to using relational databases

2009-03-09 Thread Paul M Foster
have to sit down with an editor and write it. Very unlike programs which allow you to design tables using visual means. Hope that helps. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script execution

2009-03-09 Thread Paul M Foster
of the list. His replies are generally very helpful, his expression precise, and he's usually not wrong. (Dan, make the check out to... ;-) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] whoami explanation

2009-03-10 Thread Paul M Foster
cheese melts take the potates from the oven, add salt or whatever condiment you use, add a litle oil and you have your lunch! My mom tried to serve us a meatless meal when I was a kid. After the outrage of the three boys and dad, that was the last meatless meal she tried. Paul -- Paul M. Foster

Re: [PHP] Handling (very) large files with PHP

2009-03-10 Thread Paul M Foster
the data in either language. In fact, you might find handling the input easier in Perl or Python, where you don't have to deal with variable initialization as much. And both also have APIs for MySQL and PostgreSQL. And I believe both DBMSes can handle databases of this size. Paul -- Paul M. Foster

Re: [PHP] ltrim behavior.

2009-03-11 Thread Paul M Foster
*. If you think about it that way, it will make sense. Also one of the examples on the referenced documentation page does something similar to what you've cited. Work through that example, and you'll see. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

  1   2   3   4   5   6   7   >