I now have a working server and my webshop is working fine except one thing, I can add products to the database but I can't add products with a Photograph.
I get this error Fatal error: Call to undefined function imagecreatefromjpeg() in /Library/WebServer/Documents/webshopkeeper/config/functions.php on line 112
I think this means PHP doesn't know how to run this line but I am not sure.
mastertk 16 Aug 2008
On another computer at homethe webshop does function correct on that mac I used Mamp and PHP is configured like this:
16 Aug 2008
I now have a working server and my webshop is working fine except one thing, I can add products to the database but I can't add products with a Photograph.
I get this error Fatal error: Call to undefined function imagecreatefromjpeg() in /Library/WebServer/Documents/webshopkeeper/config/functions.php on line 112
I think this means PHP doesn't know how to run this line but I am not sure.
16 Aug 2008
On another computer at homethe webshop does function correct on that mac I used Mamp and PHP is configured like this:
'./configure' '--with-mysql=/Applications/MAMP/Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library' '--with-png-dir=/Applications/MAMP/Library' '--with-zlib' '--with-freetype-dir=/Applications/MAMP/Library' '--prefix=/Applications/MAMP/bin/php5' '--exec-prefix=/Applications/MAMP/bin/php5' '--sysconfdir=/Applications/MAMP/conf/php5' '--with-soap' '--with-config-file-path=/Applications/MAMP/conf/php5' '--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf' '--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config' '--with-sqlite' '--with-ttf' '--with-t1lib=/Applications/MAMP/Library' '--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-dbx' '--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2006i' '--enable-soap' '--with-kerberos' '--enable-calendar' '--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-dbase' '--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library' '--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library' '--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg' '--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl'
So maybe the mamp server is more expended than the diymacserver Installation.
17 Aug 2008
This is because the DIYMacServer PHP installation is very basic and lacks GD support which is used for graphics in PHP.