Mysql in Mac OSX

Stimulsoft Reports.PHP discussion
Chan Kuan Leang
Posts: 74
Joined: Sun May 20, 2007 9:14 pm
Location: Singapore

Re: Mysql in Mac OSX

Post by Chan Kuan Leang »

Thanks so much for the support.
I have finally able to resolve it after so much testing.

Code: Select all

function sti_get_report($report_key)
	{
		switch ($report_key)
		{
			case "Report": return file_get_contents("reports/Report.mrt");
			//case "report2": return file_get_contents("/reports/Document.mdc");
		}
		
		if (file_exists("reports/$report_key")) return file_get_contents("reports/$report_key");
		
		// If there is no need to load the report, then the empty string will be sent
		return "";
		
		// If you want to display an error message, please use the following format
		return "ServerError:Some text message";
	}
I just need to delete away the"../" in the file_exists and I able to show the report. Will start to enjoy the happy process in programming again.

Smile
Chankl78
Smile
Chan Kuan Leang
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Mysql in Mac OSX

Post by HighAley »

Hello.

We are very glad to know it.
Do not hesitate to contact us if you have any problems with our product.

Thank you.
Post Reply