https://github.com/lenisha/cf-php
Sample PHP application connecting to SQL on PCF
https://github.com/lenisha/cf-php
cloudfoundry pcf php sqlserver
Last synced: 2 months ago
JSON representation
Sample PHP application connecting to SQL on PCF
- Host: GitHub
- URL: https://github.com/lenisha/cf-php
- Owner: lenisha
- Created: 2018-12-14T00:37:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T06:04:39.000Z (over 6 years ago)
- Last Synced: 2024-10-18T06:16:18.108Z (8 months ago)
- Topics: cloudfoundry, pcf, php, sqlserver
- Language: C
- Homepage:
- Size: 6.69 MB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample PHP/SQLServer application for PCF
Currently SQL server drivers are not included as part of PHP buildpack and trusty cells
To make it work
- include SQL Driver, unixODBC and PHP extension for SQL libraries along with the application
Refer to `php/lib` directory - copy all files
- Set `LD_LIBRARY_PATH` in manifest.yml to the directory containing driver libs
- Set `ODBCSYSINI` in manifest to point to location of `odbcinst.ini` file required by driver
- Activate sqlserver php extensions by adding definintions to `php.ini`. It is done byusing buildpack extensibility and adding `.extensions\sqlsrv` code that copies requeried definitions to php configurationhttp://appurl/testsql.php
Enjoy!