Daniel0 Posted August 26, 2007 Share Posted August 26, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/page/2/#findComment-334494 Share on other sites More sharing options...
Azu Posted August 26, 2007 Share Posted August 26, 2007 Okay. Just have it output text then like I said before. PHP rules! Quote Link to comment https://forums.phpfreaks.com/topic/64326-dhtml-or-pure-css/page/2/#findComment-334788 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.