|
|
|
|
|
- Overview
- How to?
- Limitations
Migrating a WEBDEV site to PHP
WEBDEV allows you to create PHP sites without prior knowledge. The site is developed in WLanguage like any other WEBDEV website. You can also enter your PHP code directly. A syntax and lexical analysis is now available for PHP and JavaScript code. An existing WEBDEV site can be migrated to PHP. This help page presents the different operations to perform. We recommend that you to keep a version of your WEBDEV project before migrating it to PHP. When the pages are generated, the WEBDEV pages and the WLanguage functions are automatically converted to PHP. Note: Prerequisites:- PHP 7 servers: Version 7.0.22 or later recommended.
- PHP 8 servers: Version 8.0.10 or later recommended.
To migrate a WEBDEV site to PHP: - Open your project in WEBDEV.
- Open the project description: On the "Project" tab, in the "Project" group, click "Description". Then, indicate that the project is a site of type PHP. To do so, go to the "Project" tab, "Type of site" section, select "PHP" and click OK to confirm.
- For each page of your project, specify that the page is a PHP page. To do so, open the description window of each page in the editor (click "Description" in the context menu of the desired page). On the "General" tab, in the "Mode" section, select "PHP".
Note: The "Generate PHP pages with context" option allows you to use the global variables of the project in the pages. - Compile your project: On the "Project" tab, in the "Project" group, expand "Recompile and synchronize" and select "Recompile project". The errors are displayed in the "Compilation errors" pane in the editor. Adapt the code of your project to the specific features of PHP.
- If your project is associated with an analysis, you need to convert the analysis to MySQL. To do so, create a connection to an existing MySQL database on a server and associate the data files to this connection. The data files will be automatically created in this database (when calling HCreationIfNotFound or HCreation, or if "Automatically create the data files when they are opened" is enabled).
- Your project is migrated to PHP. It is ready to be run and deployed.
The following elements are not available in the PHP generation: - Currency, Buffer, Variant and Unicode string types.
If a currency Edit control is created, it is considered as a Numeric control. - the very loose equality "~~" operator
- the "*" operator for passing parameters by default
- two (and more)-dimensional arrays
- structures
- the "GOTO" statement
- the "NULL" keyword
- Object-Oriented Programming (OOP)
- default assignment of function parameters.
- WLanguage handles reals with higher precision (higher number of decimal places) than PHP.
Note: Prerequisites:- PHP 7 servers: Version 7.0.22 or later recommended.
- PHP 8 servers: Version 8.0.10 or later recommended.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|