Re: [PHP] Formatting -- defining sections of code

2012-12-14 Thread Paul M Foster
suggest downloading something like CodeIgniter, and studying the way they structure their code physically. They may not be the optimum example, but for a well-known framework, their code base is relatively slim and well-organized. Also, obviously, study the MVC (model-view-controller) paradigm. It&

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Paul M Foster
vascript/AJAX call or a synchronous PHP call (on a standard PHP form submission). What am I missing? Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Paul M Foster
ead, but are you sure you want multiple > submit buttons, especially more than two? > There are probably better solutions for what you want, for example, radio > button to select which action to take? > > - Matijn I have to agree with Matijn for this reason: If the user hits the [

Re: [PHP] target question

2013-03-25 Thread Paul M Foster
ll it. The browser determines what helper application it will use to open it when it downloads the content. Whether to open a separate window/tab is determined by the HTML the browser is looking at when it makes the content request. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] target question

2013-03-25 Thread Paul M Foster
On Mon, Mar 25, 2013 at 04:37:50PM +, Stuart Dallas wrote: > On 25 Mar 2013, at 16:35, "Ford, Mike" wrote: > > >> -Original Message- > >> From: Paul M Foster [mailto:pa...@quillandmouse.com] > >> Sent: 25 March 2013 16:09 > >> &g

Re: [PHP] webform spam prevention

2013-04-04 Thread Paul M Foster
m that we do > not want cold-calling SEO marketing messages. Since that message there has > been a significant reduction in emails from legitimate SEO companies. "legitimate SEO companies" ROTFL! (Oh, sorry, did I say that out loud?) Paul -- Paul M. Foster http://noferblatz.com

Re: [PHP] limit access to php page

2013-05-29 Thread Paul M Foster
than I have) could rather easily hack the session value to change its value. But then again, I pretty much suck when it comes to working out how you'd "hack" (crack) things. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit access to php page

2013-05-30 Thread Paul M Foster
On Thu, May 30, 2013 at 12:06:02PM -0400, Tedd Sperling wrote: > On May 29, 2013, at 11:05 PM, Paul M Foster > wrote: > >> http://sperling.com/php/authorization/log-on.php > > > > I realize this is example code. > > > > My question is, in a real

Re: [PHP] Detect and Redirect Mobile Users

2013-06-12 Thread Paul M Foster
e main indicator, the screens on mobile devices have become progressively more and more capable. Some of them are better than many desktops I've seen. So I'd be interested in the answer to the question myself. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PH

Re: [PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Paul M Foster
mately, you'll probably need to contact the authors of the individual packages to get them to upgrade, so they can see the problems and fix them. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-27 Thread Paul M Foster
x27;t interrupted the way it should have been. I remember the system taking forever to calm down before it gave the next transaction a number way forward of the last one. I waited in front of my browser for quite some time. But I couldn't explain why. Paul -- Paul M. Foster http://noferblatz.

Re: [PHP] POST action

2013-07-28 Thread Paul M Foster
d when writing the POST-handling code with the idea in mind that no matter what the HTML says, the return value must conform to what *I* think it should be. No MVC framework written by others (though I do conform to MVC paradigm). Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST action

2013-07-29 Thread Paul M Foster
On Mon, Jul 29, 2013 at 11:50:01AM -0500, Larry Garfield wrote: > On 7/28/13 9:23 PM, Paul M Foster wrote: > >On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: [snip] > > > >Except as noted above. This is all home-grown, using native PHP > >functions

Re: [PHP] POST action

2013-08-01 Thread Paul M Foster
defend the indefensible and champion the cause of spaghetti code! So there! ;-P Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Paul M Foster
nuine, but I'm not *that* > unpopular! I'm sorry. Were you saying something? As soon as I saw "Ashley Sheridan" in my email client, it closed and my computer rebooted for some strange reason. ;-} Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- P

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Paul M Foster
bly heavy language for web work. Much like Ruby but more so. I'll say it again-- one of the reasons for the popularity of PHP is its similarity to C, at least a passing skill in which is common to most programmers. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Paul M Foster
On Thu, Sep 05, 2013 at 04:19:18PM -0400, Bastien Koert wrote: > Jee, that should have been a friday comment..."how does your dic standout" Don't send emails like that to the list when I've got a mouthful of water! It all came out my nose! ;-} Paul -- Paul M. Foster htt

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Paul M Foster
ted. For example, the interface to a DBMS is something which may involve many many functions. It is definitely something which benefits from OOP code, not flat functions. I've personally found that dates benefit from this same treatment. Paul -- Paul M. Foster http://noferblatz.com http://qu

Re: [PHP] Re: Sending PHP mail with Authentication

2013-09-29 Thread Paul M Foster
rather well. > I have to agree on the code bloat. Unless your requirements are extraordinary (which the OP's are), the native PHP mail() function is generally quite adequate. Never thought about creating a PHP email client. Interesting idea... Paul -- Paul M. Foster http://noferblatz

Re: [PHP] First PHP job

2011-01-10 Thread Paul M Foster
trying to wrap my wits around the crazy way functions are handled in Javascript. I know of no other language which treats functions the way Javascript does. Wait until you get to PHP's automatic casting of strings to numbers under the proper conditions. You'll scratch your head for quite a

Re: [PHP] First PHP job

2011-01-10 Thread Paul M Foster
On Mon, Jan 10, 2011 at 04:55:20PM -0500, Steve Staples wrote: > On Mon, 2011-01-10 at 16:21 -0500, Paul M Foster wrote: > > On Mon, Jan 10, 2011 at 12:02:51PM -0600, Donovan Brooke wrote: > > > > > Hello!, .. will try to keep this short! > > > I've been a

[PHP] Re: [BOGO?]RE: [PHP] First PHP job

2011-01-11 Thread Paul M Foster
about it. I just don't know what it > is. > [/snip] > > I am always looking for the $needle in the $haystack. > But sometimes I have to look through the $haystack for the $needle. ;-} Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www

Re: [PHP] email list 101

2011-01-16 Thread Paul M Foster
ble to send emails from you to a bunch of people on a list, I'd suggest PHPList. But if you want anyone to be able to submit those emails, I'd suggest either Majordomo (Perl) or Mailman (Python). If there's a comparable PHP solution, I'm not aware of it. Paul -- Paul M. Fost

Re: [PHP] PHP tutorials

2011-01-16 Thread Paul M Foster
trongly suggest hosting them at Youtube. Let them worry about traffic, bandwidth, etc. I'd also suggest students make heavy use of the php.net/manual/en/ tree, since (as has been frequently noted) it's some of the best programming language documentation on the web. Paul -- Paul M.

Re: [PHP] switch case madness

2011-01-18 Thread Paul M Foster
ost programming problems are relatively easily solved from scratch. And it's an interesting challenge to do so. Particularly when the result is something which can be reused in later projects. Yes, of course, I wouldn't touch payment gateways and the like. Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul M Foster
on only means that the smtp server accepted the email for delivery. The smtp server on localhost still has to connect with the remote server and the remote server has to accept the mail for delivery. I suspect the return of true only means that the origin/localhost mailserver accepts the email. It c

Re: [PHP] array to var - with different name

2011-01-20 Thread Paul M Foster
eter to the function). Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Paul M Foster
minute, > having to recalculate left and right values isn't that big of a deal. For the curious, here is a different article which explains the same concept: http://articles.sitepoint.com/article/hierarchical-data-database Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Different sessions, same client

2011-01-22 Thread Paul M Foster
o prevent this using the standard PHP functions relating to sessions. I'd like different applications in different tabs on the same box/browser to have different sessions, so they don't share data. Thoughts? Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing

Re: [PHP] Different sessions, same client

2011-01-23 Thread Paul M Foster
On Sun, Jan 23, 2011 at 11:45:30AM -0500, tedd wrote: > At 11:02 AM + 1/23/11, Ashley Sheridan wrote: > >On Sun, 2011-01-23 at 09:21 +0100, Thijs Lensselink wrote: > > > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> On 01/23

Re: [PHP] bread and buytter php

2011-02-03 Thread Paul M Foster
On Thu, Feb 03, 2011 at 10:47:08PM -0500, Kirk Bailey wrote: > Where is a good place for bread and butter day in day out routinely > needed functionality in php? I reeeally think you're going to have to be a little more specific. Paul -- Paul M. Foster http://noferblatz.com --

Re: [PHP] Design question

2011-02-05 Thread Paul M Foster
ttom, I'd have to pass in all those variables (on the stack) rather than simply have them visible to the template page that I "include()" at the bottom of the page controller. > > or should I have my framework create the html files? Has anyone gone > down this road before? an

[PHP] Secure monetary transactions

2011-02-07 Thread Paul M Foster
stuff? How do you, as a programmer doing this for a customer, handle this? Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-13 Thread Paul M Foster
r browser. Now fill in the value in the blank with the value 4567. Press the "submit" button. You will see that $_POST['alfa'] returns 4567, while $_GET['alfa'] returns 1234. It sounds like you're saying this isn't possible, yet it is. So what am I missing? Is there an error in my code? Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP -- using without installing

2011-02-14 Thread Paul M Foster
x which is written in PHP. But I imagine you'd be hard pressed to find a Linux distribution which does not come with several web servers and PHP either already installed or easily installable. After all, most of the web is running on Linux servers. Paul -- Paul M. Foster http://noferblatz.co

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Paul M Foster
ue. Now, I'm doing this in Firefox on Linux. I suppose there could be differences among browsers, but I suspect that the specs for HTML mandate the behavior I describe. Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-14 Thread Paul M Foster
On Mon, Feb 14, 2011 at 12:30:56PM -0500, tedd wrote: > >At 11:58 PM -0500 2/13/11, Paul M Foster wrote: > >On Sun, Feb 13, 2011 at 02:25:45PM -0500, tedd wrote: > > > > > At 10:53 AM +0530 2/12/11, Ashim Kapoor wrote: > > > >Dear All, > > > > &g

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Paul M Foster
On Mon, Feb 14, 2011 at 05:15:11PM -0500, Floyd Resler wrote: > > On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: > > > On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: > > > >> I have 2 buttons on a page: > >> > >> if (isset(

Re: [PHP] Rate my (really) simple template class

2011-02-14 Thread Paul M Foster
can then do anything they like within the template, which is generally just a HTML file with some PHP code in it. And if you're truly new to PHP, I'd suggest just coding some forms with PHP to handle the interaction in them as a first action. This will get you used to the way PHP handles variables, POST and GET, and the like. Simple stuff without classes, until you're fully comfortable with basic PHP variable handling, built-in functions, etc. Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rate my (really) simple template class

2011-02-15 Thread Paul M Foster
On Tue, Feb 15, 2011 at 05:02:51PM -0500, Brian Waters wrote: > On Mon, Feb 14, 2011 at 11:49 PM, Paul M Foster > wrote: > > Advice: don't use eval() this way. It's slow and dangerous. > > Could you elaborate, or provide a link? A year or two on this list. The com

Re: [PHP] Custom function

2011-02-16 Thread Paul M Foster
therwise, you would be stuck with assuming it's there, attempting to use it on that assumption, and dealing with whatever errors it causes when-- surprise!-- it's not there. Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to write code: how wrong am I?

2011-02-22 Thread Paul M Foster
Run/compile. Code a little, run/compile. That way, errors are easier to catch than after you've written 5000 lines in a file. Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Paul M Foster
y to ensure that nothing he does can hack up the database. That includes parameterizing queries and vetting user data properly. Anyway, just some thoughts. Also, please consider PostgreSQL in addition to MySQL and MSSQL. Paul -- Paul M. Foster http://noferblatz.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Deleting elements from the middle of an array

2011-03-14 Thread Paul M Foster
nset() array_splice(). No effect on the array. Anyone know how to do this, or know of a reference on how to? Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Paul M Foster
On Mon, Mar 14, 2011 at 09:34:33PM +0100, Peter Lind wrote: > On 14 March 2011 21:31, Paul M Foster wrote: > > Here's what I need to do: I have an indexed array, from which I need to > > delete elements in the middle. Once completed, the indexes should be > > numeri

Re: [PHP] Deleting elements from the middle of an array

2011-03-14 Thread Paul M Foster
On Mon, Mar 14, 2011 at 10:14:53PM +0100, Peter Lind wrote: > On 14 March 2011 22:10, Paul M Foster wrote: [snip] > >> Remove the elements, then use sort(). > > > > I've given a simplified example. The actual target array is > > multi-dimensional. Sort() won

Re: [PHP] Deleting elements from the middle of an array

2011-03-15 Thread Paul M Foster
On Tue, Mar 15, 2011 at 07:08:28AM +0100, Peter Lind wrote: >On Mar 15, 2011 4:10 AM, "Paul M Foster" <[1]pa...@quillandmouse.com> >wrote: >> >> On Mon, Mar 14, 2011 at 10:14:53PM +0100, Peter Lind wrote: > > >>

Re: [PHP] Re: echo?

2011-03-22 Thread Paul M Foster
;m not familiar with running PHP on Windows. In *nix environments, it's enough to use "\n", just as they do in C. It might even work in Windows; I don't know. If not, you should be able to use "\r\n". You can also try the constant PHP_EOL, which is suppos

Re: [PHP] Re: echo?

2011-03-23 Thread Paul M Foster
r browser is > 'obligingly' making sense of the 'bad formatting' and this is why > you're getting characters. > > BTW, an alternative to your for construct would be to use a while loop > to iterate through a data table. e.g. in your case, I'd have used

Re: [PHP] Can I modify a MySQL object?

2011-03-23 Thread Paul M Foster
gt; > converting it to a regular array? Resources are, I believe, opaque, thus not directly modifiable (safely). Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Path question

2011-03-28 Thread Paul M Foster
views, models, etc. So the function I use has a second parameter: include(fullpath('model', 'pizza.php')); include(fullpath('include', 'gesundheit.php')); Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-04 Thread Paul M Foster
the Javascript you want with dynamically generated PHP pages. Just don't try to call a Javascript function from PHP. That was the OP's mistake. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File locking with PHP functions

2011-04-04 Thread Paul M Foster
27;); Does this function lock the file from writes until fclose()? Does it lock the file from reads as well? file($filename); Does this function lock the file from writes until finished? Does it lock the file from reads as well? All this is in the context of a Linux/Unix web server. Paul

Re: [PHP] the best 1 book for php

2011-04-07 Thread Paul M Foster
harder to find a full explanation of something like "heredocs" on the site than an explanation of, say the "date()" function. However, if you're trying to learn the language, a book is a better companion than php.net. I'd recommend the O'Reilly book "Pro

Re: [PHP] Debugging Help Needed

2011-04-12 Thread Paul M Foster
hey change C? When did this happen?! ;-} Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email w/attachments

2011-04-18 Thread Paul M Foster
n't work. I'm > about to pull out what hair I have left. Links from a prior thread on this subject (not thoroughly examined): http://www.devshed.com/c/a/PHP/Composing-Messages-in-HTML-for-MIME-Email-with-PHP/ http://www.wilsonweb.com/wmt5/html-email-multi.htm Paul

Re: [PHP] JavaScript Injection ???

2011-04-18 Thread Paul M Foster
hy. The most popular reason > thus far is "Browsers have changed", but I'm not sure as to what did > change. No longer works for *you*. Works fine for me. Ergo, I have to assume it's a browser issue. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using SQLite without hosting support

2011-05-03 Thread Paul M Foster
uct, is it possible to run PHP5 and use SQLite, even if support for it is not built in? The dl() function has some restrictions on it which might prohibit its use, so is there some way to use SQLite in this situation without resorting to using the dl() function? Paul -- Paul M. Foster http://noferblat

Re: [PHP] Using SQLite without hosting support

2011-05-03 Thread Paul M Foster
On Tue, May 03, 2011 at 02:14:17PM -0400, ad...@buskirkgraphics.com wrote: > > -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Tuesday, May 03, 2011 12:36 PM > To: php-general@lists.php.net > Subject: [PHP] Using SQLite witho

[PHP] Running PHP5 in a PHP4 environment

2011-05-12 Thread Paul M Foster
eems like if the PHP interpreter hit some "future code" it didn't understand, it would issue a syntax warning or something similar. Is there some way I can squeeze some identifiable error code out of PHP 4 to indicate it's hit PHP 5 code it doesn't understand? Paul

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-16 Thread Paul M Foster
" error. Well of course, you would get that error. But I'm completely lost beyond that point. Why must both scripts use the same class names in them? Why not call the class in script2.php "B" instead of "A"? I'm guessing you left out a huge piece of explanation here. &

Re: [PHP] A Review Request

2011-05-19 Thread Paul M Foster
but I'm still interested in how other people do these things. I never know when I might learn something. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Review Request

2011-05-20 Thread Paul M Foster
-) OMG! She must be related to *my* wife! ;-} Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Paul M Foster
ows() expects parameter 1 to be resource, boolean > given in > > *Warning*: mysql_num_fields() expects parameter 1 to be resource, boolean > given in ** Your error messages clearly mean that 1) you're not getting a proper resource object back from mysql_query(), or 2) you're somehow

Re: [PHP] iPhone sadness

2011-05-29 Thread Paul M Foster
imagine that interleaved replies or bottom posting will never be considered offensive on any list. Whereas we all know that top posting can often be considered offensive, depending on the list. By the way, bottom posting only really becomes offensive when you fail to trim as needed. Paul -- Pa

Re: [PHP] phpsadness

2011-06-02 Thread Paul M Foster
he index for "The C Programming Language" for recursion, which points right back to that index page. I about doubled over when I first discovered it. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpsadness

2011-06-03 Thread Paul M Foster
> > > > > Yes, to be preceded with: > > > > echo('Alaho Akbar'); > > > > Nice ... any idea how many people you just insulted there? I'm guessing no one with an actual sense of humor. I suspect most people snickered at the joke and a

Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-03 Thread Paul M Foster
e > a few moments this morning to build and release a new PHP extension, > which provides a single function: detonate(). > > Third, you can read about it and download it here: > http://links.parasane.net/29nh +1! Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.c

Re: [PHP] phpsadness - P.C. shmee seee.

2011-06-05 Thread Paul M Foster
On Fri, Jun 03, 2011 at 01:52:15PM -0700, Daevid Vincent wrote: > and I'm "balding" from Alopecia Me too, but in my case, it's just 'cause I'm old. ;-} Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (ht

Re: [PHP] Class not used as an object (Scope Resolution Operator)

2011-06-09 Thread Paul M Foster
they can simply be external functions. These may be grouped this way for logical reasons, but if I have functions like this (which relate to a class but don't depend on the class), I generally put them in the class source file but outside the class. They become global as soon as the source file is include()ed. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Uncatchable errors

2011-06-13 Thread Paul M Foster
y and trace of the error. Any way to have things like parse errors do the same thing? Pointers to prior threads would do fine. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Doctrine madness!

2011-06-16 Thread Paul M Foster
isfied with the delivery time, but complain about latency, isn't what I'd consider acceptable. Looking at some of the code that comprises most ORM and other frameworks (but particularly ORM frameworks) the bloat is amazing. Paul -- Paul M. Foster http://noferblatz.com http://quill

Re: [PHP] Doctrine madness!

2011-06-16 Thread Paul M Foster
and Drupal are used pretty extensively in the "big website" category. Of course, if you ever want to do anything outside the Drupal/Joomla "box", you're looking at a helluva lot of work and time. I've been there (briefly). Paul -- Paul M. Foster http://noferblatz.com

Re: [PHP] Create a hierarchical hash from flat source

2011-06-24 Thread Paul M Foster
changed assign_children to be > >> > >>function assign_children($id,$list,&$leaf) > >> > >>Which solved that also! > > > >Ah, pointers, how we love them. The bane of every CS undergrad. > > Bane? I thought they were elegant :) The way you kn

Re: [PHP] Top Posting

2011-07-05 Thread Paul M Foster
x27;re stuck with exactly what you described. However, you can make life easier both on yourself and the rest of us by snipping content not relevant to your reply (that doesn't mean *all* preceding content). Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com --

Re: [PHP] Re: Top Posting

2011-07-05 Thread Paul M Foster
ead adoption of Outlook as a reason why top-posting is superior (because business people demand it) is silly. No offense, but it's pretty weak reasoning. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Paul M Foster
te folder. Moreover, it's not just for spam. It can be used to filter out duplicate emails, file copies of emails under different folders by subject, etc. It also makes for a great car wax and salad dressing. ;-} Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com --

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Paul M Foster
On Wed, Jul 06, 2011 at 04:24:29PM -0500, Tamara Temple wrote: > > On Jul 6, 2011, at 3:19 PM, Paul M Foster wrote: > >Postfix is a *nix program which can be connected to whatever > >program you > >use to grab mail with. With postfix, you write "recipes" which d

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Paul M Foster
arithmetic in an environment where you're doing mostly adds and subtracts, store data as integers and do your math that way. Only convert to decimal for display. If you're doing multiplies and divides, do them with the multi-precision PHP functions. Paul -- Paul M. Foster http://

Re: [PHP] PHP frameworks

2011-07-21 Thread Paul M Foster
you, Try CodeIgniter ( http://codeigniter.com ). It's a lightweight, well-engineered framework with relatively transparent code (meaning you can examine the source and see relatively easily what they're doing). Documentation is some of the best out there. Paul -- Paul M. Fo

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Paul M Foster
> Cheers, Rob. > > No, not indenting braces is T > LYY. > > Make things uniform -- a condition followed by indented code located > between equally indented braces makes sense to me. > How people read > other code styles is a m

Re: Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Paul M Foster
nd then *upload* them to the blog. That, and the silly idea that one should store huge masses of text in relation databases; large masses of text should be stored as what they are-- flat files. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What determines your use of the type of DB framework/abstract?

2011-09-22 Thread Paul M Foster
ORM gets in the way of multi-table foreign-key reliant queries. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any free online tests to test my PHP knowledge?

2011-09-22 Thread Paul M Foster
ng PHP code, I don't do well on those tests. Helps my confidence a lot, as you can imagine. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Secure data management

2011-10-07 Thread Paul M Foster
I post/ask because I am wanting to > SEE the whole everything like you few experts here who really know > exactly what everyone is talking about (or when they are just groping > in the dark). There is more to SQL injection than getting the quoting correct. In my understanding, prepared st

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Paul M Foster
ows the site owner to directly modify the site, without having to call a programmer or web developer. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple SQLite statements

2011-10-10 Thread Paul M Foster
It *appears* that this may be how it actually works, > but I wondered if anyone could confirm that. -- Cheers -- Tim > The docs appear to agree that this is allowed. See: http://us.php.net/manual/en/function.sqlite-exec.php Paul -- Paul M. Foster http://noferblatz.com http:/

Re: [PHP] Tutorial for the structure of an php-app ?

2011-11-26 Thread Paul M Foster
o actually build a house out of those > things. Aside from the fact that, yes, much of what you're asking for has to do with the user interface and not PHP, there is no ONE way to build a PHP app. PHP is flexible enough to allow you to do it any of a number of ways. Paul -- Pa

Re: [PHP] news and article posts in one table

2011-11-26 Thread Paul M Foster
this table in an active blog, with a survey of each of the fields and their values. You'll see what I mean. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-27 Thread Paul M Foster
t right. (For example, I don't know why the first key I mentioned is 2 instead of 1.) Anyway, I have my Firefox set up this way. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding and reading firefox bookmarks with PHP

2011-11-28 Thread Paul M Foster
On Mon, Nov 28, 2011 at 10:59:03AM -0500, David McGlone wrote: > On Sun, 2011-11-27 at 22:20 -0500, Paul M Foster wrote: > > On Sun, Nov 27, 2011 at 06:47:36PM -0500, David McGlone wrote: > > > > > Hi all, I am wondering if it's possible to find the bookmarks file in

[PHP] Question regarding passwords/security

2011-12-22 Thread Paul M Foster
han consulting the table. Is there any concensus or overwhelming argument one way or the other? Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Question regarding passwords/security

2011-12-22 Thread Paul M Foster
On Thu, Dec 22, 2011 at 12:55:41PM -0500, Al wrote: > > > On 12/22/2011 10:05 AM, Paul M Foster wrote: > >Not sure how to ask this question... I've always eschewed consulting a > >database on page loads to determine if a user is logged in, primarily > >becaus

Re: [PHP] Way to output HTML on professional websites

2011-12-26 Thread Paul M Foster
er language decoding the "pseudo-HTML" above and displaying it. Kind of a waste, in my opinion, though a lot of people swear by templating systems. Again, my opinion, they're lazy typists. In any case, I think you'll find that most CMS based site presentations are based on temp

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Paul M Foster
ory and provide a link to it on a webpage. The user can then simply click on the link and their browser will open it and provide the native (usually Adobe Reader) interface for viewing and printing it. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mai

Re: [PHP] Variable Troubleshooting Code

2012-01-09 Thread Paul M Foster
rint "\n"; print_r($var); print "\n"; } I use this routine wherever I want to see what's going on. It formats (particularly) array output so that I can read it, instead of having everything look like JSON, which is much harder to read. Feel free to use the ab

[PHP] Headers on smart phone browsers

2012-02-05 Thread Paul M Foster
desktop or smart phone version of a webpage)? Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 02:28:42PM -0600, Donovan Brooke wrote: > Paul M Foster wrote: > >This is sort of obliquely related to PHP. > > > >I don't have a smart phone, but I need to know a couple of things: > > > >1) Do smart phones use the same browsers as

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
so long as handhelds remain at crappy resolutions. But I don't expect that to be the case forever. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 04:04:28PM -0500, Adam Richardson wrote: >On Mon, Feb 6, 2012 at 3:50 PM, Adam Richardson <[1]simples...@gmail.com> >wrote: > > On Mon, Feb 6, 2012 at 12:58 AM, Paul M Foster > <[2]pa...@quillandmouse.com> wrote: > >

<    2   3   4   5   6   7   8   >