0
I am unable to include a php file which is in another server.
I have 2 servers one on which i have a php project and another which i have a php whose output i want to display. If that php has only phpinfo() it gets included and output is displayed but if i use other commands it does not execute/ display
6 Respostas
+ 5
Can you include the PHP code in original post's Description section? it will help if people can see your code to see why you are facing this issue.
+ 4
Saurabh Sharma How are you referencing the file from the other server?
Are both servers linux and what kind of path are you using for the included php? Is the other server being referenced via a network path or is it mounted as a drive?
What specifically happens with the other php commands? Is error output enabled to provide more details?
What commands did you attempt when nothing was displayed?
Have you applied the execute permissions on the included file?
Unfortunately, there are a lot of details required to provide more context on the problem.
+ 1
Saurabh Sharma Send me a DM via the SoloLearn account on Discord App. I can't promise how much time I will have to help. However, at least we can type on a proper desktop app and share screenshots and files.
You can search my name on Discord in the SoloLearn account.
0
Hi David.
I have numerous RHEL 6.4 production servers at various geographical locations. One RHEL 6.4 server I have at my place which I use to monitor these production servers. They all are connected over a network.
I was testing to run linux commands thru php. If i use href for that php it opens and display required result but if i include it in my local php it does not work.
0
It sounds like PHP and / or web service on your local machine isn't configured properly. It would be potentially painful to attempt to troubleshoot over this medium.
0
Then what do you suggest