Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Location
    Istanbul, Turkey
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Content of any file - Copy to any file

    I have a template.html. I want copy content of this file to any file.

    How can I do?

    Thanks.
    Eggdrop Inc. - Application Developer
    http://www.eggdrop.gen.tr/

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just open the file template.html by fopen() and take its contents into a string variable and then write those contents in other file by fwrite()

    plz see this page for further assisstance
    http://www.php.net/fwrite
    God helps those who help others.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •