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
PHP.Load
This function is used to indicate where PHP is installed on the computer.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
PHP
|
2.9 |
✅ Yes
|
✅ Yes
|
✅ Yes
|
✅ Yes
|
❌ No
|
MBS( "PHP.Load"; Path )
More
MBS(
"PHP.Load"; /* This function is used to indicate where PHP is installed on the computer. */
$Path) /* The path to the dll (Windows) or dynamic library (macOS) */
Less
Parameters
Parameter |
Description |
Example |
Path |
The path to the dll (Windows) or dynamic library (macOS) |
$path |
Result
Returns OK on success.
Description
This function is used to indicate where PHP is installed on the computer.
Pass the path to the php5ts.dll file on windows or the libphp5.dylib file on macOS.
If you get a crash here on MacOS, please check if crash report says Code Signature Invalid. Then you may need to code sign the dylib yourself to match the code signature of your runtime application.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Examples
Load PHP:
MBS( "PHP.Load"; "/Library/FileMaker Server/PHP/libphp5.dylib" )
See also
Example Databases
Blog Entries
Created 18th August 2014, last changed 10th August 2020
PHP.IsInitialized
-
PHP.Run
Feedback: Report problem or ask question.