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.

Re: [PHP] php and linux shell script

2005-04-19 Thread Rory Browne
http://gtk.php.net/ Can you elaborate on what gtk has to do with making command line dialog boxes? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List

Re: [PHP] php and linux shell script

2005-04-19 Thread Richard Lynch
On Tue, April 19, 2005 2:24 pm, Rory Browne said: http://gtk.php.net/ Can you elaborate on what gtk has to do with making command line dialog boxes? Well, you run it from the command line. And it makes dialog boxes. Maybe not the kind of dialog boxes you wanted or whatever, but that pretty

Re: [PHP] php and linux shell script

2005-04-18 Thread Richard Lynch
On Thu, April 14, 2005 11:52 pm, Balwant Singh said: 1) first of all i would like to inform you that i have made a PHP script which also have some amount of linux shell script in it for converting emails from EVOLUTION to MOZILA THUNDERBIRD just by executing this script. if anybody need it,

Re: [PHP] php and linux shell script

2005-04-15 Thread Rory Browne
I don't think you'll find anything in PHP as simple as the shell script version of dialog, but you may be able to bang something together like that using ncurses. Probably handier if your time is more important than the machines, to just use the shell version using one of the Program Executions

Re: [PHP] php and linux shell script

2005-04-15 Thread Andy Pieters
On Friday 15 April 2005 08:52, Balwant Singh wrote: 2) i am also exploring possibilities of using linux dialog boxes (used in shell scripting) with PHP. has anybody tried it, may please advise me how to call dialog boxes through PHP in CLI. also please share with me if u have information on

RE: [PHP] PHP as a shell script

2001-07-09 Thread Ben Bleything
It's simple. Find your php binary (or build one if you don't have one)... I think 'which php' will find it. Then, write a php file with '#!/path/to/php -q' at the top. Use any one of the various execution methods to run your programs. Done! I've been doing this for quite a while. I find it

Re: [PHP] PHP as a shell script

2001-07-09 Thread Kevin Pratt
Is there any special switches I have to pass to the compile of php to create the php binary? Kevin - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Kevin Pratt' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:03 AM Subject: RE: [PHP] PHP as a shell

Re: [PHP] PHP as a shell script

2001-07-09 Thread bleythbe
to the compile of php to create the php binary? Kevin - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Kevin Pratt' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:03 AM Subject: RE: [PHP] PHP as a shell script It's simple. Find your php

Re: [PHP] PHP as a shell script

2001-07-09 Thread Tyler Longren
Just don't compile it with apache or some other web server. It should create the executable then. Tyler - Original Message - From: Kevin Pratt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 12:01 PM Subject: [PHP] PHP as a shell script Can anyone direct me to a

RE: [PHP] PHP as a shell script

2001-07-09 Thread scott [gts]
dont use --with-apxs or --with-apache ./configure --my-options make make test make install that should do it. -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 3:07 PM To: Kevin Pratt; [EMAIL PROTECTED] Subject: Re: [PHP] PHP as a shell

Re: [PHP] PHP as a shell script

2001-07-09 Thread Kevin Pratt
Yep all done thanks... Kevin - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Monday, July 09, 2001 1:26 PM Subject: RE: [PHP] PHP as a shell script dont use --with-apxs or --with-apache ./configure --my-options make make test make install