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!
it was working fine for few days but now it gives me error:
Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s)
Last edited by onion2k on Wed Jul 29, 2009 4:05 am, edited 1 time in total.
Reason:Moved to the correct forum, added [php] tags, and updated the title.
Your server has been updated to restrict file commands (copy() in this case), presumably to make it more secure. Consequently your script doesn't work any more. Try reading the manual page for move_uploaded_file() and use that instead. It generally works even when there are safe mode restrictions in place.
As it's urgent, if you can't write PHP yourself, I suggest hiring someone to fix it for you. This forum is not really the place to get rapid fixes for code - it's really for PHP developers to discuss things they're working on.
Ufile is the name of textbox where the user attach the file
if he doesnot attach a file then the textboxes (that i have which contains the information )
gets vopied in .doc automatically