Chmod function is not working in php code
Posted: Fri Sep 17, 2010 9:58 am
HI Friends,
Goal:
My website has forms and when the user fills and submits the form with the data.Then the data collected from the forms are getting saved in a new file "data.html". This file is created dynamically on fly and then we are creating a pdf file (html - > pdf) and this pdf generated will be attached to an email which will be sent to administrator or owner of the website.
Problem:
We are able to create the "data.html" and for generating the pdf file we need to retrieve the data from the "data.html". For this "data.html" need the 777 permissions.
For assigning the permissions, we are using chmod function.
Problem is that the chmod function is not working.
Is there any other alternative to tackle this issue.
(Note: Chmod function is working in shared hosted server but not working in dedicated hosted servers. Tried in many servers.)
Thanks,
Saikrishna.
Goal:
My website has forms and when the user fills and submits the form with the data.Then the data collected from the forms are getting saved in a new file "data.html". This file is created dynamically on fly and then we are creating a pdf file (html - > pdf) and this pdf generated will be attached to an email which will be sent to administrator or owner of the website.
Problem:
We are able to create the "data.html" and for generating the pdf file we need to retrieve the data from the "data.html". For this "data.html" need the 777 permissions.
For assigning the permissions, we are using chmod function.
Problem is that the chmod function is not working.
Is there any other alternative to tackle this issue.
(Note: Chmod function is working in shared hosted server but not working in dedicated hosted servers. Tried in many servers.)
Thanks,
Saikrishna.