AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones varias de WEBDEV
  • Miscellaneous
  • Encoding parameters
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Calls an external .php script and returns the result in a string. An http request is sent: you can use either a POST method or a GET method.
It is recommended to use this function to run PHP scripts (rather than ScriptExecute).
Ejemplo
// Runs the "Script1.php" script found at the root 
// of the Web site and returns the result in S
MyBuffer is Buffer
MyBuffer = PHPExecute("/Script1.php")
// Login page in php. Sends 3 parameters with the POST method
// The script is found in the php directory
MyBuffer is Buffer
MyBuffer = PHPExecute("/php/Login.php", "Name=BOB&Pass=My+Secret&Lang=3", True)
Sintaxis
<Result> = PHPExecute(<Script name> [, <"Name1=Param1&Name2=Param2&..."> [, <Runtime method>]])
<Result>: Buffer or character string
Result of the script. In most cases, this result can be displayed by StringDisplay.
<Script name>: Character string
Address of the script. The script URL can have the following format:
  • "http://NomDeServeur/Adresse.php": the Adresse.php script is located on the "ServerName" machine
  • "/Scripts/MonScript.php": The MonScript.php script is located on the current server, in the "/Scripts" subdirectory of the site.
  • you have the ability to use a secure address (https)
<"Name1=Param1&Name2=Param2&...">: Character string
Parameters intended for the script. This string contains for each parameter:
  • the parameter name,
  • the sign'=',
  • the parameter value.
Two parameters are separated by the & sign.
<Runtime method>: Boolean
  • True to run a POST method,
  • False (default) to run a GET method.
Observaciones

Miscellaneous

PHPExecute is slower than PHPDisplay.

Encoding parameters

The content of parameters is automatically encoded to get a valid URL:
  • transformation into UTF-8 (according to the options of the page and project).
  • encoding of special characters.
Componente: wd300page.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local