NYCPHP Meetup

NYPHP.org

[nycphp-talk] gd not compiling/showing via php_info(

Rafi Sheikh Rafi.Sheikh at Ingenix.com
Mon Mar 1 18:54:52 EST 2004


I have done the following:
1. Moved php.ini from C:\WINNT\system32 to C:\php  (this is where php.exe is
and other directories for php)
2. modified extension_dir=C:\php  in php.ini
3. stopped and restarted apache, and pointed to php_info()
4. Verified that there is no php.ini in the C:\WINNT\system32

CURIOUS:
The following still show and I have tried to find where and why it is
pointing to these directories to no avail (sigh)
Following is after the changes as above were made:
Configuration File (php.ini) Path  C:\WINNT <<< I moved it here
c:\php\php.ini
include_path .;c:\php4\pear .;c:\php4\pear <<<I do NOT have this dir nor I
pointed to it
extension_dir c:\php4 c:\php4   <<<< I do not have a c:\php4 and I went thru
my php.ini I don't see it.

Thank you in advance, for your time. I do know that it is something very
basic and stupid that I am doing!

Rafi

-----Original Message-----
From: talk-request at lists.nyphp.org [mailto:talk-request at lists.nyphp.org]
Sent: Monday, March 01, 2004 5:32 PM
To: talk at lists.nyphp.org
Subject: talk Digest, Vol 10, Issue 2


Send talk mailing list submissions to
	talk at lists.nyphp.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.nyphp.org/mailman/listinfo/talk
or, via email, send a message with subject or body 'help' to
	talk-request at lists.nyphp.org

You can reach the person managing the list at
	talk-owner at lists.nyphp.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of talk digest..."


Today's Topics:

   1. Re: gd not compiling/showing via php_info() (Daniel Convissor)
   2. MVC Framework opinions (Eric Rank)
   3. Re: MVC Framework opinions (Allen Shaw)
   4. RE: talk Digest, Vol 10, Issue 1 (Rafi Sheikh)
   5. Re: MVC Framework opinions (Chris Hubbard)


----------------------------------------------------------------------

Message: 1
Date: Mon, 1 Mar 2004 17:37:12 -0500
From: Daniel Convissor <danielc at analysisandsolutions.com>
Subject: Re: [nycphp-talk] gd not compiling/showing via php_info()
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <20040301223711.GA20104 at panix.com>
Content-Type: text/plain; charset=us-ascii

On Mon, Mar 01, 2004 at 04:20:35PM -0600, Rafi Sheikh wrote:

> Configuration File (php.ini) Path at C:\WINNT 
> This is where I placed the php.ini

And what happens if you change some other setting in the ini file?  Do the 
changes get reflected in the phpinfo output?  For exmaple, change 
display_errors and see what happens.


> Someone said to copy all .dll and files
> under extensions to c:\winnt\sys32 also, which I did.  Was that an idiotic
> move?

Well, that's the "official" way to do it, but I think that it's idiotic.  
Just put the PHP directory and the php\dll directory in the system's PATH 
and you're good to go!

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

------------------------------

Message: 2
Date: Mon, 1 Mar 2004 16:48:56 -0600
From: "Eric Rank" <erank at isthmus.com>
Subject: [nycphp-talk] MVC Framework opinions
To: "NYPHP Talk" <talk at lists.nyphp.org>
Message-ID: <001b01c3ffdf$60fe1500$8b01a8c0 at DB>
Content-Type: text/plain;	charset="iso-8859-1"

I'm looking into using an Model View Controller framework to use as a base
to launch from in developing future projects in an efficient manner, and I'd
like some feedback from anyone who's used one. So I guess this question
splits into 2 threads.

First, what are the pro's and cons to using an established MVC framework in
general, as opposed to using other strategies to split up logic from
presentation? Smarty templates anyone?

Second, what frameworks have you used that you like / dislike? I'm currently
looking into Seagull, after having played with rolling my own for a bit.
Fusebox makes me itchy after briefly looking at the demos and files (the
potentially huge 'controller', and as irrational as it is, the heavy
reliance on passing 'action' variables in the url). I'm mostly looking for
speed, ease of development and deployment, and security.

Thoughts?


Eric Rank


------------------------------

Message: 3
Date: Mon, 1 Mar 2004 18:05:44 -0500
From: "Allen Shaw" <ashaw at iifwp.org>
Subject: Re: [nycphp-talk] MVC Framework opinions
To: "NYPHP Talk" <talk at lists.nyphp.org>
Message-ID: <00dc01c3ffe1$ba13cc50$6e01a8c0 at iifwp.local>
Content-Type: text/plain;	charset="iso-8859-1"

I'm using Smarty templates now for "my first big project," which is an
database that was basically ported to php/mysql from ms access.  We extend
Smarty with a custom class that runs a few extra things (checks permissions
for different templates and different data processing actions based on
login, etc.) and then uses Smarty to parse the templates.  It's great and
very flexible and allows my brain to keep thinking in terms of "data entry
form, module, etc." as I did with MS Access.

However I feel I honestly have not been able to do as good a job with
"splitting up logic from presentation" as I'd like to.  It's a judgement
call and a thread that comes up here and there on the Smarty forums: how
much do you have to / want to keep them separated?    Since I'm the only
developer on this team, I have, of course, both a lot of flexibility and a
lot of chances to write lazy code.

All in all, though, Smarty and our little extension of it, are serving me
well, and I think I probably am limited more by my own lack of programming
experience/discipline than by the framework itself.

- Allen

> First, what are the pro's and cons to using an established MVC framework
in
> general, as opposed to using other strategies to split up logic from
> presentation? Smarty templates anyone?

--
===========================================================
Allen Shaw                                  ashaw at iifwp.org
IIFWP Data and                           914.631.1331 x.106
    IT Services                        http://www.iifwp.org


------------------------------

Message: 4
Date: Mon, 1 Mar 2004 17:28:58 -0600 
From: Rafi Sheikh <Rafi.Sheikh at Ingenix.com>
Subject: [nycphp-talk] RE: talk Digest, Vol 10, Issue 1
To: "'talk at lists.nyphp.org'" <talk at lists.nyphp.org>
Message-ID:
	<C92A8F8B60F96B42911EFA70AF30A88F060A4474 at msp7-msx1.ingenix.com>
Content-Type: text/plain;	charset="iso-8859-1"

I have done the following:
1. Moved php.ini from C:\WINNT\system32 to C:\php  (this is where php.exe is
and other directories for php)
2. modified extension_dir=C:\php  in php.ini
3. stopped and restarted apache, and pointed to php_info()
4. Verified that there is no php.ini in the C:\WINNT\system32

CURIOUS:
The following still show and I have tried to find where and why it is
pointing to these directories to no avail (sigh)
Following is after the changes as above were made:
Configuration File (php.ini) Path  C:\WINNT <<< I moved it here
c:\php\php.ini
include_path .;c:\php4\pear .;c:\php4\pear <<<I do NOT have this dir nor I
pointed to it
extension_dir c:\php4 c:\php4   <<<< I do not have a c:\php4 and I went thru
my php.ini I don't see it.

Thank you in advance, for your time. I do know that it is something very
basic and stupid that I am doing!

Rafi
-----Original Message-----
From: talk-request at lists.nyphp.org [mailto:talk-request at lists.nyphp.org]
Sent: Monday, March 01, 2004 4:38 PM
To: talk at lists.nyphp.org
Subject: talk Digest, Vol 10, Issue 1


Send talk mailing list submissions to
	talk at lists.nyphp.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.nyphp.org/mailman/listinfo/talk
or, via email, send a message with subject or body 'help' to
	talk-request at lists.nyphp.org

You can reach the person managing the list at
	talk-owner at lists.nyphp.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of talk digest..."


Today's Topics:

   1. MYSQL Stop automatically (Kshitij Bedi)
   2. Re: MYSQL Stop automatically (Dan Cech)
   3. RE: MYSQL Stop automatically (Tim Gales)
   4. RE: MYSQL Stop automatically (Tim Gales)
   5. RE: MYSQL Stop automatically (Kshitij Bedi)
   6. RE: MYSQL Stop automatically (Tim Gales)
   7. Re: MYSQL Stop automatically (Dan Cech)
   8. RE: MYSQL Stop automatically (Kshitij Bedi)
   9. RE: MYSQL Stop automatically (Tim Gales)
  10. gd not compiling/showing via php_info() (Rafi Sheikh)
  11. RE: gd not compiling/showing via php_info() (Tim Gales)
  12. Re: gd not compiling/showing via php_info() (Daniel Convissor)
  13. gd not compiling/showing via php_info() (Rafi Sheikh)
  14. RE: gd not compiling/showing via php_info() (Tim Gales)


----------------------------------------------------------------------

Message: 1
Date: Mon, 1 Mar 2004 13:50:55 -0500 
From: Kshitij Bedi <Kbedi at inta.org>
Subject: [nycphp-talk] MYSQL Stop automatically
To: 'NYPHP Talk' <talk at lists.nyphp.org>
Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D73A7AF at intamail1.inta>
Content-Type: text/plain;	charset="iso-8859-1"

I just made a new MySQL installation on a windows 2000 server machine and it
keeps stopping by itself after I start it. Any ideas whats going wrong?

------------------------------

Message: 2
Date: Mon, 01 Mar 2004 13:53:20 -0500
From: Dan Cech <dcech at phpwerx.net>
Subject: Re: [nycphp-talk] MYSQL Stop automatically
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <404386A0.6080705 at phpwerx.net>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kshitij Bedi wrote:
> I just made a new MySQL installation on a windows 2000 server machine and
it
> keeps stopping by itself after I start it. Any ideas whats going wrong?

Check out your error logs, they are mysql.err and <hostname>.err in the 
data directory of your MySQL installation.

Dan


------------------------------

Message: 3
Date: Mon, 1 Mar 2004 13:53:21 -0500
From: "Tim Gales" <tgales at tgaconnect.com>
Subject: RE: [nycphp-talk] MYSQL Stop automatically
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <003f01c3ffbe$78d10820$e98d3818 at oberon1>
Content-Type: text/plain;	charset="US-ASCII"

Kshitij Bedi writes:

> I just made a new MySQL installation on a windows 2000 server 
> machine and it keeps stopping by itself after I start it. Any 
> ideas whats going wrong? 

You should first check your error log
You get there by going to the control panel
and click administrative tasks
and the event viewer

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com



------------------------------

Message: 4
Date: Mon, 1 Mar 2004 13:59:23 -0500
From: "Tim Gales" <tgales at tgaconnect.com>
Subject: RE: [nycphp-talk] MYSQL Stop automatically
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <004001c3ffbf$504261f0$e98d3818 at oberon1>
Content-Type: text/plain;	charset="US-ASCII"


Um -- the real name of the 
logs I was referring to are:

Application
Security
System

these are the operating system 
error logs not to be 
confused with the MySQL error log


T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com
_______________________________________________
talk mailing list
talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk


------------------------------

Message: 5
Date: Mon, 1 Mar 2004 14:03:40 -0500 
From: Kshitij Bedi <Kbedi at inta.org>
Subject: RE: [nycphp-talk] MYSQL Stop automatically
To: 'NYPHP Talk' <talk at lists.nyphp.org>
Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D73A7B0 at intamail1.inta>
Content-Type: text/plain;	charset="iso-8859-1"

It just says that the service terminated unexpectedly
eventId: 7031

-----Original Message-----
From: Tim Gales [mailto:tgales at tgaconnect.com]
Sent: Monday, March 01, 2004 1:59 PM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] MYSQL Stop automatically



Um -- the real name of the 
logs I was referring to are:

Application
Security
System

these are the operating system 
error logs not to be 
confused with the MySQL error log


T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com
_______________________________________________
talk mailing list
talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

------------------------------

Message: 6
Date: Mon, 1 Mar 2004 14:09:11 -0500
From: "Tim Gales" <tgales at tgaconnect.com>
Subject: RE: [nycphp-talk] MYSQL Stop automatically
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <004101c3ffc0$ae5cb1e0$e98d3818 at oberon1>
Content-Type: text/plain;	charset="US-ASCII"

> eventId: 7031
I think you should search 
the MSDN website for that 
error number

Hopefully it will give you a line 
on what's happening by telling you 
the sorts of things that can cause it.

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com



------------------------------

Message: 7
Date: Mon, 01 Mar 2004 14:11:56 -0500
From: Dan Cech <dcech at phpwerx.net>
Subject: Re: [nycphp-talk] MYSQL Stop automatically
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <40438AFC.7010905 at phpwerx.net>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kshitij Bedi wrote:
> It just says that the service terminated unexpectedly
> eventId: 7031

You might find something more enlightening in the MySQL logs.

Dan

> -----Original Message-----
> From: Tim Gales [mailto:tgales at tgaconnect.com]
> Sent: Monday, March 01, 2004 1:59 PM
> To: 'NYPHP Talk'
> Subject: RE: [nycphp-talk] MYSQL Stop automatically
> 
> Um -- the real name of the 
> logs I was referring to are:
> 
> Application
> Security
> System
> 
> these are the operating system 
> error logs not to be 
> confused with the MySQL error log
> 
> T. Gales & Associates



------------------------------

Message: 8
Date: Mon, 1 Mar 2004 14:22:45 -0500 
From: Kshitij Bedi <Kbedi at inta.org>
Subject: RE: [nycphp-talk] MYSQL Stop automatically
To: 'NYPHP Talk' <talk at lists.nyphp.org>
Message-ID: <C0CDB9F5E81C234FBB42D84E7853125D73A7B1 at intamail1.inta>
Content-Type: text/plain;	charset="iso-8859-1"

Is it necessary to install MySQL using the administrator account?

-----Original Message-----
From: Dan Cech [mailto:dcech at phpwerx.net]
Sent: Monday, March 01, 2004 2:12 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] MYSQL Stop automatically


Kshitij Bedi wrote:
> It just says that the service terminated unexpectedly
> eventId: 7031

You might find something more enlightening in the MySQL logs.

Dan

> -----Original Message-----
> From: Tim Gales [mailto:tgales at tgaconnect.com]
> Sent: Monday, March 01, 2004 1:59 PM
> To: 'NYPHP Talk'
> Subject: RE: [nycphp-talk] MYSQL Stop automatically
> 
> Um -- the real name of the 
> logs I was referring to are:
> 
> Application
> Security
> System
> 
> these are the operating system 
> error logs not to be 
> confused with the MySQL error log
> 
> T. Gales & Associates


_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

------------------------------

Message: 9
Date: Mon, 1 Mar 2004 14:27:41 -0500
From: "Tim Gales" <tgales at tgaconnect.com>
Subject: RE: [nycphp-talk] MYSQL Stop automatically
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <004201c3ffc3$4439a540$e98d3818 at oberon1>
Content-Type: text/plain;	charset="US-ASCII"


> Is it necessary to install MySQL using the administrator account?

It is necessary that the MySQL process 
have the correct privileges for the 
directory(s) will  be 
reading and writing to.

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com



------------------------------

Message: 10
Date: Mon, 1 Mar 2004 15:34:43 -0600 
From: Rafi Sheikh <Rafi.Sheikh at Ingenix.com>
Subject: [nycphp-talk] gd not compiling/showing via php_info()
To: "'talk at lists.nyphp.org'" <talk at lists.nyphp.org>
Message-ID:
	<C92A8F8B60F96B42911EFA70AF30A88F060A446F at msp7-msx1.ingenix.com>
Content-Type: text/plain;	charset="iso-8859-1"

BASICS: Apache 1.3.29, php 4.3.4, MySQL 1.3 on win2k-pro.
Skill Level: Graduated to rookie from novice

I am trying to use jpgrap with php.  For that I need gd enabled.  Following
is from my php.ini (in \winnt\system32 dir.) as you can see, it is listed
and uncommented.  However, I do not see gd related info when I run
php_info()

; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions"
extension=php_gd2.dll

What am I missing?

Your time and advice is deeply appreciated.
-----------------------------------------------------
Rafi 



This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

------------------------------

Message: 11
Date: Mon, 1 Mar 2004 16:44:20 -0500
From: "Tim Gales" <tgales at tgaconnect.com>
Subject: RE: [nycphp-talk] gd not compiling/showing via php_info()
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <004a01c3ffd6$5b41a9a0$e98d3818 at oberon1>
Content-Type: text/plain;	charset="US-ASCII"

Rafi Sheikh writes:
> I am trying to use jpgrap with php.  For that I need gd 
> enabled.  Following is from my php.ini (in \winnt\system32 
> dir.) as you can see, it is listed and uncommented.  However, 
> I do not see gd related info when I run
> php_info()
> 
> ; Directory in which the loadable extensions (modules) 
> reside. extension_dir = "c:\php\extensions" extension=php_gd2.dll
> 
> What am I missing?

Did you check you phpinfo results to make 
certain you are reading the correct php.ini file?

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com



------------------------------

Message: 12
Date: Mon, 1 Mar 2004 16:49:58 -0500
From: Daniel Convissor <danielc at analysisandsolutions.com>
Subject: Re: [nycphp-talk] gd not compiling/showing via php_info()
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <20040301214958.GA12967 at panix.com>
Content-Type: text/plain; charset=us-ascii

Hi Rafi:

On Mon, Mar 01, 2004 at 03:34:43PM -0600, Rafi Sheikh wrote:
> 
> I am trying to use jpgrap with php.  For that I need gd enabled.
Following
> is from my php.ini (in \winnt\system32 dir.) as you can see, it is listed
> and uncommented.  However, I do not see gd related info when I run
> php_info()
> 
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "c:\php\extensions"
> extension=php_gd2.dll

Naturally you checked c:\php\extensions that the php_gd2.dll file was 
there and the web server has permissions to read it.  But, I don't really 
think this is the problem because you'd be seeing error messages saying 
that the file/functions/etc could not be found.

What does the "Configuration File (php.ini) Path" in the phpinfo output 
say?  Does it match the php.ini file you just edited?

Anyway, I'd advise keeping the php.ini file in the php directory itself 
rather than in the system32 dir.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

------------------------------

Message: 13
Date: Mon, 1 Mar 2004 16:20:35 -0600 
From: Rafi Sheikh <Rafi.Sheikh at Ingenix.com>
Subject: [nycphp-talk] gd not compiling/showing via php_info()
To: "'talk at lists.nyphp.org'" <talk at lists.nyphp.org>
Message-ID:
	<C92A8F8B60F96B42911EFA70AF30A88F060A4472 at msp7-msx1.ingenix.com>
Content-Type: text/plain;	charset="iso-8859-1"

Following is from php_info():

Virtual Directory Support: enabled 
Configuration File (php.ini) Path at C:\WINNT 

This is where I placed the php.ini.  Someone said to copy all .dll and files
under extensions to c:\winnt\sys32 also, which I did.  Was that an idiotic
move?  (Ok, you really do not have to answer that!)

Once again, your patience (as I am a confirmed rookie) and advice is deeply
appreciated!

(Thank you Dan and T. Gales)

-----------------------------------------------------
Rafi 



This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.


------------------------------

Message: 14
Date: Mon, 1 Mar 2004 17:37:49 -0500
From: "Tim Gales" <tgales at tgaconnect.com>
Subject: RE: [nycphp-talk] gd not compiling/showing via php_info()
To: "'NYPHP Talk'" <talk at lists.nyphp.org>
Message-ID: <004b01c3ffdd$d3f83420$e98d3818 at oberon1>
Content-Type: text/plain;	charset="US-ASCII"

Rafi Sheikh writes:
" Following is from php_info():
 
 Virtual Directory Support: enabled 
 Configuration File (php.ini) Path at C:\WINNT"

earlier you wrote:
"Following is from my php.ini (in \winnt\system32 dir.)"

Daniel C.
advised you:
"Anyway, I'd advise keeping the php.ini file in the php directory itself 
rather than in the system32 dir."

Find the diretory where the php.exe file is
(most likely its C:\php)

and move the php.ini (which you edited) from \winnt\system32
to there.

Give it another shot.

Good luck...

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com



------------------------------

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk


End of talk Digest, Vol 10, Issue 1
***********************************


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

------------------------------

Message: 5
Date: Mon, 01 Mar 2004 15:30:09 -0800
From: Chris Hubbard <chubbard at next-online.net>
Subject: Re: [nycphp-talk] MVC Framework opinions
To: NYPHP Talk <talk at lists.nyphp.org>
Message-ID: <4043C781.5060303 at next-online.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I've used a couple different implementations of MVC. 

You have to define what you mean by MVC as it looks to me as if almost 
everyone implementing MVC pushes the definition(s) in new and 
interesting way. 

I've seen MVC implemented different ways.  For example I've seen:

where you've got a php page which is just a hollow shell that includes 
the worker file;
    index.php and indexWorker.php,
    listing.php and listingWorker.php, etc.

where you've got a single php page which based on the use of the site 
loads/includes different worker files:
    index.php and Worker.php, Listing.php, etc.

where you've got a single php page, a logic page and a template:
    index.php and indexWorder.php and index.tpl

Then I've seen it taken to extremes, where every field in a table has 
four different controllers, add, edit, delete and view.  So to do a 
query you'd do something like $a = getTableField('tablename', 
'fieldname');   ,  and getTableField would connect to the database an 
query the database for that specific piece of data.  Personally I think 
this is silly.  Makes maintain the code brutally difficult.  I'd rather 
write SQL.  Mind you I know how to write SQL.

For me the answer is to not use a formal framework design.  Pick a 
design that works for your level of competency and the particulars of 
the application.  If a version of MVC makes it easier for you to 
abstract the logic of the application then use MVC.  If you are 
abstracting the logic of the application you may find that there is 
another logical framework design/topology that works better.  Make your 
code easy to maintain.   MVC may or may not make your code easier to 
maintain.  As far as I can tell there's nothing inherent in MVC that 
would make code easier to maintain.  It's just as easy to write bad code 
with MVC as it is without MVC.

Hope this is helpful.
Chris


Allen Shaw wrote:

>I'm using Smarty templates now for "my first big project," which is an
>database that was basically ported to php/mysql from ms access.  We extend
>Smarty with a custom class that runs a few extra things (checks permissions
>for different templates and different data processing actions based on
>login, etc.) and then uses Smarty to parse the templates.  It's great and
>very flexible and allows my brain to keep thinking in terms of "data entry
>form, module, etc." as I did with MS Access.
>
>However I feel I honestly have not been able to do as good a job with
>"splitting up logic from presentation" as I'd like to.  It's a judgement
>call and a thread that comes up here and there on the Smarty forums: how
>much do you have to / want to keep them separated?    Since I'm the only
>developer on this team, I have, of course, both a lot of flexibility and a
>lot of chances to write lazy code.
>
>All in all, though, Smarty and our little extension of it, are serving me
>well, and I think I probably am limited more by my own lack of programming
>experience/discipline than by the framework itself.
>
>- Allen
>
>  
>
>>First, what are the pro's and cons to using an established MVC framework
>>    
>>
>in
>  
>
>>general, as opposed to using other strategies to split up logic from
>>presentation? Smarty templates anyone?
>>    
>>
>
>--
>===========================================================
>Allen Shaw                                  ashaw at iifwp.org
>IIFWP Data and                           914.631.1331 x.106
>    IT Services                        http://www.iifwp.org
>
>_______________________________________________
>talk mailing list
>talk at lists.nyphp.org
>http://lists.nyphp.org/mailman/listinfo/talk
>  
>

-- 
Chris Hubbard
Sr Software Developer
Next Online
425 563 4153



------------------------------

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk


End of talk Digest, Vol 10, Issue 2
***********************************


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.



More information about the talk mailing list