creating a php file and then putting in directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

creating a php file and then putting in directory

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You mean, can a php file save itself to a file?
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

Post by reecec »

save a section of the script as a file
thanks reece
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

Post by reecec »

dont worry I have worked it out

thanks reece
Post Reply