Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Initializes PHP.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PHP | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
none
Returns Ok on success.
Init PHP on Windows:
Set Variable [$r; Value:MBS( "EnvironmentVariables.SetValue"; "PHPRC"; "C:\Users\Christian\Desktop\php-5.6.12-Win32-VC11-x64\\")]
Set Variable [$result; Value:MBS("PHP.Load"; "C:\Users\Christian\Desktop\php-5.6.12-Win32-VC11-x64\php5ts.dll")]
If [$result <> "OK"]
Show Custom Dialog ["php DLL was not found!"; "Please enter the path the php DLL in the field provided and try again."]
Exit Script []
End If
Set Variable [$result; Value:MBS("PHP.Init")]
If [$result = "OK"]
Show Custom Dialog ["Success!"; "php is ready to go."]
Else
Show Custom Dialog ["Error!"; "php couldn't be started"]
End If
Created 18th August 2014, last changed 10th August 2020
PHP.GetVariable - PHP.IsInitialized
Feedback: Report problem or ask question.