Home Forums Gamescan Chat42 About
* Login   * Register * FAQ    * Search
It is currently Sun 07-06-2025 4:02AM

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: server side printing in php, help?
PostPosted: Fri 10-06-2006 4:12PM 
Offline
Lieutenant
User avatar

Joined: Wed 03-03-2004 11:59AM
Posts: 85

Source: CompSci Building
I am trying to print from php to a remote printer from the server, my code looks like:

<?php
system("a2ps text.txt");
?>

One would think this would send the file to the default printer, the system("ls"); works and will output the directory information to the webpage. I have also tried system("cat text.txt | a2ps"); all of the commands will work from the command line and send to the printer correctly. The thing is, none of the printing works from inside php. I have also tried calling a program and a script (both local realative to the php file) with system and niether worked. Any help, please?

_________________
Nobody expects the Spanish inquisition!


Top
 Profile  
    
 Post subject:
PostPosted: Sat 10-07-2006 12:02PM 
Offline
Colonel
User avatar

Joined: Wed 08-24-2005 2:44PM
Posts: 620

Source: TJ South
just a guess:
your php runs under a user that is not allowed to print

_________________
It seems the white trash of the internet has arrived.
http://rsaxvc.net


Top
 Profile  
    
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group