Re: [PHP] PHP to access shell script to print barcodes

2010-03-24 Thread Peter Lind
The problem you're getting is that your web-server interprets the request as a request for a normal file and just sends it - in effect, you're not outputting the postscript file, you're just sending the .php file. Normally, you'll only get your php executed if the file requested is a .php or

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Richard Quadling
On 23 March 2010 05:48, Jochem Maas joc...@iamjochem.com wrote: Op 3/23/10 3:27 AM, Rob Gould schreef: I am trying to replicate the functionality that I see on this site: http://blog.maniac.nl/webbased-pdf-lto-barcode-generator/ Notice after you hit SUBMIT QUERY, you get a PDF file with a

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Rob Gould
I love the idea of using PHP to insert data into Postscript. I'm just not sure how to make it happen. The good news is that I've got barcodes drawing just the way I need them: http://www.winecarepro.com/kiosk/fast/shell/barcodemerge.ps The bad news is that's all hard-coded Postscript. I'd

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Peter Lind
You can create a .php script that sets a proper header to make the browser download the file rather than display it. That also allows you to set the filename for the download. What you'd need to do is include something like: header(Content-Disposition: attachment; filename: 'barcodemerge.ps');

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Rob Gould
Well, that did something, and it does sound like it should work. I've scoured the web and haven't found anyone with code that does what I'm trying to do. I've got a working, hardcoded Postscript file here: http://www.winecarepro.com/kiosk/fast/shell/barcodemerge.ps But I need to somehow serve

Re: [PHP] PHP to access shell script to print barcodes

2010-03-22 Thread Jochem Maas
Op 3/23/10 3:27 AM, Rob Gould schreef: I am trying to replicate the functionality that I see on this site: http://blog.maniac.nl/webbased-pdf-lto-barcode-generator/ Notice after you hit SUBMIT QUERY, you get a PDF file with a page of barcodes. That's _exactly_ what I'm after.