Page 1 of 1

temporary workaround needed

Posted: 2017-10-01 18:47
by honuware
In my ajax_combo.php file the following will not work with php5.6 or higher:

// receive and validate user input
$table_name = $_REQUEST['t'];
$field_name = $_REQUEST['f'];
$search_id = makeSafe(iconv('UTF-8', datalist_db_encoding, $_REQUEST['id']));
$selected_text = $_REQUEST['text'];
$returnOptions = ($_REQUEST['o'] == 1 ? true : false);
$page = intval($_REQUEST['p']);
if($page < 1) $page = 1;
$skip = $results_per_page * ($page - 1);
$search_term = makeSafe(iconv('UTF-8', datalist_db_encoding, $_REQUEST['s']));

This is due to the iconv() being unsupported.

How can I change this in the short term until I can open and save my appgini project in the current version of appgini and get current export of the php code.

Also, what version of php does the current version of appgini export?

Thanks all.

Re: temporary workaround needed

Posted: 2017-10-04 22:28
by a.gneady
AppGini-generated apps work on PHP 5.2 and higher (tested up to PHP 7.1). The code snippet you mentioned should work fine with PHP 5.6 and higher. According to the PHP manual, iconv is supported on all versions of PHP and is not marked as deprecated: https://secure.php.net/manual/en/function.iconv.php

Re: temporary workaround needed

Posted: 2017-10-04 23:55
by honuware
Thank you.

I thought that was the case, but my crappy host is apparently crappy and I am battling with them that iconv is not configured appropriately. We will see.

BTW, I have a been an Appgini user since 2011 and appreciate you keeping the software updated and current.