Page 1 of 1

creating a php file and then putting in directory

Posted: Mon Jul 24, 2006 10:18 am
by reecec
Hi all


is there a way that i can do this kind of thing in PHP

Code: Select all

<?php mkdir("<folder name>"); ?> //make the folder
//then the script 
<?


The script would be here 


?>

then save this script as a file and put in new directory

I tried to explain what I ment as well as I could if you dont understand i will try to explain again.

Thanks reece

Posted: Mon Jul 24, 2006 10:20 am
by Chris Corbyn
You mean, can a php file save itself to a file?

Posted: Mon Jul 24, 2006 10:23 am
by reecec
save a section of the script as a file
thanks reece

Posted: Mon Jul 24, 2006 10:52 am
by reecec
dont worry I have worked it out

thanks reece