how to get screen print useing php

  • diyath
  • Newbie
  • Newbie
  • diyath
  • Posts: 5

Post 3+ Months Ago

I wont get screen print useing php script please help me do it
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

You don't need PHP for that. All you need is JavaScript and some CSS.

First, what I would do is create a CSS for a printer-friendly version of your site. Don't worry about the ads, navigation or anything in that CSS. Hide everything but the title, the article... the important stuff. The CSS decleration should look like this in the head of the site (Between <head>...</head>).

The print css should only show black and white with the content that will be printed only. This CSS will only start working when the printing is done. It won't actually show when the user is viewing/browsing your site.

HTML Code: [ Select ]
<link rel="stylesheet" type="text/css" media="print" href="print.css" />


And then you can add the print button/link

HTML Code: [ Select ]
<a href="javascript&#058;print(document)">print this page</a>
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Posts: 3245
  • Loc: South Africa

Post 3+ Months Ago

Bogey he wants to print the screen as in PrtScn, not the page (well at least I think that is it)
  • diyath
  • Newbie
  • Newbie
  • diyath
  • Posts: 5

Post 3+ Months Ago

thanks your reply. But I wont to take screen Screenshots not print
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8397
  • Loc: USA

Post 3+ Months Ago

Oh, you can't do that in PHP. You need something to render the page with.

Shrinktheweb is something that I have being using.


Other services are listed here

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 124 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.