Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-31-2006, 08:11 AM   PM User | #1
Midgard
New to the CF scene

 
Join Date: Aug 2006
Location: Istanbul, Turkey
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Midgard is an unknown quantity at this point
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/
Midgard is offline   Reply With Quote
Old 08-31-2006, 01:40 PM   PM User | #2
amir
Regular Coder

 
Join Date: Mar 2005
Location: Pakistan
Posts: 207
Thanks: 0
Thanked 0 Times in 0 Posts
amir is an unknown quantity at this point
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.
amir is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:04 PM.


Advertisement
Log in to turn off these ads.