Q:

File Permission

How i can set owner and group to
  file in php , i write
chgrp("dompdf/background_image.html",1122);
but this is not working
it Set 99 instead of 1122

A:

PHP has a chown function available, however you need the permissions to do so, so you probably have to be root.
There is the change group functio also availbe, this is the one u used.
Examples are available there, you need the appropriate privileges. that is probably your problem.

