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
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
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:
> >
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
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
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
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.
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
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
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
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
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:/
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
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
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
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
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
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
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
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
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
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
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
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
) 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
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
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
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
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
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
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
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
-
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
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
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
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
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
> 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
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
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
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
}
>> echo "";
>> echo "";
>> echo "";
>> echo 'back';
>> echo "";
>> echo "";
>>
>> This solution was the bes
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
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
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
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
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
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
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
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
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
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.
> >
>
>
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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 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
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
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
. 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
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
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
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
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
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
, 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
>
> 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
;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
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=&
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
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
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
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
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
>>
. 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
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
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
;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
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
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
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
? 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://
401 - 500 of 706 matches
Mail list logo