i’ve been creating a user file system for my site. I’m trying to make it so right as soon as someone registers on the register.php page it copies the index.php file in my error folder to the users profile picture folder.
Here is a tree of my web folder:
error/index.php, nofile.png
index.php
register.php
members/0,1,2,3,4,etc to 30. - User id's, new one made whenever someone signs up.
.
I want the file from the error folder to copy into the members/$id folder when someone registers to my website.
Please help,
-Matt.
i’ve been creating a user file system for my site. I’m trying to make
Share
in register.php use function copy:
Where x is the number assigned to the new user
The function copy the first argument file to the second one.