[PHP] How to set paper size for PDF?

2002-10-31 Thread Drew Kime
I can set the page size with pdf_begin_page(), but if I set it to legal 
size I still have to change the printer setting to select the correct 
paper.  Otherwise it just scales the page down to fit letter paper.

Someone has insisted they've seen PDFs that automatically select the 
proper paper, but I can't find an option for it.

Drew


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



Re: [PHP] HTML Post

2002-10-30 Thread Drew Kime
I used a similar script and had the same problem I'm having with yours. 
 The first few lines returned in the '$response' variable are the 
headers from the POST operation.  When I get to the 'print' command at 
the end I get the headers generated by my server, then the headers 
retrieved from the POST operation are displayed on the page.

Is this because of how I have my server configured?  Or is there some 
run-tim way to tell the server to *not* generate headers, but simply 
send the specified text (including the headers) to the browser?

Drew Kime


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



Re: [PHP] How to pass data without headers

2002-10-28 Thread Drew Kime
Chris Shiflett wrote:

You can use the explode() function to separate the content part of the 
response, which is what you're interested in.

Here's a similar example that only returns the content:

http://shiflett.org/tutorials/php_post.txt

Thanks, that's nearly what I need.  But it seems there are some 
server-config-specific issues.  In your example, the server sets a "base 
href" tag before the doctype tag.  In my case, there is a special 
character before the doctype tag, and another after the end of the page 
data.

Thanks for the tip.

Drew


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



[PHP] How to pass data without headers

2002-10-28 Thread Drew Kime
I've used the example function in the 08 Jul 200 user note at 
http://www.php.net/manual/en/ref.sockets.php and have a problem with the 
headers.  The '$buf' value includes the headers sent by 'search.php'. 
When I echo it, the server first sends the headers, then it echos the 
contents of '$buf' which includes another set of headers, which get 
displayed to the page.

Is this a configuration issue, or am I missing a step?

Thanks for any help
Drew


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