Loading ...
Sorry, an error occurred while loading the content.

475help to append a file

Expand Messages
  • raji skariah
    Apr 28, 2007
      hi all..
      I want a help to append a .doc file..
      when i click on a link, i want to open the specified .doc file from the server & a name to get added to it from the table..

      my code is like this i tested..

      $filename = $m_tmppath;
      $fh = fopen($filename, 'a+') or die("can't open file");
      $stringData = "this is a test data to append to the file";
      fwrite($fh, $stringData);

      but when i open the file.. I am getting it as blank..not even getting the existing contents nor the testdata....Can anyone help me out of this problem?

      With Love & Prayers,
      Raji Pramod

      Ahhh...imagining that irresistible "new car" smell?
      Check outnew cars at Yahoo! Autos.

      [Non-text portions of this message have been removed]
    • Show all 5 messages in this topic