Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 09:16:30AM -0700, Mattias Thorslund wrote: > Paul M Foster wrote: >> I process a lot of CSV files, and what I typically see is that Excel >> will enclose fields which might contain commas in quotes. This gets >> messy. So I finally wrote a C utility

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 04:15:33PM +, Ashley Sheridan wrote: > On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote: > > On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote: > > > > > > > Personally, I find working with fixed

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 05:00:24PM +, Ashley Sheridan wrote: > On Thu, 2010-03-18 at 12:57 -0400, Paul M Foster wrote: > > On Thu, Mar 18, 2010 at 04:15:33PM +, Ashley Sheridan wrote: > > > On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote: > >

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

2010-03-19 Thread Paul M Foster
nks, > Ash > http://www.ashleysheridan.co.uk > > I would suggest instead the built-in PDO module for PHP. This is generic, and suitable for several DBMS back-ends. But any direct queries using features unique to a specific DBMS (like Ash's "last inserted id") will have to be coded specifically for your back-end. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-19 Thread Paul M Foster
Post Office itself. Fascinating, huh? ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-19 Thread Paul M Foster
o conform to what the Post Office wants them to look like, including adding correct ZIP codes where possible. There is an additional kind of software, called PAVE software, which sorts mailing lists into proper groupings for simple delivery by the Post Office. Paul -- Paul M. Foster -- PH

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

2010-03-20 Thread Paul M Foster
On Fri, Mar 19, 2010 at 02:01:03PM -0700, Michael A. Peters wrote: > > I use MDB2. > I hear PDO hyped a lot, what does it really give me that MDB2 does not, > other than making the application dependent upon a binary module? Maybe nothing. But PDO is built-in and MDB2 isn't.

Re: [PHP] Code samples in OOo Presenter

2010-03-21 Thread Paul M Foster
tion.highlight-string.php http://us2.php.net/manual/en/function.highlight-file.php There is also code there to provide line numbers, which would be very useful for presentations. There are some hints about how you might change the colors. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Paul M Foster
the key. You can do anything you want inside __autoload(). If you must consult something in the environment, there are a couple of ways to do it. First, set a variable in the $_SESSION array, and consult it in __autoload(). Second, use a configuration file for your application. Have it in a stable pla

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

2010-03-23 Thread Paul M Foster
wser software were ever designed primarily with speed in mind. The internet is not your local 64-bit 10 gigabyte memory loaded machine. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2010-03-24 Thread Paul M Foster
o see it ended sometime this century, stop replying to him (in this and his other thread) and let him go bother the PHP developers, or use some other language. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread Paul M Foster
On Thu, Mar 25, 2010 at 12:22:31PM -0400, tedd wrote: > At 6:34 PM -0700 3/24/10, Daevid Vincent wrote: > -snip- > > You didn't used to be so difficult, what changed? Oh no, he gets testy from time to time. Paul -- Paul M. Foster -- PHP General Mailing List (http:/

Re: [PHP] Authorize.net test

2010-03-25 Thread Paul M Foster
R Last time I encountered an error like this with an e-gateway, the problem was that, despite what I thought, the account was actually inactive. It wasn't authorize.net, but I'm betting that your gateway ID and password are fine, just like mine were. I had to call them to find out the account w

Re: [PHP] Server-side postscript-to-PDF on-the-fly conversion

2010-03-28 Thread Paul M Foster
n on all *nix boxes. That's why MacOS includes it. And if your hosting platform is Linux, it's probably there as well. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using UID in DB

2010-03-30 Thread Paul M Foster
mail address which is varchar(255), username which is varchar(50) and a password which is varchar(32) and stored encrypted. There are other related tables I use to record which URLs require security and which users have access to those URLs. Paul -- Paul M. Foster -- PHP General Mail

Re: [PHP] using UID in DB

2010-03-30 Thread Paul M Foster
On Tue, Mar 30, 2010 at 02:18:53PM -0700, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 2:04 PM, Paul M Foster > wrote: > > On Tue, Mar 30, 2010 at 01:36:27PM -0700, Tommy Pham wrote: > > > >> Hi, > >> > >> I'm just wondering if anyone on this li

Re: [PHP] using UID in DB

2010-03-30 Thread Paul M Foster
On Tue, Mar 30, 2010 at 08:07:01PM -0700, Tommy Pham wrote: > On Tue, Mar 30, 2010 at 7:37 PM, Paul M Foster > wrote: > > > > Unless you have some compelling need to store a number like this, I > > don't see the need to. What I store is what is called in PostgreSQ

[PHP] File encryption under PHP

2010-04-01 Thread Paul M Foster
Folks: If I wanted to encrypt a file in PHP and then write it out to disk (one-way encryption, requiring a password), what PHP built-ins might you recommend to encrypt the contents of the file before writing it out to disk? Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] File encryption under PHP

2010-04-01 Thread Paul M Foster
On Thu, Apr 01, 2010 at 08:45:53PM +0100, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 15:47 -0400, Paul M Foster wrote: > > Folks: > > If I wanted to encrypt a file in PHP and then write it out to disk > (one-way encryption, requiring a password), what PHP b

Re: [PHP] Constructor usage

2010-04-04 Thread Paul M Foster
ed so that the requisite objects are passed to the constructor (the simplest way). Each class which is managed by the DII is registered first, with whatever parameter or object dependencies needed. Then the DII's "instantiate()" method is called as needed for each object. The DII class handle

Re: [PHP] Updating HTML on page

2010-04-05 Thread Paul M Foster
for whatever contents you want. The Javascript to do this is beyond the scope of this list (it's a PHP list, after all). The "process" script doesn't have to be PHP. It could be any language you prefer, as long as you can get it to return JSON or XML to page.php, so that the J

Re: [PHP] Who uses Mantis, please help!

2010-04-07 Thread Paul M Foster
es are set correctly (all the > checkboxes are checked). > Could you help me please? > Thanks! Isn't there a Mantis list or forum? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Paul M Foster
elements in the final array, won't they overwrite each other? I was under the impression that a *numerically* indexed array has a constraint that the numeric indexes be unique, if not contiguous. Am I wrong? If so, please provide a reference. Or are those "numbers" really strings? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little php code - error

2010-04-08 Thread Paul M Foster
more statements > } > } > } > > Yes, it takes up a lot more lines, but a few line break characters > aren't going to impact on the size of the file, and all the while it's > very easy to read. If you've accidentally missed out a closing brace

Re: [PHP] Inserting into multiple tables

2010-04-11 Thread Paul M Foster
) is queries on those multiple tables. Insertions are considered elementary, and they are typically done one table at a time. You'll notice the syntax for queries is considerably more complex than that for inserts, because the task is more complex. Paul -- Paul M. Foster -- PHP General Mailin

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Paul M Foster
orry, I just get cranky with people who won't follow the rules. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Saving form data into session before leaving a page

2010-04-13 Thread Paul M Foster
On Tue, Apr 13, 2010 at 12:36:02PM -0400, Dan Joseph wrote: > I kinda like that word Paradigm. Rolls off the tongue nicely. I'm going to > use it 3 times today before I leave the office. ROTFL! Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Basic switch statement

2010-04-14 Thread Paul M Foster
over my shoulder, and I agonized for years over whether my logical solutions were the "best" approach. Now I just code and take pride in the fact that I can understand what I did later (mostly). Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic switch statement

2010-04-14 Thread Paul M Foster
On Wed, Apr 14, 2010 at 10:06:39PM +0100, Ashley Sheridan wrote: > On Wed, 2010-04-14 at 16:52 -0400, Paul M Foster wrote: > > > I've never had other coders looking over my shoulder, and I agonized for > years over whether my logical solutions were the "be

Re: [PHP] Date Math

2010-04-20 Thread Paul M Foster
th might > come into play. My code above is submitted because I don't like doing calculations with seconds. Tedd's right, the OP's questions can't be answered precisely because months vary in number of days. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to enable mail function with postfix supported.

2010-04-20 Thread Paul M Foster
rly. That said, what do you mean by, "can't work normally"? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Structured PHP studying

2010-04-23 Thread Paul M Foster
s I said, look over the books themselves.) Most/all of this information can be obtained from the php.net site. Ashley's suggestion of coding a project is an outstanding idea. Coding is a practical art, and requires practical application to be worth anything. Paul -- Paul M. Foster -

[PHP] copy() method on objects

2010-04-25 Thread Paul M Foster
ke this, I supply $a's class with a copy() method, and call it like this: $b = $a->copy(); Is this reasonable, or do people have a better/more correct way to do this? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
m and up to the programmer or admin to repair. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: > On 27 April 2010 15:36, Paul M Foster wrote: > > On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote: > > > >> How do you guys handle errors during, say, db insertions. > >> > >> Let&#

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote: > On 27 April 2010 16:07, Paul M Foster wrote: > > On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote: > > > >> On 27 April 2010 15:36, Paul M Foster wrote: > >> > On Tue, Apr 27, 20

Re: [PHP] Error handling strategies (db related)

2010-04-27 Thread Paul M Foster
mpany, we deal with a lot of doctors. For us, that means chiropractors, dentists, veterinarians, optomotrists and the like. Who we don't deal with is doctors of the MD variety. They are way too arrogant, and their staffs typically back that claim up. The few times we've dealt with them, it's always been a disaster. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto indentation

2010-04-27 Thread Paul M Foster
> 3. profit! +1 for vim I use a limited number of "g" commands, like gg, G and gwap, but I use them rotely; I've never understood the variations. Can you point me to some sort of tutorial on these? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto indentation

2010-04-27 Thread Paul M Foster
ugh and doesn't yet support PHP 5.3 > > syntax, but it's still the best I've found. > > I haven't tried this one. I am just so stuck on Kate. I've tried a ton of > editors and Kate is simply the best one for me hands down. I have to say, back in the day when I used a GUI editor, Kate was the best I found. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auto indentation

2010-04-28 Thread Paul M Foster
s out, it's saved me a lot of debug time. When the indenting goes wonky in vim, I know I've failed to close a brace somewhere, or put too many in. It has about the same benefit to me as syntax highlighting (which ensures I don't misspell key words). Paul -- Paul M. Foster -- PHP Gener

Re: [PHP] Security/Development Question

2010-04-28 Thread Paul M Foster
ve > Holy crap! There's a very good reason why your security application is blocking their software. You have no control over these SQL strings, and injection could occur if only by accident if you're not in control of them. The only thing I can imagine worse than passing a SQL quer

Re: [PHP] Two color rows in table inside while iteration

2010-04-30 Thread Paul M Foster
} >> echo ""; >> echo ""; >> echo ""; >> echo 'back'; >> echo ""; >> echo ""; >> >> This solution was the bes

Re: [PHP] Getting root privs

2010-04-30 Thread Paul M Foster
t safer then giving > root access >> via PHP... :) >> > > Hmm that's a great idea. But my question is in general, suppose I get > some freelance job to write a control panel for managing httpd, etc. > > Same procedure can be used ? I think so ? If you

Re: [PHP] Two color rows in table inside while iteration

2010-05-01 Thread Paul M Foster
On Fri, Apr 30, 2010 at 01:52:25PM -0400, tedd wrote: > At 10:34 AM -0400 4/30/10, Paul M Foster wrote: >> On Thu, Apr 29, 2010 at 05:34:38PM -0400, tedd wrote: >> >> > Please critically review my example. >> >> +1 >> >> This thread came up b

Re: [PHP] Need login suggestions

2010-05-02 Thread Paul M Foster
gistrant was what they claimed to be. You'd give them a page where the queued registration attempts would show up. And they would check the proper box for each potential registrant. Once done, the registration would be completed, and in the proper category. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find my error

2010-05-05 Thread Paul M Foster
ou Ashley, I should have asked you 3 hours ago. ;-) Yeah, David, the rest of us are really disappointed in you. I mean, it's not like that's ever happened to *us*. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find my error

2010-05-06 Thread Paul M Foster
ones who helped me figure this one out will find > the humor > in that one. :-) Reminds me of a movie. And from that same movie, "You've got red on you". ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find my error

2010-05-07 Thread Paul M Foster
On Fri, May 07, 2010 at 06:23:35AM -0400, David McGlone wrote: > On Friday 07 May 2010 00:42:38 Paul M Foster wrote: > > On Thu, May 06, 2010 at 10:45:09PM -0400, David McGlone wrote: > > > > > > > > > I got sortof a joke I thought about a little whi

Re: [PHP] Re: PHP Application Structre

2010-05-10 Thread Paul M Foster
s rather than a huge amount of stuff that it doesn't. +1 This is a deficiency of a lot of frameworks. By the time you display the first byte to the browser, you've loaded 150K of code, only 20K of which do you actually need for *this* page. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Application Structre

2010-05-10 Thread Paul M Foster
ers, who will then mark it up for PHP. After that, the designers can stay away from it. Disadvantage: You're adding another layer (and a LOT of code) just to save yourself some typing. With straight PHP, the server reads the code, interprets the PHP, substitutes values and shoves the page down to

Re: [PHP] Re: PHP Application Structre

2010-05-10 Thread Paul M Foster
On Mon, May 10, 2010 at 11:37:21PM -0400, Robert Cummings wrote: > Paul M Foster wrote: >> >> Lots of people use templating systems and particularly Smarty. Here's >> the difference between a templating system and just hand-coding: >> >> Hand c

Re: [PHP] PHP Application Structre

2010-05-12 Thread Paul M Foster
7;t you just use a > > FORCETYPE directive on your handler script(s)? > > > > I've certainly got some work in the form: > > > > somesite.com/scriptname/var1/var2/var3 > > > > that seems to work well with no use of the rewrite module. > > > >

Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Paul M Foster
putting that on the side right now. I think the docs are still screwed up. Try sqlite3_open() instead and see if that works. Also, check phpinfo() to see if the SQLite/SQLite3 modules are loaded. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Looking for PHP/Solr developer

2010-05-26 Thread Paul M Foster
evelopers can only apply if their qualifications match your job > requirements, so you will not be flooded of resumes of unqualified people. > > http://www.phpclasses.org/jobs/ Or perhaps http://phpbuilder.justtechjobs.com/ Note: I have no personal or financial connection to phpbuilde

[PHP] Credit Card encryption

2010-05-29 Thread Paul M Foster
ypt all the credit card numbers using the new "password" every few months or when you fire someone who had access to the data. This seems like an excessively cumbersome solution. Is this seriously the way it's done? Does anyone have a better solution? Paul -- Paul M. Foster -- P

Re: [PHP] Credit Card encryption

2010-05-30 Thread Paul M Foster
On Sun, May 30, 2010 at 03:12:10AM -0400, Adam Richardson wrote: > On Sun, May 30, 2010 at 2:16 AM, Ashley Sheridan > wrote: > > > On Sun, 2010-05-30 at 01:49 -0400, Paul M Foster wrote: > > > > Hi Paul, > > When you describe one-way or two-way encryption

Re: [PHP] Credit Card encryption

2010-05-30 Thread Paul M Foster
an to have a separate key or password for accessing just these credit card numbers, and every time they must be accessed, the user must provide this key, which would be in addition to the usual password for that user. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Credit Card encryption

2010-05-30 Thread Paul M Foster
On Sun, May 30, 2010 at 10:50:05AM -0400, tedd wrote: > At 12:43 PM +0200 5/30/10, Peter Lind wrote: >>> On 30 May 2010 07:49, Paul M Foster wrote: >>> -snip- >>> >>> Does anyone have a better solution? >> >> I'm sorry if the following s

Re: [PHP] Credit Card encryption

2010-05-31 Thread Paul M Foster
On Mon, May 31, 2010 at 12:36:55PM -0400, tedd wrote: > At 1:38 AM -0400 5/31/10, Paul M Foster wrote: >> On Sun, May 30, 2010 at 10:50:05AM -0400, tedd wrote: >> >> > Besides, most credit card processing agencies even require that you >>> use the customer'

Re: [PHP] Credit Card encryption

2010-05-31 Thread Paul M Foster
when I read your post, it appeared that you were making a blanket statement applicable under all conditions, to which I objected. However, reading back over it, you did insert qualifiers. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Credit Card encryption

2010-06-01 Thread Paul M Foster
his has to do with laws. It has more to do with the PSS and the rules of individual credit card companies (Visa, American Express, etc.). Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Credit Card encryption

2010-06-01 Thread Paul M Foster
On Tue, Jun 01, 2010 at 04:17:21PM +0200, Peter Lind wrote: > On 1 June 2010 15:58, Paul M Foster wrote: > > On Tue, Jun 01, 2010 at 09:52:54AM +0200, Peter Lind wrote: > > > >> Just wondering: seems there's a bit of a misunderstanding going on > >> here

Re: [PHP] Credit Card encryption

2010-06-01 Thread Paul M Foster
On Tue, Jun 01, 2010 at 10:42:11AM -0400, tedd wrote: > At 9:24 PM -0400 5/31/10, Paul M Foster wrote: >> On Mon, May 31, 2010 at 05:06:23PM -0400, tedd wrote: >> >>> At 12:36 PM -0400 5/31/10, I wrote: >>>> That's Okay, but I'm simply telling yo

php-general@lists.php.net

2010-06-04 Thread Paul M Foster
which_item = '4'. You might have code inside app.php which would look like the following: $type = $_GET['ph']; $id = $_GET['id']; if ($type == 'cus') show_customer_page($id); 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] image thumbnail from blob data

2010-06-06 Thread Paul M Foster
ay. It would be relatively simple to create a key-locaton table (using dbm or somesuch) and have all the actual "data" stored in files. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Limiting logins

2010-06-06 Thread Paul M Foster
e and in a cookie (with a time limit on it), logging all access attempts, and comparing the hash in the database with the cookie hash at each page access. Perhaps even generating a new hash at each page access. And even then Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Battle of Spam

2010-06-07 Thread Paul M Foster
tle short of this will stop bot spam. You could sanitize form values and reject spam-like forms, but that's complicated and error-prone. CAPTCHA is simpler. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Battle of Spam

2010-06-07 Thread Paul M Foster
ion. One other piece of information maybe you left out. You say there are many admins of many sites on this box. Do you *work* for the company that owns or rents the box or something? Otherwise, other admins' scripts aren't your problem, just your scripts. Paul -- Paul M. Foster --

[PHP] Blowfish Encryption

2010-06-07 Thread Paul M Foster
hat the "initialization vector" is different between the two implementations, resulting in the difference between the encrypted files. For those who know more about encryption than I do, does that sound right? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blowfish Encryption

2010-06-07 Thread Paul M Foster
On Mon, Jun 07, 2010 at 11:59:14PM -0400, Adam Richardson wrote: > On Mon, Jun 7, 2010 at 11:20 PM, Paul M Foster > wrote: > > I've got a file of passwords I'd like to encrypt/decrypt using blowfish. > I'd > like to be able to do so with PHP a

Re: [PHP] array key's: which is correct?

2010-06-08 Thread Paul M Foster
cing the PHP interpreter to interpret the string "$i", looking for variables (like $i), and output whatever else is in the string (which in this case is nothing). Also, if $i is an integer, you have the same problem as above. In the first case, you get $array[7]. In the second case, you get $array['7']. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blowfish Encryption

2010-06-08 Thread Paul M Foster
sing ECB, the IV isn't used, so it wouldn't matter > (if you pass in an IV, it's just ignored.) > > The IV is used to make sure no two plaintexts will be represented by the same > cipher texts, and must be shared between those wishing to encrypt and decrypt > the message. Howe

Re: [PHP] array key's: which is correct?

2010-06-08 Thread Paul M Foster
ng literal strings of integers or manually converting a > string integer to a real integer or using floating point keys. Curse you, Rob Cummings! ;-} I was stunned at the results of this. I assumed that integers cast as strings would remain strings as indexes. Not so. And then float indexes cas

Re: [PHP] array key's: which is correct?

2010-06-08 Thread Paul M Foster
On Tue, Jun 08, 2010 at 04:44:53PM +0200, Peter Lind wrote: > On 8 June 2010 16:38, Ashley Sheridan wrote: > > On Tue, 2010-06-08 at 10:35 -0400, Paul M Foster wrote: > > > >> On Tue, Jun 08, 2010 at 09:38:58AM -0400, Robert Cummings wrote: > >> >

Re: [PHP] Question - foreach.

2010-06-10 Thread Paul M Foster
re full of exactly this type of thing. And I have to agree. I can't count the number of questions I *haven't* asked on this list, because I built a page to test a particular concept. And this sort of activity (as opposed to just reading about something) really locks in your understanding of a concept. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question - foreach.

2010-06-10 Thread Paul M Foster
On Thu, Jun 10, 2010 at 11:16:08AM -0400, tedd wrote: > At 9:32 AM -0400 6/10/10, Paul M Foster wrote: >> On Thu, Jun 10, 2010 at 07:03:28AM -0400, tedd wrote: >> >> > This is one of those questions that you can test very easily, just >>> initialize an array a

Re: [PHP] is

2010-06-12 Thread Paul M Foster
the dot operator used this way was a mistake for PHP. Not using the dot operator to mean "concatenate" would mean we could use it to replace the accursed '->' for class/method selection. And the plus operator is obviously a more natural fit for string concatenation. And yes

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

2010-06-14 Thread Paul M Foster
. You can also have a pick list on the form which details which person you'd like the form to be sent to. In general, on contact forms or "about us" pages, I include some physical address and possibly a phone number. This might satisfy Ash's requirement for "contact details". Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Warning messages on web page.

2010-06-22 Thread Paul M Foster
just before your errors pop up like: or or something similar. This will tell you if the variable is set and what type it has. I'm guessing it's not set. You'll have to look earlier to see where it should be built and isn't. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Invoice Software

2010-06-23 Thread Paul M Foster
I'd have to package it up for your use. But it'd be free and FOSS-licensed. (But check what's available first, because packaging it up for you would take some work.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Paul M Foster
list to "chat" with him. My evaluation is that Rampersad is a troll at best. He's being invited to my blacklist. I wouldn't pay attention to him. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Paul M Foster
On Mon, Jun 28, 2010 at 09:25:46AM -0400, Paul M Foster wrote: > On Mon, Jun 28, 2010 at 01:53:47PM +0100, Richard Quadling wrote: > > > On 28 June 2010 13:44, Brandon Rampersad wrote: > > > fuck no > > > > > > On Mon, Jun 28, 2010 at 8:2

Re: [PHP] last modified on a page

2010-06-29 Thread Paul M Foster
e I >> get this page was last modified and today's date. >> Thanks. >> Dave. > > Dave: > > A bit late but try this: > > echo "Last modified: " . date ("F d Y H:i:s.", getlastmod()); > ?> Wha--? I never heard of that function befo

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Paul M Foster
, frame, img) in XHTML1 > and will be removed in XHTML2 (which we'll likely never see used in > browsers). See http://www.w3.org/TR/xhtml1/#h-4.10 All this is fortunate, since I don't think PHP is even aware of the ID attribute. Imagine trying to process form fields without the &qu

Re: [PHP] NULL Date Entries...

2010-07-01 Thread Paul M Foster
> > However, checking to ensure the date is indeed valid and not something > like 31st February is a good idea I agree! :) Wait-- there's not a 31st of February? When did they change that? ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] HTML in emails

2010-07-04 Thread Paul M Foster
;t stop people from using Excel to keep their mailing lists. Of course, opinions like mine won't stop the merging of browsing and reading email. Ah well. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form validation and error display

2010-07-04 Thread Paul M Foster
s for you. You have to actually set up each option with an either/or choice, like this: > - Meeting - Since doing this is pretty tedious, I use a function here instead: function set_selected($fieldname, $value) { if ($_POST[$fieldname] == $value) echo 'selected=&

Re: [PHP] HTML in emails

2010-07-04 Thread Paul M Foster
I don't really watch these things since I use Linux and view mail as straight text. But isn't there some current exploit where images which can be downloaded as part of an email actually contain code which can be used to sniff your system or somesuch? Paul -- Paul M. Foster -- PHP G

Re: [PHP] HTML in emails

2010-07-06 Thread Paul M Foster
On Tue, Jul 06, 2010 at 06:32:40PM +0200, Per Jessen wrote: > Paul M Foster wrote: > > > Here is the real problem with HTML email. Any straight text message > > will swell to many times its size when you HTML-ize it. Okay, so now > > you're sending the message a

Re: [PHP] Multiple Access Question

2010-07-07 Thread Paul M Foster
ests, which is one of the advantages of a client-server DBMS. So maybe I don't understand your question. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Access Question

2010-07-07 Thread Paul M Foster
On Wed, Jul 07, 2010 at 10:01:05PM -0400, Bastien Koert wrote: > On Wed, Jul 7, 2010 at 8:47 PM, Paul M Foster > wrote: > > On Wed, Jul 07, 2010 at 12:59:30PM -0400, tedd wrote: > > > >> Hi gang: > >> > >> I have *my way* of handling this problem, but

Re: [PHP] Multiple Access Question

2010-07-07 Thread Paul M Foster
On Wed, Jul 07, 2010 at 11:28:56PM -0400, Robert Cummings wrote: > Paul M Foster wrote: >>> @Paul, >>> >>> The OPs question is about concurrency on the record itself. How to >>> avoid two users accessing the same record and potentially damaging >>

Re: [PHP] State and City Database

2010-07-09 Thread Paul M Foster
. They don't drop down long enough for me to select anything else. Zip drop down appears to work okay. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serial Numbers

2010-07-12 Thread Paul M Foster
Doing this in a PDF is pretty easy. Check out the FPDF library. It's pretty lightweight. I print invoices to PDF all the time, so I have to insert numbers into PDFs created by FPDF. Check the documentation. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] How to alter the schema of a database to introduce new features or change the current features

2010-07-14 Thread Paul M Foster
I always create a script which will build the tables I need. If, for some crazy reason, I do have to restart from scratch, it's a simple matter to alter that script and re-run it. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user login and access + headers already sent

2010-07-15 Thread Paul M Foster
;view" file, which is unique for this page. It should contain all the HTML code outside the actual template. In this file, make whatever PHP code limited to echoing values and loops. The values displayed, etc., are formulated in the original PHP file. That's one way to do it. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recent Influx of Unrelated Discussions

2010-07-16 Thread Paul M Foster
that the list administrator plays a tremendous role in the tone of a list. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] functions and global variables

2010-07-18 Thread Paul M Foster
function. Variables declared inside a function are visible only within that function. To use a "global" variable inside a function, you must declare it global, as: global $globalvar; Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Query Puzzle

2010-07-18 Thread Paul M Foster
licates. Then loop through the rows one at a time in PHP, checking the contents of that column against the last iteration. If they are the same, issue a DELETE command in MySQL. Continue the loop until all rows are exhausted. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] opening link in new window

2010-07-23 Thread Paul M Foster
? Failing that, and not > really wanting to go there, would javascript work for this? > Thanks. > Dave. I take it a new window is not part of the xhtml 1.0 strict dtd? Because I recently solved this problem using the above syntax. Paul -- Paul M. Foster -- PHP General Mailing List (http://

<    1   2   3   4   5   6   7   8   >