This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-10-09 11:29:14

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Any idea how...

How to make a html/php file and move it to a directory in php? For example, when a user registers:
it makes a directory with the name of the user
it makes a userpage file called index.php with the userpage code
it moves index.php to the directory


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#2 2011-10-09 14:55:05

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Any idea how...

bumpy, bump!


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#4 2011-10-09 16:16:41

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Any idea how...

Yes, but none of those actually MAKE a file.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#5 2011-10-09 16:25:54

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Any idea how...

http://www.tizag.com/phpT/filecreate.php
fopen automatically creates a file if one is not found.


http://i.imgur.com/zeIZW.png

Offline

 

Board footer