ted_chou12 Posted December 8, 2006 Share Posted December 8, 2006 [code]<?php$dataf = "1.txt";$file = fopen("$dataf","w");$write = fwrite($file,"not important text");fclose($file);?>[/code]What code do I insert in if i want to rename the $dataf text file in numbers, eg. 1,2,3... in sequence, each time creating a new file with a interger above the last one? Link to comment https://forums.phpfreaks.com/topic/29912-renaming-files-with-number-series/ Share on other sites More sharing options...
mithu_sree Posted December 8, 2006 Share Posted December 8, 2006 http://www.php.net/renamehttp://www.phpfreaks.com/phpref/157.php Link to comment https://forums.phpfreaks.com/topic/29912-renaming-files-with-number-series/#findComment-137431 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.