Jump to content

dHTML or Pure CSS?


SharkBait

Recommended Posts

AFAIK the computer itself distinguishes between text and images.

 

Take for example two files: text.jpg and text.txt

text.txt contains "test" and test.jpg is an image saying "test".

 

<?php
echo 'text.txt contents:\n----------------------------\n'.file_get_contents('text.txt').'\n----------------------------\ntext.jpg contents:\n----------------------------\n\n'.file_get_contents('text.jpg').'\n----------------------------';
?>

 

Output would be something like this:

text.txt contents:
----------------------------
test
----------------------------

test.jpg contents:
----------------------------
*unreadable data here*
----------------------------

 

The difference is that while both an image and a text string is displayed on a computer monitor it will just be pixels but you couldn't get the computer to compare the image and the text (without OCR software) and you can't easily get the computer to e.g. "automatically" change the text to "hello" instead once the initial data was generated, but you can with strings.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.