Search found 87 matches

by mark397
Thu Jan 21, 2016 4:43 pm
Forum: PHP Questions / Hints
Topic: HELP! Experienced RPG Dev but PHP Ignorant
Replies: 2
Views: 3017

Re: HELP! Experienced RPG Dev but PHP Ignorant

First install ZendServer, then follow these instructions. Once ZendServer is up and running the default server config enables this feature, but you'll want to set it up differently.
by mark397
Thu Aug 20, 2015 8:17 pm
Forum: PHP Questions / Hints
Topic: Need help with form-driven inquiry/update page
Replies: 1
Views: 2142

Re: Need help with form-driven inquiry/update page

Since this is a new project I would lean towards using MVC so the code is more reusable, but I also see how this could be daunting to try to learn as you try to start writing it. I can give a basic layout of classes and functions that might help you get started: DB class - all SQL routes through her...
by mark397
Wed Aug 05, 2015 5:43 pm
Forum: Zend Server for IBM i
Topic: Zend Server and IBM i V6R1 support
Replies: 4
Views: 1952

Re: Zend Server and IBM i V6R1 support

We had a website running Zendserver 7 on v6r1, but since then the customer has bought a new box. I can't say for certain about newer versions of Zendserver. The only caveat I remember is the SQL `MERGE` statement was not yet implemented on v6r1. I would suggest trying whichever version you prefer, b...
by mark397
Wed Jul 29, 2015 9:12 pm
Forum: PHP
Topic: PHP 5.4 and Zend Guard Loader installation issues, help!
Replies: 3
Views: 2098

Re: PHP 5.4 and Zend Guard Loader installation issues, help!

arsi554: For future reference this is a new topic, so should be a new thread. That being said, when you submit the script the URI becomes whatever is in the action attribute of the form tag. Do you have a file named "Emp_Registration"? This should point to your form action script, which should be so...
by mark397
Mon Jul 06, 2015 9:00 pm
Forum: PHP
Topic: Help on porting Laravel to DB2 (both IBM i and LUW)
Replies: 0
Views: 1548

Help on porting Laravel to DB2 (both IBM i and LUW)

Github user cooperl22 has started porting laravel to DB2 for IBM i, and user opb is trying to run it on LUW. He isn't familiar with DB2, and cooperl22 and I aren't familiar with LUW. It would be nice to have both run the same codebase with different configs, possible pay but short-term gig. https://...
by mark397
Mon Jul 06, 2015 8:56 pm
Forum: PHP Questions / Hints
Topic: Trouble with ZfcUser and db2_prepare()
Replies: 2
Views: 2065

Re: Trouble with ZfcUser and db2_prepare()

In this simple of a statement you should be able to remove the 'user' table qualifier. I have had luck with aliased tables, but have not tested using the table name itself as the prefix. This may be a different issue, though, if you don't have the I5_NAMING constant on. On an IBM i that doesn't have...
by mark397
Mon Jul 06, 2015 2:57 pm
Forum: PHP
Topic: json_encode don't coding zend_date
Replies: 2
Views: 1869

Re: json_encode don't coding zend_date

A zend_date is a PHP object. PHP objects may be encoded in to JSON, but you'll likely run into errors because JSON expects all data to be UTF-8. This is regardless of your PHP ini, Apache, or PHP runtime encoding configs. You can try iconv or mb_convert_string in a loop to convert all elements of th...
by mark397
Wed Jun 10, 2015 8:20 pm
Forum: Zend Server for IBM i
Topic: PDF package
Replies: 3
Views: 2377

Re: PDF package

I've always thought it was decent performance. We're using 1 CSS file, adding 1 page of dynamic content, then adding 2 pages of static content. The whole process takes ~3.5 seconds, so much worse than a regular page load, but still not terrible considering it's a generated PDF. Another advantage is ...
by mark397
Tue Jun 09, 2015 2:25 pm
Forum: Zend Server for IBM i
Topic: PDF package
Replies: 3
Views: 2377

Re: PDF package

We've been using MPDF with a lot of success, but haven't been trying to convert spool files. Generally I make static pixel widths instead of percentages, and the page is roughly 800px wide. I tried inches as a measurement with less success. MPDF also supports CSS, which I would assume TCPDF does as ...
by mark397
Fri May 15, 2015 2:45 pm
Forum: Zend Server for IBM i
Topic: Error occurred in SQL Call Level Interface
Replies: 7
Views: 6620

Re: Error occurred in SQL Call Level Interface

At first glance it looks to me like a data type mismatch in a prepared statement. Try to make sure your parameters match the field types.