php-general Digest 8 Jun 2008 14:35:53 -0000 Issue 5503
Topics (messages 275117 through 275121):
Re: Imagick installation issue
275117 by: BornPlayDie
How to structure code for forms
275118 by: Ethan Whitt
275119 by: Nirmalya Lahiri
275120 by: Nitsan Bin-Nun
275121 by: Larry Garfield
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 ---
Yes, I forgot to mention, I did restart apache.
Date: Sat, 7 Jun 2008 20:21:26 -0400
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Imagick installation issue
CC: [EMAIL PROTECTED]
On 6/7/08, BornPlayDie <[EMAIL PROTECTED]> wrote:
I am trying to install ImageMagick and Imagick on my server. I am running the
following...
Apache version
1.3.37 (Unix)
PHP version
5.2.1
I have installed the following...
ImageMagick 6.4.1
Imagick 2.1.1
I ran the convert logo test for ImageMagick and it works fine. However
imagick.so will not load. I confirmed the so file is in the correct extensions
dir specified by extension_dir in php.ini. I also confirmed this is the correct
php.ini file.
My php test file looks like this...
if (!extension_loaded('imagick')) {
dl("imagick.so");
if (!extension_loaded('imagick')) {
echo "PHP IMagick will not load!";
exit;
}
}
$image = new Imagick('test.jpg');
$image->thumbnailImage(100, 0);
$image->writeImage('test-thumb.jpg');
header("Location: test.html"); /* display the thumbnail */
But I get the following error...
Warning: dl() [function.dl <http://pimpmysnaps.com/function.dl>]:
Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so:
undefined symbol: zend_ce_iterator in /home/pimpms/public_html/test.php
on line 4
PHP IMagick will not load!
This is the output for ldd -r for imagick.so. There are a number of
dependencies that I don't recognize
and I think there may be other packages that need to be installed.
undefined symbol: zend_ce_iterator
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
undefined symbol: core_globals
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
undefined symbol: executor_globals
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
undefined symbol: zval_add_ref
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
undefined symbol: OnUpdateBool
(/usr/local/lib/php/extensions/no-debug-non-zts-20060613//imagick.so)
undefined symbol: zend_hash_internal_pointer_reset_ex
... (and the list goes on)
Any help would be appreciated.
Thanks,
Mark
_________________________________________________________________
It's easy to add contacts from Facebook and other social sites through Windows
Live™ Messenger. Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow
Have you tried restarting apache? its usually required if you've made changes
--
Bastien
Cat, the other other white meat
_________________________________________________________________
Instantly invite friends from Facebook and other social networks to join you on
Windows Live™ Messenger.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends
--- End Message ---
--- Begin Message ---
I am new to PHP and have been researching ways to structure code for forms.
I have found a
few basic tutorials that present, validate & present errors, and then
process form data. I was
wondering if anyone could share their approach on how they structure these
actions? Ideally,
I would like to separate each action in separate functions. Thanks in
advance...
Regards
Ethan
--- End Message ---
--- Begin Message ---
--- On Sun, 6/8/08, Ethan Whitt <[EMAIL PROTECTED]> wrote:
> From: Ethan Whitt <[EMAIL PROTECTED]>
> Subject: [PHP] How to structure code for forms
> To: [EMAIL PROTECTED]
> Date: Sunday, June 8, 2008, 4:31 PM
> I am new to PHP and have been researching ways to structure
> code for forms.
> I have found a
> few basic tutorials that present, validate & present
> errors, and then
> process form data. I was
> wondering if anyone could share their approach on how they
> structure these
> actions? Ideally,
> I would like to separate each action in separate functions.
> Thanks in
> advance...
>
> Regards
> Ethan
Hi,
I think it is better for you to follow MVC design pattern in PHP. Search
internet for any good manual on MVC design pattern. You can read the manuals of
any good PHP framework also like Joomla, CakePHP........ These frameworks are
also follow MVC design pattern.
---
Nirmalya Lahiri
[+91-9433113536]
--- End Message ---
--- Begin Message ---
Exectly,
I fall in love with zend_form but you can use cakephp or joomla and etc
HTH
On 08/06/2008, Nirmalya Lahiri <[EMAIL PROTECTED]> wrote:
>
> --- On Sun, 6/8/08, Ethan Whitt <[EMAIL PROTECTED]> wrote:
>
> > From: Ethan Whitt <[EMAIL PROTECTED]>
> > Subject: [PHP] How to structure code for forms
> > To: [EMAIL PROTECTED]
> > Date: Sunday, June 8, 2008, 4:31 PM
> > I am new to PHP and have been researching ways to structure
> > code for forms.
> > I have found a
> > few basic tutorials that present, validate & present
> > errors, and then
> > process form data. I was
> > wondering if anyone could share their approach on how they
> > structure these
> > actions? Ideally,
> > I would like to separate each action in separate functions.
> > Thanks in
> > advance...
> >
> > Regards
> > Ethan
>
>
>
> Hi,
> I think it is better for you to follow MVC design pattern in PHP.
> Search internet for any good manual on MVC design pattern. You can read the
> manuals of any good PHP framework also like Joomla, CakePHP........ These
> frameworks are also follow MVC design pattern.
>
> ---
> Nirmalya Lahiri
> [+91-9433113536]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Going full-blown MVC (a rather lousy web architecture that most people get
wrong) for just simple form handling is serious overkill. The form itself is
fully encapulated within the View (the user interaction part), and should
*not* directly relate to the model.
I personally am rather fond of Drupal's form handling system, but it is
somewhat tied to Drupal itself. There's also the QuickForms suite in PEAR
that I've not worked with but could be worth looking into.
On Sunday 08 June 2008, Nitsan Bin-Nun wrote:
> Exectly,
> I fall in love with zend_form but you can use cakephp or joomla and etc
>
> HTH
>
> On 08/06/2008, Nirmalya Lahiri <[EMAIL PROTECTED]> wrote:
> > --- On Sun, 6/8/08, Ethan Whitt <[EMAIL PROTECTED]> wrote:
> > > From: Ethan Whitt <[EMAIL PROTECTED]>
> > > Subject: [PHP] How to structure code for forms
> > > To: [EMAIL PROTECTED]
> > > Date: Sunday, June 8, 2008, 4:31 PM
> > > I am new to PHP and have been researching ways to structure
> > > code for forms.
> > > I have found a
> > > few basic tutorials that present, validate & present
> > > errors, and then
> > > process form data. I was
> > > wondering if anyone could share their approach on how they
> > > structure these
> > > actions? Ideally,
> > > I would like to separate each action in separate functions.
> > > Thanks in
> > > advance...
> > >
> > > Regards
> > > Ethan
> >
> > Hi,
> > I think it is better for you to follow MVC design pattern in PHP.
> > Search internet for any good manual on MVC design pattern. You can read
> > the manuals of any good PHP framework also like Joomla, CakePHP........
> > These frameworks are also follow MVC design pattern.
> >
> > ---
> > Nirmalya Lahiri
> > [+91-9433113536]
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---