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

This is a discussion on RE: [PHP] How to access a program outside of PHP? within the PHP General forums, part of the PHP Programming Forums category; Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-11-2003
Adam Douglas
 
Posts: n/a
Default RE: [PHP] How to access a program outside of PHP?

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
> -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
> /htdocs/Sep08-113523.pdf`;
>
> >>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 mean to do this, $szPipe =

> popen(`/htdocs/gs -q
> >-dNOPAUSE -dBATCH -sDEVICE=pdfwrite
> >-sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf
> >/htdocs/Sep08-113523.pdf`, "r");. This does not seem change

> anything. If I
> >do this with the system() example, I get "Warning: system():

> Cannot execute
> >a blank command in /htdocs/index.php on line 14".

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0