Link to home
Start Free TrialLog in
Avatar of senda_letter
senda_letter

asked on

How do I run a Crystal Report in PHP

Hi,
I'm fairly well up on straight PHP but don't know much about Crystal Reports and know even less about how to get the two to work together.
A friend and I have managed to create a crystal report that we can run directly localhost.
I have created a php ticket logging website which has a page ready to be coded up to hold the report.
Basically this is a stats report on a database ticket system. Once a month we would like someone to be able to run the report via the website rather than directly on the machine.

I would like some advice on where to start. I have had a good look through other questions but they all seem to be about errors people are facing. What I need is help on where to start. I have PHP running on a windows machine with an sql database. I have absolutely no idea where to go from here. Any advice would be greatly appreciated, even if its just a link to another answer which I have missed that explains stuff from the start.

Thanks in advance
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

If there is a command line option for running a crystal report then you could look at using exec()

http://uk2.php.net/manual/en/function.exec.php

You say you can run it directly via localhost - do you mean on the local host or via the ip pseudo-address localhost?
Avatar of senda_letter
senda_letter

ASKER

I am not aware of a way to run it by command line but that doesnt mean there isnt.

I can run it in crystal reports on the machine itself using the crystal reports software.
ASKER CERTIFIED SOLUTION
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks. I'll give that a try see if it works.
THere is no command line interface to Crystal.

mlmcc