Php operations on php files, read php operations on php files, it sounds a bit dizzy ?!! Use php to operate php pages. There is a small purpose. in a system, there may be some small items that cannot be stored in the database, but we need to call them frequently on other pages and update them, then we can solve it in this way. I encountered a few questions: "> <LINKhref =" http: // www. php1
Does it sound dizzy ?!! Use php to operate php pages. There is a small purpose. in a system, there may be some small items that cannot be stored in the database, but we need to call them frequently on other pages and update them, then we can solve it in this way. I encountered a few small problems and it took me half a day to solve them.
For example, you need to change a title, but creating a table for this title is obviously not suitable. So I thought about writing this variable into the php file for other pages to call. The name. php file requires the following content:
$ Name = "title ";
?>
You can update the word "title. How can we achieve this:
Add_name.php
Addname. php
$ Name = $ _ POST ['name']; // receives the name value from add_name.php.
If (empty ($ name) {// determines whether it is null
?>