Differences and efficiency between include () and fopen () functions
Source: Internet
Author: User
Differences and efficiency between include () and fopen () functions: include () & nbsp; and & nbsp; fopen () & nbsp; Functions & nbsp; difference and efficiency if I want to reference a file, is it highly efficient to use include () or use the functions & nbsp; fopen () include () and fopen ()?
Q: differences and efficiency between include () and fopen () functions
If I want to reference a file, is it highly efficient to use include () or fopen ()? what is the difference, for example:
Test. php file
$ AB = "sfsadfsadfd ....";
....
?>
High-end files, AB. php
Include (test. php); or fopen (test. php) // Can you call the $ AB variable!
?>
Currently, the mainstream CMS uses INCLUDE or FOPEN to call files!
There is another problem, I use include () to introduce the file, the volume of the variable has Chinese he will be garbled, but I in the header to set the UTF-8, this problem occurs during PHP5.2 testing, but not in the latest PHP version.
Include () garbled fopen ()? Function sharing: More
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.