Hi all,
I tried to run an executable file (which creates few files) from php using exec() function of php. But it does not create the files. What could be the problem?
Thanks,
Kasi
Unable to create file using exec()
Moderator: General Moderators
Problems with using system functions such as exec() usually comes down to either paths or permissions.
So try using the full path to the executable and also check it has sufficient permissions.
Also, if you're using *nix then you can easily find out what's wrong by doing 'su - apache' (or whoever the web server is running as) and run the exact same command you use in the exec(). .. this requires root access too though.
So try using the full path to the executable and also check it has sufficient permissions.
Also, if you're using *nix then you can easily find out what's wrong by doing 'su - apache' (or whoever the web server is running as) and run the exact same command you use in the exec(). .. this requires root access too though.