nahsorhseda
Member
- Messages
- 116
- Reaction score
- 0
- Points
- 16
a little help please.....!!!!
consider i ve got a directory "mydata"in the www directory
i want a script which can copy that ("mydata") directory when i use this html form below...
when i hit the submit button the directory "mydata" should be copied.with all its files
.... to a new name as typed by the user
if the name of the directory already exists it must return an error saying "already copied" n must not overwrite the files ..and if the name of the dir. doesnt exists the dir. must be copied acc to the user input and must echo "dir c0py successfull"
reference: http://php.net/copy
ill pay you 200 credits for the script the above task
and also tell me how do i echo the name of the directory in which a php page resides
for ex: page.php is in the folder"xyz" so i want it to escho the name of the folder xyz
i tried this echo"./$dir"; but it did not work .....any guesses
consider i ve got a directory "mydata"in the www directory
i want a script which can copy that ("mydata") directory when i use this html form below...
Code:
<form action=somepage.php>
<input type=text name=userinput>
<input type=submit>
</form>
.... to a new name as typed by the user
if the name of the directory already exists it must return an error saying "already copied" n must not overwrite the files ..and if the name of the dir. doesnt exists the dir. must be copied acc to the user input and must echo "dir c0py successfull"
reference: http://php.net/copy
ill pay you 200 credits for the script the above task
and also tell me how do i echo the name of the directory in which a php page resides
for ex: page.php is in the folder"xyz" so i want it to escho the name of the folder xyz
i tried this echo"./$dir"; but it did not work .....any guesses
Last edited: