i have a printer on my linux computer which also has KDE installed but i need to know if there is a way for testing if ghostscript is working by using php script or do i have to run a unix (bash) script to do that?

anyone knows?