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

[PHP] FW:

2013-05-08 Thread Paul Novitski
http://www.shinwa-kensetsu.sakura.ne.jp/bth7rz.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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] 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] 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] 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] Holding "datetimes" in a DB.

2013-03-01 Thread Paul McGarry
That way you can let the DB take care of any conversions when you need it, ie you can insert using Europe/Berlin and then select using UTC (etc etc). If you are just quickly writing your app for one timezone you can have that as the 'default' but then if you want to expand later then all your d

[PHP] PHP 5.4.11 warnings - how to make them go away ?

2013-02-11 Thread Paul Lanken
al/lib/php/extensions" Seems reasonable. However I do not need mysql.so because the php binaries were linked with -lmysqlclient. So how to get rid of these warnings ? Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] storing & searching docs

2012-12-12 Thread Paul M Foster
tadata about the text objects would be stored separately from the "payload" (text object). 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] Storing passwords in session variables

2012-12-11 Thread Paul Halliday
On Tue, Dec 11, 2012 at 9:12 AM, Ashley Sheridan wrote: > ** > On Tue, 2012-12-11 at 08:58 -0400, Paul Halliday wrote: > > On Tue, Dec 11, 2012 at 9:02 AM, Ashley Sheridan > wrote: > > On Tue, 2012-12-11 at 08:46 -0400, Paul Halliday wrote: > > Hi, > > I

Re: [PHP] Storing passwords in session variables

2012-12-11 Thread Paul Halliday
On Tue, Dec 11, 2012 at 9:02 AM, Ashley Sheridan wrote: > ** > On Tue, 2012-12-11 at 08:46 -0400, Paul Halliday wrote: > > Hi, > > I have a form that has username and password fields. While the form > exists and contains various other fields the most common mode of > opera

[PHP] Storing passwords in session variables

2012-12-11 Thread Paul Halliday
ach time a request is made. Thanks. -- Paul Halliday http://www.pintumbler.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP site search broken?

2012-12-04 Thread Paul M Foster
not always) does the same thing. Etc. 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] Array help.

2012-10-24 Thread Paul Halliday
On Wed, Oct 24, 2012 at 2:40 PM, Samuel Lopes Grigolato wrote: > Could you try changing this: > > if($groupTest != FALSE) { > > to this: > > if($groupTest !== FALSE) { > > ? Hah. Perfect! Thanks. > > -Mensagem original- > De: Paul Halliday [mailto:p

[PHP] Beneficial site spamming framework

2012-10-11 Thread Paul M Foster
is is a risky question for a public list. Feel free to contact me privately if you think the answer shouldn't be in the archives of a public list. Likewise, if you can point me to a source of quickly absorbable research on the subject. I frankly don't know how I'd google such a thin

Re: [PHP] Day after Friday

2012-09-23 Thread Paul M Foster
On Sun, Sep 23, 2012 at 09:33:33AM -0400, Tedd Sperling wrote: > On Sep 22, 2012, at 3:59 PM, Paul M Foster > wrote: > > On Sat, Sep 22, 2012 at 01:05:51PM -0400, Tedd Sperling wrote: > > > >> Hi gang: > >> > >> I know it's the Day after Frida

Re: [PHP] Day after Friday

2012-09-22 Thread Paul M Foster
CakePHP, Code Igniter, etc. Administrators! Ach! 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] Bounce messages

2012-09-21 Thread Paul M Foster
list. BUT is there no way of cleaning up the bounce emails > we all get when posting to the list(s)? > > ( Waits to delete all the bounce messages for this post :) ) Not seeing bounce messages here. Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.com -- PHP General M

Re: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Paul M Foster
ommon providers of ad content are localhost, making most requests for ad content yield 404 errors. I bought TiVo partially so I could skip ads. I've revelled in it every day since. I can watch an hour-long program in 47 minutes. (Though this is a sad commentary on television and cable c

Re: [PHP] The end of "mysql"

2012-09-08 Thread Paul M Foster
stepped into the middle of a conversation. What's this about "announced end of the mysql functions"? Who exactly announced what, and is there a link to whatever announcement somewhere? 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] FoxPro Table Structure

2012-08-28 Thread Paul M Foster
needed. The code is on SourceForge. See: http://noferblatz.com/dbfsak.php If you download the code and need help, just let me know. I believe the command line switch you're looking for is -i, as in: dbfsak -i mytable.dbf Paul -- Paul M. Foster http://noferblatz.com http://quillandmouse.co

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-18 Thread Paul M Foster
On Sat, Aug 18, 2012 at 05:10:39PM -0400, Daniel Brown wrote: >On Aug 18, 2012 4:49 PM, "Paul M Foster" <[1]pa...@quillandmouse.com> >wrote: >> >> I can comment on part of this based on what I was recently told by an >> SEO company

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-18 Thread Paul M Foster
o earthly idea what they're talking about. In this case, what they're saying makes sense to me, and I suspect it's true. 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] Two ways to obtain an object property

2012-08-15 Thread Paul M Foster
ng to have to make that decision in an "if" statement repeatedly, I'd probably say: $isSubscribed = $crntUser->isASubscriber(); just because in subsequent code, you're not suffering the (admittedly small) repeated overhead of the function call. But in answer to your ques

Re: [PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
:) Perfect! Thank you. On Thu, Aug 2, 2012 at 1:25 PM, Robert Williams wrote: > On 8/2/12 05:51, "Paul Halliday" wrote: > > >>What I have is an array of values and timestamps: >> >>17 15:31 >>16 15:32 >>27 15:33 >>14 15:34 >>11

Re: [PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
On Thu, Aug 2, 2012 at 12:27 PM, Ashley Sheridan wrote: > > > Paul Halliday wrote: > >>This is hideous, can anyone think of a more novel approach? >> >>What I have is an array of values and timestamps: >> >>17 15:31 >>16 15:32 >>27 15:33

[PHP] Awkward time processing

2012-08-02 Thread Paul Halliday
; case 03: $c03 += $c; break; case 04: $c04 += $c; break; . } } Works but wow is it ugly.. Thoughts? -- Paul Halliday http://www.pintumbler.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What do you call the end-user?

2012-07-24 Thread Paul M Foster
ocs for anything. Very true. Also, apparently in some quarters, "free" == "worthless". But in the case of FOSS, nothing could be further from the truth. 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: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-20 Thread Paul M Foster
On Fri, Jul 20, 2012 at 09:04:30AM +0100, Lester Caine wrote: > Paul M Foster wrote: > >Here's another one: There are currently discussions in the U.S. Congress > >in favor of forcing internet vendors to charge sales tax on*all* sales, > >regardless of whether the ven

Re: [PHP] What do you call the end-user?

2012-07-19 Thread Paul M Foster
On Thu, Jul 19, 2012 at 06:57:53PM -0400, admin wrote: [snip] > > LOL Paul, > You are so very spot on, I have a current customer who would like > the website to just load when he logs in. I wish I had not agreed to writing > him a startup script to load the interface for

Re: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Paul M Foster
ide. Yay. You might want to get busy on that one. Governments and large corporations are about power and *control*. The internet is the antithesis of this. So expect their efforts to control some or all of the internet to continue until they succeed. Paul -- Paul M. Foster http://noferblatz.com http:/

Re: [PHP] What do you call the end-user?

2012-07-19 Thread Paul M Foster
tem. You didn't learn to drive by just sitting in a car and guessing how it is done. Don't expect a web-based application to be operable simply by guessing, necessarily. By the way, I'm quite happy to write documentation for systems. Unfortunately, more than half the people who read anything

Re: [PHP] Creating drop-down menus

2012-07-17 Thread Paul M Foster
ttle CPU meter in my taskbar. And nothing jacks that meter up like Javascript. I don't know why, but Javascript just devours CPU on my computer. The more javascript, the worse. And like I said, JQuery is a LOT of code. This is one of the reasons I tend to code things in PHP instead of Javascript.

Re: [PHP] PDO: extend or encapsulate?

2012-07-13 Thread Paul M Foster
e of the classes involved. Besides, it exposes methods which I would prefer not be used by my code. Encapsulation limits the methods of the classes to just what I deem necessary and no more. I can always write new methods if I need them. Paul -- Paul M. Foster http://noferblatz.com http:/

Re: [PHP] Entry point of an MVC framework

2012-07-12 Thread Paul M Foster
ing to store data on butterflies is exceptionally difficult. You really want to isolate that in your models. Fortunately, the herding_cats design pattern works equally well with butterflies. (Welcome to Friday, half a day early! ;-) Paul -- Paul M. Foster http://noferblatz.com http://quillandm

Re: [PHP] Entry point of an MVC framework

2012-07-12 Thread Paul M Foster
eep open on your desktop all day. I prefer to develop shallow classes which deal with specific aspects of page handling (dates, databases, encryption, users, etc.). Then use those as part of the "toolkit", assembled (again on a shallow basis) in a loosely MVC pattern. If I make a mistake, I shou

Re: [PHP] Entry point of an MVC framework

2012-07-12 Thread Paul M Foster
by those who believe there's such a mythical beast as "pretty URLs" preferred by search engines (there isn't). It requires the use of .htaccess files and Apache's mod_rewrite, which you may not have in a shared hosting environment. Hopefully that helps. Paul -- Paul M.

[PHP] Can I do this in a single match/replace?

2012-06-27 Thread Paul Halliday
in/view/Main/2002068 now what I would like to do is replace inline adding "http://"; . $matches[n] . ">" . $matches[n] . "" Can this be done or do I need to say loop through matches (there can be none or many) and do a str_replace. Thoughts? Other ideas? Thanks.

Re: [PHP] Re: php form action breaks script

2012-06-14 Thread Paul Halliday
oing on. But I'd appreciate any advice you may have. >> >> >> Best, >> tim >> > If you check your apache log you'll probably see an error message. But the > problem seems to be that your string you are trying to echo is enclosed in > single quotes

Re: [PHP] disabled cookies

2012-06-04 Thread Paul M Foster
27;m not sure I could take less-than-bright government bureaucrats telling me how to do the job of programming. No offense, Ash, but you can keep your parliament. 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] Open Call: Official PHP Mirror

2012-06-02 Thread Paul M Foster
x27;re applying, shared hosting clients, Droids, > Borg, Klingons, Romulans, toddlers, and the gum disease known as > "gingivitis." There I was, ready to volunteer, until I saw "Romulans". Geez, a few bad apples spoiling it for the rest of us. Crap. ;-} Paul -- Paul M. Fost

Re: [PHP] Happy Diamond Jubilee everyone!

2012-06-01 Thread Paul M Foster
guys all have a great weekend, more so if you're > unlucky enough to be working over the whole 4 days :-/ *Very* nice work! 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: Function size

2012-05-30 Thread Paul M Foster
that other function was *actually* doing. Rule: NEVER assume you know what a function is doing by looking at its name. ALWAYS satisfy yourself that you know what a function is doing by *looking* at what it's doing. 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: Function size

2012-05-30 Thread Paul M Foster
On Tue, May 29, 2012 at 11:40:25PM +0200, Matijn Woudt wrote: [snip] > On Tue, May 29, 2012 at 11:06 PM, Paul M Foster > wrote: [snip] > > > > I think a lot of coders try to be kewler than the next 18 guys who are > > gonna have to look at the code, so they u

Re: [PHP] Function size

2012-05-29 Thread Paul M Foster
to, say, APL or Lisp/Scheme. And to some extent they model how most people (programmers) would naturally approach the solution of programming problems. (Of course, there are always the oddballs like me who still prefer reverse polish notation on our calculators. Go figure.) 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: Function size

2012-05-29 Thread Paul M Foster
is much worse than > having more than 20 lines in a function. I think a lot of coders try to be kewler than the next 18 guys who are gonna have to look at the code, so they use a lot of "compression" techniques to reduce LOC. Plus, they're lazy. I'd rather see everything wi

Re: [PHP] PHP: a fractal of bad design

2012-04-11 Thread Paul M Foster
omplete for Javascript. 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] Need PHP & Web Developer in So Cal

2012-03-28 Thread Paul Scott
ot; Am I right? Yeah, I know I am... ;) - -- - -- Paul http://www.paulscott.za.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPczphAAoJEP24vLf5r1PRd6IH/3tLKoRDrL

Re: [PHP] Critical Error

2012-03-28 Thread Paul Scott
tabase table that already exists, for the primary key field (look at ID or something like that) This is a MySQL problem more than a PHP one, but there you go (I have been largely absent from this list for a long time, so starting off slowly again) ... - -- - -- Paul http://www.paulscott

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-13 Thread Paul M Foster
On Mon, Feb 13, 2012 at 09:01:03AM +0100, Simon Schick wrote: > Hi, Paul > > I personally pretty much like the idea of auto-loaders, but that's a > personal point of view. > If you have always develop with scripts having autoloaders you'll hate to > write a *

Re: [PHP] Swiftlet is quite possibly the smallest MVC framework you'll ever use.

2012-02-12 Thread Paul M Foster
he current file depends. It sort of obviates the autoloader stuff, but I'd rather do that than spend hours trying to track down which file in which directory contains the class which paints the screen blue or whatever. (Yes, I'm aware that require_once() introduces some latency.) Just some

Re: Re: Re: [PHP] What's Your Favorite Design Pattern?

2012-02-08 Thread Paul M Foster
gone along to > look into XNS). I remember working for Xerox (copy center employee) around that time, and seeing all kinds of talk in the company materials about *Ethernet*. They explained the basic protocol and compared it to token ring, and I just thought, "Hmm, yes, that se

Re: Re: [PHP] What's Your Favorite Design Pattern?

2012-02-07 Thread Paul M Foster
seudocode about how it might be constructed. I imagine the authors looked at a lot of code and discovered that programmers were coming up with code that, in each case was remarkably similar for solving certain types of programming problems. So they codified what that found and wrote a book about it. I have

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Paul M Foster
uld prefer to have the trailing comma... I just can't believe I > have avoided using it for all these years. > > Thanks! > Micky I've always avoided trailing array commas, but only because I was under the impression that leaving one there would append a blank array member

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Paul M Foster
On Mon, Feb 06, 2012 at 09:01:45PM +, Stuart Dallas wrote: > On 6 Feb 2012, at 05:58, 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: > > There are simula

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

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

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

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] Need Part-time Coder

2011-12-27 Thread Paul Halliday
;hello world"; >> ?> >> >> Reply to list with a few more details for a more detailed reply ;) >> >> > -- Paul Halliday http://www.squertproject.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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] news and article posts in one table

2011-11-26 Thread Paul M Foster
how this is done. They > store posts, pages, and attachments in a single table this way. I can't > say if this is a better arrangement than keeping them in separate > tables.) I've had to hack this table. It's a prime example of bad design. Take a long look at the records of

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

[PHP] Re: mysql_fetch_array() vs mysql_fetch_assoc() WAS: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Paul Halliday
On Fri, Oct 28, 2011 at 7:19 PM, Daniel Brown wrote: > On Fri, Oct 28, 2011 at 18:13, Paul Halliday wrote: >> >> Whats the difference between fetch_assoc and fetch_row? >> >> I use: >> while ($row = mysql_fetch_row($theQuery)) { >>    doCartwheel; >&g

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Paul Halliday
On Fri, Oct 28, 2011 at 1:38 PM, Jim Long wrote: > I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. > > The script below is designed to be able to WHILE it's way through > a MySQL query result set, and process each row. > > However, it runs out of memory a little after a quarter million > r

[PHP] What is wrong with this preg_match?

2011-10-27 Thread Paul Halliday
27;Y-m-d'); } When I run it: $ ./process_patches.php 201-01-01 Usage: ./process_patches.php patches@innm2 ~/Code/Oculi $ ./process_patches.php 2011-011-01 Usage: ./process_patches.php patches@innm2 ~/Code/Oculi $ ./process_patches.php 2011-01-011 Works.. What am I doing wrong?

[PHP] Seâd - Contract Developer Contracts Available in Auckland and Hamilton - New Zealand

2011-10-12 Thread Paul Jenkins
ll 09 3772047 / 027 7413905 Initial contract will be 3-6 months and should extend past this. Rates are negotiable based on experience. Starting ASAP. Paul Jenkins Account Manager Seâd Ltd www.sead.co.nz<http://www.google.com/url?sa=D&q=www.sead.co.nz&usg=AFQjCNFhdcBG7RRkeF_LbvEh2e1joJvRt

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] 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] 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] Any free online tests to test my PHP knowledge?

2011-09-22 Thread Paul Halliday
On Thu, Sep 22, 2011 at 6:44 PM, Paul M Foster wrote: > On Thu, Sep 22, 2011 at 11:53:54AM -0600, Mike Hansen wrote: > >> Does anyone know of a site that has an online test of PHP skills? >> I'd like to review my PHP knowledge. >> >> I've already run a

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] What determines your use of the type of DB framework/abstract?

2011-09-22 Thread Paul M Foster
to use MySQL. So having the same interface for both (for the most part) eases the work. As for ORMs, I'm old skool; my preference is to use straight SQL where possible. I think it makes you think more carefully about your database structure and the type of queries you do. And sooner or later,

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] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 13:42, Richard Quadling wrote: On 7 September 2011 12:32, Paul Waring wrote: On 07/09/11 12:16, Richard Quadling wrote: On 7 September 2011 11:20, Paul Waringwrote: Can anyone suggest things which I could try? I cannot work out why this problem is happening for some users

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 12:16, Richard Quadling wrote: On 7 September 2011 11:20, Paul Waring wrote: Can anyone suggest things which I could try? I cannot work out why this problem is happening for some users but not me. For browsers/extensions that do automatic read ahead (I load page A and linked

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 12:20, vikash.i...@gmail.com wrote: Just confirm once that you are not calling session_destroy somewhere. The only place session_destroy is called is in the logout function, which itself is only called if a user clicks the logout link. -- Paul Waring http

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
ous logins. -- Paul Waring http://www.phpdeveloper.org.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
On 07/09/11 11:47, Nilesh Govindarajan wrote: On 09/07/2011 03:50 PM, Paul Waring wrote: I'm having trouble with a PHP website which requires users to be logged in to access all content other than the home page and a couple of static pages (about us, contact us etc.). Several users have

[PHP] PHP sessions expiring early

2011-09-07 Thread Paul Waring
s permission to write to the save_path directory, and I can see session files being created. 5. No output buffering functions are being used. Can anyone suggest things which I could try? I cannot work out why this problem is happening for some users but not me. Thanks in advance. Paul -

  1   2   3   4   5   6   7   8   9   10   >