PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • How to?
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
WEBDEV allows you to generate a PHP site without even knowing the PHP language. The site is developed in WLanguage like any other WEBDEV site.
You also have the ability to directly enter your PHP code.
A syntactic and lexical analysis is now available for the PHP code (and for the Javascript code).
An existing WEBDEV site can be migrated to PHP. This help page presents the different operations to perform. We recommend that you keep a version of your project in WEBDEV before it is migrated to PHP.
When generating the pages, the WEBDEV pages and the WLanguage functions are automatically converted into PHP pages.
Remark: Minimum version required:
  • PHP 4 servers: PHP version 4.3.2 (or later) is required.
  • PHP 5 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 5. The minimum recommended version is version 5.2.1.
  • Versions 21 and later
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    New in version 21
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
Remark: Minimum version required:
  • PHP 5 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 5. It is recommended to use version 5.3 onwards.
  • Versions 21 and later
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    New in version 21
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
  • A MySQL database is required.
How to?
To migrate a WEBDEV site to PHP:
  1. Open your project in WEBDEV.
  2. Open the project description: on the "Project" pane, in the "Project" group, click "Description". Specify that the project is a PHP project: check "Dynamic PHP site" ("General" tab) and validate.
  3. For each page of your project, specify that the page is a PHP page. To do so, display each page in the editor and display its description ("Description" from the popup menu of the page). Select "PHP page".
    Remark: the option "PHP generation with context" allows you to use the variables global to the project in the pages.
  4. Compile your project: on the "Project" pane, 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.
  5. If your project is associated with an analysis, you need to convert the analysis to the MySQL format. To do so, create a connection to an existing MySQL database found on a server and associate the files to this connection. The data files will be automatically created in this database (during the call to HCreationIfNotFound or HCreation, or if "Automatically create the data files when they are opened" is enabled).
  6. Your project is migrated to PHP. It can operate and be deployed.
Limitations
The following elements are not available in PHP generation:
  • The currency, buffer, variant and Unicode string types.
    If a currency edit control is created, it is considered as being a numeric control.
  • the very flexible 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 the function parameters.
  • the management of reals is more precise in WLanguage than in PHP (the number of decimals used in PHP is less than the number of decimals used in WLanguage).
Several WLanguage functions are available. For more details, see Functions available in PHP.
Remark: Minimum version required:
  • PHP 4 servers: PHP version 4.3.2 (or later) is required.
  • PHP 5 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 5. The minimum recommended version is version 5.2.1.
  • Versions 21 and later
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    New in version 21
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
Remark: Minimum version required:
  • PHP 5 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 5. It is recommended to use version 5.3 onwards.
  • Versions 21 and later
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    New in version 21
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
    PHP 7 servers: The PHP sites generated by WEBDEV can also be used by PHP servers version 7. It is recommended to use version 7.0.22 onwards.
  • A MySQL database is required.
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment