fikiwan Posted July 14, 2013 Share Posted July 14, 2013 hello.... I have file foto with name : my foto You.flv_snapshot_00.18_[2013.06.24_12.12.05].jpg I have do upload that foto , the picture move to directori but not save in database.... I think the problem lies name my picture ... .. How to rename foto be name valid more .. thnks Regards ... Link to comment Share on other sites More sharing options...
Labtec Posted July 14, 2013 Share Posted July 14, 2013 (edited) How are you sending it to the database, I'd guess you are not using prepared statements? Can you provide your code? Regards, Lab. Edited July 14, 2013 by Labtec Link to comment Share on other sites More sharing options...
justsomeguy Posted July 15, 2013 Share Posted July 15, 2013 You can use this to rename an existing file: http://www.php.net/manual/en/function.rename.php You can also specify whatever name you want when you call move_uploaded_file. Link to comment Share on other sites More sharing options...
fikiwan Posted July 21, 2013 Author Share Posted July 21, 2013 thanks i get it ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now