Thanks, Brian.
I did read the usage docs, and as far as I can tell, I'm using it
correctly. I tried creating the script you suggested, and it does the
same thing. Just a blank html page.
Security isn't that much of a concern because I have a dedicated
subdomain for dompdf and static IP's on both servers. I can just
remove all access except from the one IP I'm calling it from. In fact,
I have separate internal and external IPs on those servers, so I can
just call the script across the local network instead of the
Internet.
I've set up the script here:
http://dompdf.ccrcmenus.com/render.php?input_file=http://dompdf.ccrcmenus.com/html/test.html
dompdf.php is also in that directory, and you can view the test file
and see that it's incredibly simple and accessible. I think it might
be a 500 error at this point. Is there some module I need to have
enabled on the server? As I said, it works fine from the command line,
so it has to be something with Apache, or maybe a configuration option
I forgot to set.
If I REALLY have to, I can do some hackery with it and set up a script
to run it command-line and toss the output onto an NFS share, but
that's a ridiculously roundabout way of doing things. Oddly enough
that wouldn't even be the most messed-up part of the code I have to
work with every day.
I was hoping to make this simple. ;)
Thanks again for your help, guys.
~j
> For the most up-to-date information visit the wiki athttp://
code.google.com/p/dompdf/wiki/Introduction. I'm posting these
> links, however, because the usage page is not yet available on the
> wiki.
>
> FYI, making dompdf.php accessible on your web server isn't recommended
> if you're using DOMPDF 0.5.1 as it has a security vulnerability. Web
> access to this script has been removed completely from the current
> alpha. You'll need to create your own page that uses the DOMPDF class,
> but the code you need is pretty simple.
>
> Something along the lines of the following:
>
> <?php
> require_once("dompdf_config.inc.php");
> $dompdf = new DOMPDF();
> $dompdf->load_html($_GET['input_file']);
> $dompdf->render();
> $dompdf->stream("document.pdf");
> ?>
>
> accessed via a URL such ashttp://
www.example.com/pdf.php?input_file=http://www.example.com/pdf.htm