CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 PHP Version 7 not available in Settings

Print topic Send  topic

Author Message
JayEdgar


Posts: 77
Posted: 04/10/2017, 7:06 AM

Yes Software indicates CCS 5.1 is compatible with PHP 7. However, under project settings, the only two options available for "PHP version" are 4.x and 5.x. Is 5.x close enough, or is there something I'm missing?

Related: I've seen reference here and there to the code templates used by CCS (I don't know the proper name). Where are they located and is there any good info for editing them?

Thanks much,

Jay
View profile  Send private message
pajard

Posts: 1
Posted: 05/15/2017, 6:26 AM

I have the same question, how to initiate a project in php 7?

I tried to run a css php 5.x project on a php 7 server, it failed.

thx,

Patrick
View profile  Send private message
djgjohn

Posts: 52
Posted: 05/17/2017, 5:35 PM

You need to downgrade to earlier version to use on PHP 5.

Let me know if you need that version - can send a download link.
View profile  Send private message
ccsminer

Posts: 159
Posted: 12/27/2019, 10:40 AM

What is the maximum version of php 7 that can work with php 5.6, without CCS code conversions?
View profile  Send private message
DonWolli


Posts: 93
Posted: 12/30/2019, 7:22 AM

Quote ccsminer:
What is the maximum version of php 7 that can work with php 5.6, without CCS code conversions?

As far as I know, you best change the sqllib in common.php to mysqli (heard, but not tested), we used another library which repalcles the mysql calls.
Besides that there is a tool in the facebook user group:
(https://www.facebook.com/groups/codecharge/)
"Barak Ravid hat eine Datei hochgeladen.
10. Juli 2018

UPDATED 2019-11-12

I've developed a script to transform CCS php files to work with PHP7.2. includes changing function and constructor names, each iterations etc. I don't take any responsibility, but I am using this regularly.

usage from command line:
php conv_fnames.php <path to project dir after publish>

Notice:

Run this after each publish. It is set to ignore directory CCS if its located inside your publish directory so not to touch the original. And set to ignore node_modules - if you are using node for any reason.

It assumes you haven't touched the CodeCharge library files such as classes.php etc - which can always be regenerated from scratch. "

You may download the tool there

Have a peaceful 2020 !

_________________
You may say I'm a dreamer, but I'm not the only one.(J.Lennon)
View profile  Send private message
enko


Posts: 74
Posted: 02/21/2020, 10:04 AM

@DonWolli
tested you script and seems work fine !!!
Thanks a lot ! Now i can upgrade my server to php7 !!!!

_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
djgjohn

Posts: 52
Posted: 03/03/2020, 5:41 PM

Does anyone have some simple instructions for running this PHP 7 conversion script per Barak? Not familiar with running anything from a command line.

Want to convert locally then upload to server.
View profile  Send private message
clickryan


Posts: 55
Posted: 03/03/2020, 6:00 PM

someone share this on github with instructions please :-)
_________________
Codecharge Developer (PHP, ASP.net - C# or VB.net)
for help or inquiries please visit clickryan.com
View profile  Send private message
djgjohn

Posts: 52
Posted: 03/04/2020, 4:24 PM

Could I at least have an example please?

usage from command line:
php conv_fnames.php <path to project dir after publish>

The project is in a subdomain called "suppliers".

I can access Terminal in CPanel and have uploaded the conv_fnames.php file to the root directory. The project is in (root_directory)/public_html/suppliers

Where to from here? Has anyone actually run this script and seen the results? If so, what exactly did you do?

Don't want to run this and have it accidentally convert the parent domain which runs very happily on PHP5.4

Thanks.
View profile  Send private message
DonWolli


Posts: 93
Posted: 03/05/2020, 11:47 AM

In the Facebook Codecharge User Group you ask the autor Barak directly
_________________
You may say I'm a dreamer, but I'm not the only one.(J.Lennon)
View profile  Send private message
djgjohn

Posts: 52
Posted: 03/05/2020, 4:01 PM

Thanks Don, but it would be good to have it spelled out here for everyone's use.

In any case I don't understand Facebook, never have and never will. Makes no sense to me at all.

enko says he/she used it successfully. What was the exact command line used to target the correct folder?
View profile  Send private message
DonWolli


Posts: 93
Posted: 03/08/2020, 2:59 PM

dear djgjohn, you are free to post baraks answer ....
_________________
You may say I'm a dreamer, but I'm not the only one.(J.Lennon)
View profile  Send private message
imroza

Posts: 21
Posted: 03/23/2020, 2:24 AM

Hello
I spent a lot of time trying to get my application running on PHP 7.2 but I couldn't.

I installed CCS version 5.1.1.18992 and PHP version 7.0.13 and everything works properly.

The second step was to install PHP version 7.2.1, I used the "conv_fnames.php" procedure from the CLI.
But I have a number of malfunctions:

1. error in COMMON.PHP on line 364 $values[] = array($bound_column_value, $db->f($text_column)); (removed [])
2. listbox do not display the data correctly,
3. fileupload does not work correctly

do you have the same problems ??
how they can be solved??

Thanks for your help
View profile  Send private message
beevet

Posts: 47
Posted: 04/13/2020, 6:15 AM

I have moved a couple of projects from php5.6 to php7.2.

One uses a file upload that works. one uses file upload that does not work. need to figure out why. I wonder if it is a matter of which CodeCharge they were first built in. The one that does not work is a lot older than the one that does work. The one that does work might have been made as the first project in the latest CodeCharge while the older project is one of the first ones I did in 4.3.

no listboxes in either project.

No errors from Common.php

I did have an error in one project after upload with Filezilla. It did not find clsTemplate and for some reason, FIlezilla uploaded Template.php with 600 permissions. Changed to 644 and things worked fine.

Chris
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.