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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.