#1
  1. No Profile Picture
    anna
    Guest
    Devshed Newbie (0 - 499 posts)
    I want to write to file ten.html,
    as below:
    $fp=fopen("/home/bnnn/public_html/ten.html","a");
    fwrite($fp,"<tr><td class="chn"><img src="news/images/pinksquare.gif" width="8" height="7" border="0"><a href="disfa.php?id=$id">$titlen</a></td></tr><br>");
    fclose($fp)

    I need to use it SSI to my homepage,
    Is there any nice person tell me about it?
    I am looking for answer. I really appreciate it!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    14
    i had the same problem. I even added AddHandler server-parsed .php3 to my httpd.conf in Apache, but that started giving errors, untill somebody told me about the include() function. This includes the file and parses it as well. Everything works fine now



    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl
  4. #3
  5. No Profile Picture
    anna
    Guest
    Devshed Newbie (0 - 499 posts)
    i think i should to use Array to solve it,

    I thought some one may give me a good idea for that, anyway thanks to everyone

Similar Threads

  1. retrieve a line from a file
    By aleens in forum C Programming
    Replies: 10
    Last Post: February 26th, 2004, 05:05 AM
  2. What is the maximum line length for .csv file?
    By bnow in forum PHP Development
    Replies: 0
    Last Post: February 17th, 2004, 07:40 AM
  3. Opening file, finding line, then inserting new line
    By mach5 in forum Perl Programming
    Replies: 2
    Last Post: February 4th, 2004, 11:00 PM
  4. append at end of a line in a file
    By papajohns in forum Perl Programming
    Replies: 10
    Last Post: January 30th, 2004, 12:41 PM
  5. How to read multiple line text file into a variable
    By gatewaycityca in forum Visual Basic Programming
    Replies: 4
    Last Post: January 29th, 2004, 12:26 PM

IMN logo majestic logo threadwatch logo seochat tools logo