This note is used to record some problems encountered in re-learning PHP and MYSQL web development (4th edition of the original book) and their solutions.
First of all, I use the wamp environment.
In Chapter 19, after creating the uploads folder under the root directory wamp, and completely inputting the code according to page 326 of the original book, after uploading, it shows that there is no such directory in the next 36 lines. After checking the code, it is found that the code in the book is /uploads/, but in fact there is no directory under uploads. After changing '/upload/' to '/uploads', the problem is solved.
Here I thought of a question. In php, should I add a backslash / after the directory name? It seems to be different according to different versions and situations. I will discuss the specific situation later.
Copyright statement: This article is written by the blogger Original articles cannot be reproduced without the permission of the blogger.
The above introduces the PHP and MySQL web development learning records, including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.