PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to use functions like opendir, is_dir, closedir and exec functions on my work server but none of them are working, the php file is rendered as html text. No errors/no warnings.
The admin has checked the file permissions, and I have full control, yet nothing works.
A phpinfo test shows that php is there but is there something that I'm missing?
Note: that the php scripts I am trying to use are tested on my server and they work.
Sindarin wrote:I am trying to use functions like opendir, is_dir, closedir and exec functions on my work server but none of them are working, the php file is rendered as html text. No errors/no warnings.
The admin has checked the file permissions, and I have full control, yet nothing works.
A phpinfo test shows that php is there but is there something that I'm missing?
Note: that the php scripts I am trying to use are tested on my server and they work.
I think there is a problem with your configuration of the server. Check again that you have all the files needed, that they are in the right place and most important that the php extension in php.ini are activated in the right order.
I had similar problems with Win XP and IIS 5.1 and finally I installed using the installer.
As ~Rovas has said, it sounds like your server is not parsing PHP files, or rather files you assumed PHP would parse. This is an installation issue, which needs to be checked by the server administrator.