Search found 187 matches

by scottgcampbell
Mon Oct 05, 2015 3:19 pm
Forum: PHP
Topic: FPDF PDF Creator PNG Image Issue
Replies: 7
Views: 5339

Re: FPDF PDF Creator PNG Image Issue

Is there something specific that makes you think that it is related to zlib? Are you able to step through the code once with JPG and once with PNG to see where it might be failing? Does the PNG have alpha-transparency? that seems to be a common issue (though it might be fixed in newer versions so yo...
by scottgcampbell
Fri Oct 02, 2015 7:59 pm
Forum: PHP
Topic: FPDF PDF Creator PNG Image Issue
Replies: 7
Views: 5339

Re: FPDF PDF Creator PNG Image Issue

Sorry, it is in the top of the phpinfo in the "Configure Command" section. Just wondered if maybe it isn't even compiled into your PHP for some reason.
by scottgcampbell
Fri Oct 02, 2015 5:13 pm
Forum: PHP
Topic: FPDF PDF Creator PNG Image Issue
Replies: 7
Views: 5339

Re: FPDF PDF Creator PNG Image Issue

Does the Configure command show with-zlib, here is what mine has

Code: Select all

'--with-zlib=/zlib-1.2.3/usr/local/zlib-1.2.3' 
by scottgcampbell
Fri Oct 02, 2015 5:04 pm
Forum: PHP
Topic: FPDF PDF Creator PNG Image Issue
Replies: 7
Views: 5339

Re: FPDF PDF Creator PNG Image Issue

What errors are you getting? Can you post something from the php.log or the error you are getting on the screen?
Does your phpinfo() show that zlib is enabled?

Scott
by scottgcampbell
Mon Sep 21, 2015 2:09 pm
Forum: PHP Questions / Hints
Topic: PHP script to update an IBM i physical file
Replies: 3
Views: 6463

Re: PHP script to update an IBM i physical file

The safest would be to use db2_prepare with parameter markers. So create your SQL update statement (dynamically if you are not always updating all of the fields) $sql = "UPDATE SOMELIB.SOMEFILE SET COL1=?,COL2=?,COL3=? WHERE KEY = ?" Build your array of parameters: $parms = array($col1,$col2,$col3,$...
by scottgcampbell
Tue Sep 15, 2015 2:16 pm
Forum: PHP
Topic: Cursor Already Opened or Allocated Issue
Replies: 5
Views: 3838

Re: Cursor Already Opened or Allocated Issue

I thought that might be in a function call. In this section: } else { $this->data = die("<br>bad select ".db2_stmt_errormsg()); }; http://php.net/manual/en/function.die.php http://php.net/manual/en/function.exit.php Sorry I read that wrong, I thought it was when it returns no data, but it is when th...
by scottgcampbell
Mon Sep 14, 2015 8:22 pm
Forum: PHP
Topic: Cursor Already Opened or Allocated Issue
Replies: 5
Views: 3838

Re: Cursor Already Opened or Allocated Issue

I'm not sure if that is exactly the sequence of the code in your class but you are doing the close (db2_pclose) AFTER the return so it will never be called, you are also "dying" when there is no data returned. Not sure that either of these are the cause but if you run a query that doesn't return any...
by scottgcampbell
Fri Sep 11, 2015 3:07 pm
Forum: PHP
Topic: Cursor Already Opened or Allocated Issue
Replies: 5
Views: 3838

Re: Cursor Already Opened or Allocated Issue

Can you post some of the code that you are using?
Just wondering how you are connecting/preparing/fetching etc.

Scott
by scottgcampbell
Tue Sep 01, 2015 4:55 pm
Forum: Zend Server for IBM i
Topic: php-cli command is not found
Replies: 9
Views: 5903

Re: php-cli command is not found

After you do the export does a which know where it is? Just wondering if it looks like a path or permissions issue (very strange either way) $ which php-cli no php-cli in /QOpenSys/usr/bin /usr/ccs/bin /QOpenSys/usr/bin/X11 /usr/sbin . /usr/bin $ export PATH=$PATH:/usr/local/zendsvr6/bin $ which php...