PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Nov 21, 2019 6:11 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: locking the table
PostPosted: Fri Jun 06, 2008 4:33 am 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
hi friends
i have a table with some pics on it that its contents is updated every time it is reloaded .how can i lock this that when the user see it on the browser he/she can't change its width or .... and can't copy it to any other editors?
Regards


Top
 Profile  
 
 Post subject: Re: locking the table
PostPosted: Fri Jun 06, 2008 5:48 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
Locking the width of an HTML table is just a matter of giving it a specific width, and maybe using the nowrap attribute.

Stopping people copying the images is impossible. You can make it difficult by ofuscating the code, using background display with a transparent cover image, and loading the images via Javascript... but once the image is on the screen the user will always be able to capture it with their Printscreen key. Ultimately any attempt to secure your images will be futile. It's best to watermark them if they're really important.


Top
 Profile  
 
 Post subject: Re: locking the table
PostPosted: Fri Jun 06, 2008 8:35 am 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
hi
it is no matter that user can save it. it is important that he can't for example copy and past the table in "word documents" .i wonder if there is any way to convert my table to an image and then show it to the user??
Regards


Top
 Profile  
 
 Post subject: Re: locking the table
PostPosted: Fri Jun 06, 2008 9:44 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
Converting to a single image is easy. Create a new image with GD (imagecreate() or imagecreatetruecolor() ), and use imagecopy() to copy all the images on to it. Then send it to the user with imagejpeg().


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group