Re: [PHP] passthru

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 4:14 am, Payne wrote: > Does anyone know way to passthru man pages so they don't show the > ascii > formating? The man command itself has a man page which describes how to format the output to your liking, with or without all kinds of formatting. man man -- Some people ha

Re: [PHP] passthru

2007-08-06 Thread POLONKAI Gergely
Why don't you just use the man2html script? 2007. 08. 6, hétfő keltezéssel 05.14-kor Payne ezt írta: > Hi, > > Does anyone know way to passthru man pages so they don't show the ascii > formating? > > Payne >

Re: [PHP] passthru

2007-08-06 Thread Payne
Richard Heyes wrote: Does anyone know way to passthru man pages so they don't show the ascii formating? You could: 1) Replace all newlines (ASCII 10) with a tag. htmlspecialchars() will do this for you. 2) Use a tag within which newlines are preserved 3) Use preg_replace to replace non-pr

Re: [PHP] passthru

2007-08-06 Thread Richard Heyes
Does anyone know way to passthru man pages so they don't show the ascii formating? You could: 1) Replace all newlines (ASCII 10) with a tag. htmlspecialchars() will do this for you. 2) Use a tag within which newlines are preserved 3) Use preg_replace to replace non-printable characters (Ca

Re: [PHP] passthru() passing variables

2005-06-18 Thread Richard Lynch
On Fri, June 17, 2005 6:47 am, Jason Barnett said: > What is a reliable cross-platform way of showing which user PHP is > running as? http://php.net/get_current_user The bogus User Contributed note about REMOTE_USER is, well, bogus, almost for sure. If that fails, I guess you could try: Then

Re: [PHP] passthru() passing variables

2005-06-17 Thread Jason Barnett
What is a reliable cross-platform way of showing which user PHP is running as? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passthru() passing variables

2005-06-16 Thread Richard Lynch
I dunno what 127 actually means, but the last time we saw it on this list, it boiled down to: "You can't even run your 'sh' shell, much less Perl in that shell." Check what's in /bin/sh and what its permissions are. Make sure it's actually a valid shell binary, and not something bogus. If that'

Re: [PHP] passthru() passing variables

2005-06-16 Thread Richard Lynch
On Thu, June 16, 2005 11:44 am, Chris Herold said: > Thanks for the tips; however, I think I am still missing something. > > My perl script is running when called by passthru() because within the > body of the simple test code I have set it up to: > > > print "Content-type: text/html\n\n"; > > pr

Re: [PHP] passthru() passing variables

2005-06-15 Thread Richard Lynch
On Wed, June 15, 2005 5:36 pm, Chris Herold said: > I have been told that in order to pass variables via passthru() to > another script (in my case, a perl script) one can do the following ... > > passthru("home/test.cgi $var") > > and that $var will then be passed through to the cgi. > > I have tr

Re: [PHP] passthru and GET parameters

2004-02-23 Thread Marek Kilimajer
put quotes around: passthru("htmldoc -t html --quiet --jpeg --webpage --footer --bottom > 0.2cm --left 1.78cm --right 1cm --top 0.2cm '' $options '$filename'"); Guillouet Nicolas wrote: Hi all, I am trying to use htmldoc with passthru function : passthru("htmldoc -t html --quiet --jpeg --webpag

Re: [PHP] Passthru with Grep and Awk?

2004-01-15 Thread Brian V Bonini
On Thu, 2004-01-15 at 17:06, Carlton L. Whitmore wrote: > I'm having problems getting the following passthru statement to work. It > works fine with the just the grep command. > Help > > echo "\n"; > passthru('/usr/bin/grep " c=2048" " c=32" " c=2" /var/log/messages | > /usr/bin/awk "{prin

Re: [PHP] Passthru with Grep and Awk?

2004-01-15 Thread Jason Wong
On Friday 16 January 2004 06:06, Carlton L. Whitmore wrote: > I'm having problems getting the following passthru statement to work. It > works fine with the just the grep command. > Help > > echo "\n"; > passthru('/usr/bin/grep " c=2048" " c=32" " c=2" /var/log/messages | > /usr/bin/awk "{prin

Re: [PHP] passthru gives error in httpd/error_log

2003-11-22 Thread Jason Wong
On Friday 21 November 2003 08:53, Jesper Hansen wrote: > I'm trying to run a super simple command through passthru. > > Here's my test.php file: > > > > > > > It works if run directly with "php test.php". > When this is run from the browser, there is no output, and the > following error is logg

Re: [PHP] passthru gives error in httpd/error_log

2003-11-21 Thread Jesper Hansen
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > You probably have to put the full path to ls > > > -- > regards, > Tom No, I've tried that along with all other obvious path stuff. /Jesper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 10:53:08 AM, you wrote: JH> I'm trying to run a super simple command through passthru. JH> Here's my test.php file: JH> JH> JH> JH> It works if run directly with "php test.php". JH> When this is run from the browser, there is no output, and the JH> following e

Re: [PHP] passthru() problem

2003-07-02 Thread Jason Wong
On Wednesday 02 July 2003 22:04, david wrote: > I'm trying to get the output of a shell command with PHP > > This is the command I'm Trying to execute, I also tried using system > instead of passthru > > > > > passthru(ftpwho -v, $return_var); > > echo $return_var; > > ?> pass

Re: [PHP] passthru problems generating WAVs with mpg123

2002-10-26 Thread Justin French
I'm SURE you've got a good reason, but why are you wanting to generate a WAV on demand? The loss in file quality occurs going from WAV > MP3, so then later going back to WAV would only result in a bigger file size, with ZERO benefit in audio quality. Just asking :) Justin on 26/10/02 4:53 PM,

Re: [PHP] passthru Problems

2001-04-12 Thread Morgan Curley
You need to use a frameset to do what you want. the problem is the browser will only launch the Acrobat control if it receives the content type app/pdf, an html page uses the content type text/html. your links should point to another page that outputs something like the following based on inpu

Re: [PHP] passthru Problems

2001-04-12 Thread Jason Mowat
Greets, Just to elaborate: I want my user to be able to click on a hyperlink that points to my PDF file, and have a new window pop up, displaying the contents of the PDF file in the browser window (without prompting if they should save the file) as well as set the HTML tag to the name of the rep

RE: [PHP] passthru Problems

2001-04-12 Thread Krznaric Michael
I believe there is header called "Content-disposition: filename.pdf" which is defined in the proper RFC. And as far as I know some browsers don't respect it. Search the list for it, you should find allot of info. Mike -Original Message- From: Jason Mowat [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] passthru

2001-04-11 Thread Dean Hall
"Michael Dickson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On the server itself (to which I have root access) I type: > >someProgram arg1 arg2 arg3 > > and it runs properly, returning the proper output to standard output (the > screen). I can do this

RE: [PHP] passthru

2001-04-11 Thread Johnson, Kirk
Just guessing here. On our setup, PHP runs as nobody. Is there a permissions problem around "someProgram"? Kirk > -Original Message- > From: Michael Dickson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 11, 2001 1:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP] passthru > > > On t

Re: [PHP] passthru environment variables

2001-02-13 Thread Rich Puchalsky
OK, I finally found it. Someone else here recommended setenv -- it's actually putenv. putenv was *not* found through any search I could make on the PHP Web site involving the word environment and so on, I found it through Google. And it's apparently documented under "PHP Options and Information

Re: [PHP] passthru environment variables

2001-02-12 Thread Rich Puchalsky
Tim Ward <[EMAIL PROTECTED]> wrote: > fpassthru doesn't include the code in your php code. In just dumps the file > to output as it runs. I was using the command "passthru", which is supposed to pass the *output* of an external program through to standard out. In other words, let's say I wanted

RE: [PHP] passthru environment variables

2001-02-12 Thread Tim Ward
fpassthru doesn't include the code in your php code. In just dumps the file to output as it runs. Anything defined in PHP (inluding variables and functions) in the file passed through will not be available to the calling program. You need include(); Tim Ward Senior Systems Enginee

Re: [PHP] passthru environment variables

2001-02-11 Thread Rich Puchalsky
"Rich Puchalsky" <[EMAIL PROTECTED]> wrote in message 966dad$pkm$[EMAIL PROTECTED]">news:966dad$pkm$[EMAIL PROTECTED]... > "Richard Lynch" <[EMAIL PROTECTED]> wrote: > > http://php.net/setenv > > Thanks! But when I try this link, or the "Quick Ref" button on the PHP home > page, I can't find any

Re: [PHP] passthru environment variables

2001-02-11 Thread Rich Puchalsky
"Richard Lynch" <[EMAIL PROTECTED]> wrote: > http://php.net/setenv Thanks! But when I try this link, or the "Quick Ref" button on the PHP home page, I can't find anything about setenv. And the manual doesn't have anything about it under Program Execution Functions. Is it undocumented? --

Re: [PHP] passthru environment variables

2001-02-11 Thread Richard Lynch
> I'm trying to use passthru in a PHP program to have an external program > display some data. The problem is that I was trying to have the external > program's environment pick up the form field variables automatically passed > into the PHP program as shell environment variables. > > In other wo