php-general Digest 27 Apr 2008 09:49:28 -0000 Issue 5427

Topics (messages 273630 through 273632):

Re: peer review (was php framework vs just php?)
        273630 by: Nathan Nobbe
        273631 by: Bastien Koert

IMAP errors
        273632 by: Naz Gassiep

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Sat, Apr 26, 2008 at 2:59 AM, Jason Norwood-Young <
[EMAIL PROTECTED]> wrote:

>
> On Fri, 2008-04-25 at 17:32 -0500, Jay Blanchard wrote:
> > [snip]
> > I can't say I've ever had a form that exactly matched a database table
> > for a user perspective. From an admin perspective that changes, but that
> > was when I downloaded PHPMyAdmin for the client. It was amazing, every
> > form matched the database table and you could view all the rows too, and
> > even create your own queries.
> >
> > Table discovery is something I use for marshalling data back and forth
> > from database tables, but not usually for presenting a user form.
> > [/snip]
> >
> > That is why there is code to exclude columns from the form and
> > essentially the group of functions pretty much does what phpmyadmin
> > does. Handling multiple tables in one form of course is a different
> > story.
> >
>
> Actually it's quite easy. I've got a similar object to the one you guys
> described (can't really share it - I'm on salary so technically it
> belongs to my boss.) Anyhow when I do my table layout, if there's a
> look-up, I name the field "lookuptable_id" in the DB. In my object, it
> looks for any field ending in "_id" (or whatever you specify to the
> object - "_id" is just the default) and it creates a drop-down of the
> options.
>
> The object also takes an array of ignore_fields, hidden_fields (good for
> ID's on updates), friendlynames (you don't always want to use the
> fieldname in the database, but anyhow the object replaces underscores
> and capitalises), and a bunch of other customising array properties with
> useful defaults. It also detects whether this is an insert or update and
> knows how to route the action, and has support for file uploads (and
> customises the enctype of the form for that).
>
> So basically you can have a very nice form, customised, with one or two
> lines of code to draw the form, as long as you design your object and DB
> well.


im just curious, has anyone here heard of like, templates ??  personally, i
really dont like mashing a ton of different layers all into a single piece
of code, hit the database, do some logic, render the page....
those things are supposed to be separate ;)  code igniter might not be the
best framework in the world, but at least its got the basics covered.  if
you build a few of the obvious views, select w/ variable number of options,
inputs, tables...  well it works out quite nicely and the code is all
separated, as it should be.

-nathan

--- End Message ---
--- Begin Message ---
On 4/26/08, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Wow, that's umm hideous.
>
> Cheers,
> Rob.
>
>
>
> yep, but i did say it was old
>
> --
>
> Bastien
>
> Cat, the other other white meat

--- End Message ---
--- Begin Message --- I'm using PHP's IMAP functions, and they seem to be working fine, however, on the page where I call imap_fetchstructure() I get a string of errors at the very end of the script. they do not occur at the point the function is executed, rather at the very end.

They do not specify where they actually occur, and I don't know what actually causes them. Can anyone shed some light on this for me? Here are the errors:

<p>
Notice: Unknown: Not an envelope:  NIL ("INLINE" ("FILENAME" "Testing attachments.eml")) NIL) 
"MIXED" ("BOUNDARY"  (errflg=1) in Unknown on line 0
</p><p>
Notice: Unknown: Not a string: ("INLINE" ("FILENAME" "Testing attachments.eml")) NIL) "MIXED" 
("BOUNDARY" "----- (errflg=1) in Unknown on line 0
</p><p>
Notice: Unknown: Junk at end of body part: "INLINE" ("FILENAME" "Testing attachments.eml")) NIL) 
"MIXED" ("BOUNDARY" "----- (errflg=1) in Unknown on line 0
</p><p>
Notice: Unknown: Unknown message property: NIL (errflg=1) in Unknown on line 0
</p><p>
Notice: Unknown: Unknown message property: "MIXED" (errflg=1) in Unknown on 
line 0
</p><p>
Notice: Unknown: Unknown message property: ("BOUNDARY" (errflg=1) in Unknown on 
line 0
</p><p>

Notice: Unknown: Unknown message property: 
"------------090601070107030107080000" (errflg=1) in Unknown on line 0
</p><p>
Notice: Unknown: Unknown message property: NIL (errflg=1) in Unknown on line 0
</p><p>
Notice: Unknown: Unknown message property: NIL (errflg=1) in Unknown on line 0
</p>



--- End Message ---

Reply via email to