PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
First of all, i think that you didn't copy html2ps to your server root or that you can't open remote connections.
Secondly, there is an error in my script: Instead of:
Warning: fopen(c:\Inetpub\wwwroot\html2ps_v194\public_html/cache/4655393d48e7bc1ee0ec1459a1a4806f) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 54
Warning: fwrite(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 55
Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 56
Warning: fopen(c:\Inetpub\wwwroot\html2ps_v194\public_html/cache/69d54a0f69982252aa36f00d09098550) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 54
Warning: fwrite(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 55
Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 56
Warning: fopen(c:\Inetpub\wwwroot\html2ps_v194\public_html\fpdf/font/arial.z) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\html2ps_v194\public_html\fpdf\font\makefont\makefont.php on line 232
Can't write to file c:\Inetpub\wwwroot\html2ps_v194\public_html\fpdf/font/arial.zFetching: http://www.google.com Status code:302 Redirected to:http://www.google.co.uk/ Fetching: http://www.google.co.uk/ Status code:200 Guessed: 'http://www.google.co.uk/url?sa=p&pref=ig&pval=3&q=http://www.google.co.uk/ig%3Fhl%3Den' Guessed: 'http://www.google.co.uk/' Fetching: http://www.google.co.uk/ Status code:200 PHP Warning: fopen(c:\Inetpub\wwwroot\html2ps_v194\public_html/cache/4655393d48e7bc1ee0ec1459a1a4806f) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 54 PHP Warning: fwrite(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 55 PHP Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 56 Guessed: 'http://www.google.co.uk/intl/en_uk/images/logo.gif' Fetching: http://www.google.co.uk/intl/en_uk/images/logo.gif Status code:200 PHP Warning: fopen(c:\Inetpub\wwwroot\html2ps_v194\public_html/cache/69d54a0f69982252aa36f00d09098550) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 54 PHP Warning: fwrite(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 55 PHP Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\html2ps_v194\public_html\image.class.php on line 56 Guessed: 'http://www.google.co.uk/search' Guessed: 'http://www.google.co.uk/imghp?hl=en&tab=wi' Guessed: 'http://www.google.co.uk/intl/en/options/' Guessed: 'http://www.google.co.uk/advanced_search?hl=en' Guessed: 'http://www.google.co.uk/preferences?hl=en' Guessed: 'http://www.google.co.uk/language_tools?hl=en' Radiobutton with empty 'value' attribute Guessed: 'http://www.google.co.uk/intl/en/ads/' Guessed: 'http://www.google.co.uk/services/' Guessed: 'http://www.google.co.uk/intl/en/about.html' PHP Warning: fopen(c:\Inetpub\wwwroot\html2ps_v194\public_html\fpdf/font/arial.z) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\html2ps_v194\public_html\fpdf\font\makefont\makefont.php on line 232
The major problem is the "premission denied" problem.
I never have worked with IIS, only with Apache. So, I don't know how you can solve the premission denied problem!...
I have another solution, but that one is not freeware: http://www.guangmingsoft.net/index.htm has a project called "HTML Snapshot". You can download the demo and try it, it is much more faster and requires only simple install. Try it.