Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

PHP.Load

This function is used to indicate where PHP is installed on the computer.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PHP 2.9 Yes Yes Yes Yes No

MBS( "PHP.Load"; Path )

Parameters

Parameter Description Example value
Path The path to the dll (Windows) or dynamic library (Mac OS X) $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 Mac OS X.

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

Created 18th August 2014, last changed 24th February 2016


PHP.IsInitialized   -   PHP.Run

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos