Yes, the environment is linux+nginx on the server, and the php version is 5.6.
The script developed locally can successfully read and write xml, and I also changed the relevant file permissions on the server to 777 directly. But php cannot successfully read and write xml.
I checked related blogs on the Internet. Now I have downloaded xshell and connected to the server. I have determined that there should be something missing during the PHP installation process.
But here comes the cheating problem. I'm actually a u3d programmer. The things on the server are a little too scared to move. I saw two blogs on the Internet. The first one said that you can directly upgrade smoothly by #yum install php-xml
, but he didn't mention the environment. But there is another blog about it on the apache server. This has something to do with whether your php is compiled and installed. If not firstyum install php-gd yum install php-xml
< br>Then you need to restart the apache server. You have to manually add extensions when compiling and installing.
Our company's server environment is provided by an outsourcing company, but this function is urgent now, and I still can't get in touch with them. Our company does not have a complete team yet (I have already done some h5 and written some php). This is really a bit confusing. I hope someone can give me an accurate explanation, because I don’t dare to try randomly (I found a I wanted to try the virtual machine myself and downloaded virtualbox and centos7 in advance. However, my computer didn’t seem to support vt, so I had to worry about downloading it again.) Because something went wrong, I couldn’t solve it. Thank you all.
PHP lacks extension modules.
Download the module, compile, install, and generate. so
Modify php. ini
Restart the webserver
I hope it can help you, I do this professionally.
Don’t worry, go for it boldly