CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 PHP 7.0

Print topic Send  topic

Author Message
Dorin

Posts: 50
Posted: 10/20/2016, 3:33 AM Quote message

Hello,

Is there a chance for a project to run on PHP 7?

Regards.
View profile  Send private message
mamboBROWN


Posts: 1712
Posted: 11/06/2016, 8:58 AM Quote message

Assuming that you have the current version of CCS and that you started building your project in PHP 7 the answer to your question is Yes.
View profile  Send private message
Dorin

Posts: 50
Posted: 11/06/2016, 11:41 PM Quote message

Thanks.
View profile  Send private message
phpGeek

Posts: 13
Posted: 11/17/2016, 4:13 PM Quote message

it says its compatible but its not... you will have to replace a lot of the code..
View profile  Send private message
cleyan


Posts: 128
Posted: 12/25/2016, 8:27 PM Quote message

Yes, is compatible like most of old php code,
but you will need to disable the E_DECRECATED alerts on php.ini or in php code (maybe on Common.php) that's because most of php code is "old fashion" and YesSoftware don't seem to want a real upgrade of the product,
as an example all classes of CCs use the name of the class as constructor instead of __construct() method as php7 recommend

Good luck!
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
ccsminer

Posts: 74
Posted: 01/27/2017, 5:58 PM Quote message

Quote cleyan:
Yes, is compatible like most of old php code,
but you will need to disable the E_DECRECATED alerts on php.ini or in php code (maybe on Common.php) that's because most of php code is "old fashion" and YesSoftware don't seem to want a real upgrade of the product,
as an example all classes of CCs use the name of the class as constructor instead of __construct() method as php7 recommend

Good luck!

When you mean "old fashion", are you saying that CCS generated code for older versions of PHP (i.e. 5.2.x) will still run as expected under a newer version of PHP (i.e. PHP 5.4.6) ?

View profile  Send private message
eratech


Posts: 513
Posted: 02/11/2017, 10:36 PM Quote message

Quote ccsminer:
Quote cleyan:
Yes, is compatible like most of old php code,
but you will need to disable the E_DECRECATED alerts on php.ini or in php code (maybe on Common.php) that's because most of php code is "old fashion" and YesSoftware don't seem to want a real upgrade of the product,
as an example all classes of CCs use the name of the class as constructor instead of __construct() method as php7 recommend

Good luck!

When you mean "old fashion", are you saying that CCS generated code for older versions of PHP (i.e. 5.2.x) will still run as expected under a newer version of PHP (i.e. PHP 5.4.6) ?


@ccsminer - that's my reading of it, and I've done a little testing on PHP 7 and many of the 'old' code will work (mostly) but will raise DEPRECATED errors.

Of course, the solution would be to update the PHP function templates that CCS uses to generate code but I don't know if that's going to happen.

I include my own set of functions as a separate file and use them instead of the built in ones if I need to.

Eric
(Sorry for the late reply. Took some time off forums and non-work related internet etc during January.)
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
JayEdgar


Posts: 77
Posted: 04/06/2017, 12:26 PM Quote message

Quote eratech:
@ccsminer - that's my reading of it, and I've done a little testing on PHP 7 and many of the 'old' code will work (mostly) but will raise DEPRECATED errors.

Of course, the solution would be to update the PHP function templates that CCS uses to generate code but I don't know if that's going to happen.

I include my own set of functions as a separate file and use them instead of the built in ones if I need to.

Eric
(Sorry for the late reply. Took some time off forums and non-work related internet etc during January.)

Eric, would you be willing to share your functions?

MamboBROWN, do you have any suggestions for someone who has a large project in v 4.3 and needs to convert it to 5.1?

Thank you,

Jay

View profile  Send private message
DonWolli


Posts: 53
Posted: 05/31/2018, 6:31 AM Quote message

Anyone else with experience CCS and PHP 7.x??

We have a big project with about 100 small and about 20 more complex 4.1/4.3 programs.
I would like to convert them to 5.1 working with PHP 7.1
OR
change everything to another(what) RAD Software

Any ideas???
Regards
Wolfgang

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

Posts: 12
Posted: 05/31/2018, 6:04 PM Quote message

I have a fairly large project working well with ccs 5.1 and php 5 and 7 on a Ubuntu 16 server
View profile  Send private message
djgjohn

Posts: 40
Posted: 06/03/2018, 2:51 AM Quote message

Is it possible to update CCS to the latest version and update existing projects to run on PHP 7?
View profile  Send private message
lsmashnuk

Posts: 12
Posted: 06/03/2018, 7:56 PM Quote message

Yes, it is possible. My development machine is Windows 10, IIS, MySql, PHP 5 and the production server is Ubuntu Linux, Apache, MySql, PHP 7. You have to make sure any hand coded PHP is compatible with both platforms and also be mindful of any case sensitive issues with PHP and MySql. My project was originally created in CCS 4.3 and then upgraded to CCS 5.1
View profile  Send private message
cleyan


Posts: 128
Posted: 06/23/2018, 12:51 PM Quote message

Hi,
most of my software made with CCS 5 work on servers with php 7.0 but none with php 7.1/7.2

Regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
cleyan


Posts: 128
Posted: 06/23/2018, 12:52 PM Quote message

Hi,
most of my software made with CCS 5 work on servers with php 7.0 but none with php 7.1/7.2

Regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
MichaelMcDonald

Posts: 627
Posted: 06/24/2018, 4:39 AM Quote message

sh!t might break !!!

http://php.net/manual/en/function.mysql-insert-id.php
_________________
Central Coast, NSW, Australia.

Use the EXETA Online Business Valuation Tool to
value your business.

www.exeta.com.au
View profile  Send private message
cleyan


Posts: 128
Posted: 07/05/2018, 9:31 AM Quote message

Since php 5.5/5.6 you should use MySQLi or PDO instead of old MySQL library, on CCS choose Improved MySQL

To get the last ID you could use;

  
$last_id = mysqli_insert_id($Component->DataSource->Link_ID);  

On AfterInsert event

Regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
cleyan


Posts: 128
Posted: 07/05/2018, 9:33 AM Quote message

Since php 5.5/5.6 you should use MySQLi or PDO instead of old MySQL library, on CCS choose Improved MySQL

To get the last ID you could use;

  
$last_id = mysqli_insert_id($Component->DataSource->Link_ID);  

On AfterInsert event

Regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message

Add new topic Reply to 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.

Web Database

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.