Hi,
I am doing an example from Wrox Press Professional PHP programming. I have rewritten the code from book, but it doesn't work.
I would like to upload the txt file and name it with applicant's name.
Here is the piece of code that doesn't work as it should:
then I tried to write $applicant.txt instead $applicant and of course I have created the directory called temp, but is still get this:
Warning: copy(/temp/Niko.txt): failed to open stream: No such file or directory in c:\appserv\www\learning\jobapp action.php on line 72
This is a code from the book. Could anyone help me to find an error or write the code for file upload (and name a file after $variable) in different way?
Thank you