RE: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Adam Douglas
Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work. I meant to do this: $szPipe = `/htdocs/gs -q

Re: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Raditha Dissanayake
btw have you checked if you are in safe_mode? in php.ini error level can also be set in php.ini my guess is that you have a problem in your chroot setup. best regards Adam Douglas wrote: Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error

RE: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Adam Douglas
No I have Safe_Mode = off. I also have error_reporting = E_ALL and display_errors = on and I have php errors to log to a log file. I have no log file of php errors nor is there an error being display on the page. Geez this is frustrating, yeah that's what I figure but you would think there can be

[PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
Hi. I'm trying to develop a web interface to the ghostscript (gs) application. I have the ghostscript syntax down perfectly in the console. Now when I go to try and do it in PHP I get nothing. No errors, nothing just a blank page with PHP logs turned on and errors turned on. I'm running Apache

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
Hi, 1) please try $szPipe and see if you get any output. 2) if you are jailed in /var/htdocs/ your pathname /htdocs/qs is incorrect. 3) I guess you tried running gs from the jail either as yourself or as root. please see if nobody or apache (the webserver's user) can run gostscript. all the

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread CPT John W. Holmes
From: Adam Douglas [EMAIL PROTECTED] Hi. I'm trying to develop a web interface to the ghostscript (gs) application. I have the ghostscript syntax down perfectly in the console. Now when I go to try and do it in PHP I get nothing. No errors, nothing just a blank page with PHP logs turned on

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
1) please try $szPipe and see if you get any output. 2) if you are jailed in /var/htdocs/ your pathname /htdocs/qs is incorrect. 3) I guess you tried running gs from the jail either as yourself or as root. please see if nobody or apache (the webserver's user) can run gostscript. 1)

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
Hi. I'm trying to develop a web interface to the ghostscript (gs) application. I have the ghostscript syntax down perfectly in the console. Now when I go to try and do it in PHP I get nothing. No errors, nothing just a blank page with PHP logs turned on and errors turned on. Does

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
Adam Douglas wrote: 1) When I echo out $szPipe I get Resource id #2. Sorry i was thinking of backticks. btw have you tried it ? (backticks) 2) Oops, that chrooted in /var/www/. So I thought I should be putting just a /htdocs/, no? yeps. 3)Yes I tried running gs in the console as root works

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Marek Kilimajer
Adam Douglas wrote: 3)Yes I tried running gs in the console as root works fine and as myself and that works fine. The user is www that runs httpd. How could I test to see if www has access? To my understanding such accounts can not be used to log in with. # su www -- PHP General Mailing List

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
1) When I echo out $szPipe I get Resource id #2. Sorry i was thinking of backticks. btw have you tried it ? (backticks) Backticks? Is this a PHP API function, I can't find it? That's the thing here I haven't been able to get things to work and I have no clue what I should use, exec(),

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
hi Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in my country :-) for example if you want to invoke ls from php you just type $result = `ls`; hey presto the output from ls is now in your $result variable. all the best Adam Douglas

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in my country :-) for example if you want to invoke ls from php you just type $result = `ls`; hey presto the output from ls is now in your $result variable. Ohhh okay. Well if you

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
I meant to do this: $szPipe = `/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`; Adam Douglas wrote: Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in