By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,851 Members | 1,664 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,851 IT Pros & Developers. It's quick & easy.

inputing "==" in opened text files

P: 22
hi.. can you plz help me... i want to put an "==" in my opened text files but i don't know how.. i will show you the original output and my own program..

-----------------------------------------------------------------------------------------
= original output =

Volume in drive C has no label.
Volume Serial Number is ACF3-92D1

Directory of C:\Documents and Settings\Hitoshi Hyoda

2007/09/08 == 12:45 == <DIR> == .

2007/09/08 == 12:45 == <DIR> == ..

2007/03/01 == 16:52 == 290 == 1.txt

2007/04/24 == 07:03 == <DIR> == ChikkaDefault

2007/11/20 == 08:16 == <DIR> == Desktop

2007/11/16 == 16:56 == <DIR> == Favorites

2007/06/01 == 07:56 == <DIR> == logs

2007/11/19 == 17:00 == <DIR> == My Documents

2007/11/20 == 07:01 == 4 == pid.txt

2007/11/20 == 07:01 == 152 == PluginManager.log

2007/06/14 == 12:02 == 23 == presets.ini

2007/09/08 == 12:45 == <DIR> == Saved Games

2007/11/19 == 12:44 == <DIR> == Start Menu

2006/09/26 == 00:31 == <DIR> == WINDOWS

4 File(s) 469 bytes
10 Dir(s) 5,583,568,896 bytes free

-----------------------------------------------------------------------------------------
and this is my program/php code...

-----------------------------------------------------------------------------------------

=php code=
Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. $fc = "Check.txt";
  4. $handle = fopen($fc,"r");
  5. $content = fgetss($handle, 4026);
  6. $cont = htmlspecialchars(file_get_contents($fc));
  7. echo "<pre>".$cont."</br></pre>";
  8.  
  9. fclose($handle);
  10. ?>
  11.  
--------------------------------------------------------------------------------

hope you can help me.. thanks!..
Nov 29 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.