[PHP] passthru and GET parameters

2004-02-23 Thread Guillouet Nicolas
Hi all,

I am trying to use htmldoc with passthru function : 

passthru(htmldoc -t html --quiet --jpeg --webpage --footer --bottom
0.2cm --left 1.78cm --right 1cm --top 0.2cm '' $options $filename);

where $filename is urls, it works fine but not with GET pamameters :
 if $filename is like
'http://host/file.php?PHPSESSID=**value=1', passthru is
waiting for the command.

I think the trouble comes from the char '', I have the same result on
command line except if I use quote for the filename. And when I watch
the process created by apache, the command is send without quote or
quotation mark even if I put some in the filename.

How can I do ?

Thanks 

Nicolas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 --webpage --footer --bottom
0.2cm --left 1.78cm --right 1cm --top 0.2cm '' $options $filename);
where $filename is urls, it works fine but not with GET pamameters :
 if $filename is like
'http://host/file.php?PHPSESSID=**value=1', passthru is
waiting for the command.
I think the trouble comes from the char '', I have the same result on
command line except if I use quote for the filename. And when I watch
the process created by apache, the command is send without quote or
quotation mark even if I put some in the filename.
How can I do ?

Thanks 

Nicolas

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php