Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
Deprecated
This function was deprecated.
MBS( "PHP.Load"; Path ) More
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
This function checks for a paid license.
Created 18th August 2014, last changed 23th January 2023
