An open API service indexing awesome lists of open source software.

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

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 configuration

http://appurl/testsql.php

Enjoy!