View Full Version : create a file with contents

05-27-2004, 02:28 PM
Found this thread (http://www.codingforums.com/showthread.php?t=2276&highlight=create+file+contents) which does what I want to do, but not when the new file contains php. Is there a better way to do this? Like maybe copy a file and rename it in order to get the new file? I'm trying to do it like this right now, but it's giving me a parse error.

$file_name = $img_type.html;

if (!is_file($epath . '/' . $file_name')){
copy($epath . '/newevent.html', $epath . '/' . $file_name);

05-27-2004, 06:00 PM

lose the '



05-27-2004, 08:55 PM
Wow, you would not believe how long I stared at that...

Thank you!!!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum