Page 2 of 2

Re: Mysql in Mac OSX

Posted: Mon Feb 24, 2014 11:13 pm
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

Re: Mysql in Mac OSX

Posted: Tue Feb 25, 2014 7:41 am
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.