Load Connection Strings from a config file

Stimulsoft Reports.PHP discussion
Post Reply
almeida
Posts: 1
Joined: Fri Dec 09, 2011 6:28 am
Location: Brazil

Load Connection Strings from a config file

Post by almeida »

Hi,

I am a novice Report.Fx for Php user...

Is there a way to have a config file with the information for the mysql connection and set the .mrt file to use it?

I made several reports (.mrt) and when I have to deploy them on the user server I have to change them one-by-one...

Thanks,
Almeida
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Load Connection Strings from a config file

Post by Vladimir »

Hello, Almeida

You can use the 'sti_get_connection_string()' function in the 'index.php' file to specify a connection for all reports.

Thank you.
Post Reply