php.ini file creation in server
<p>I am developing a php website.</p>

<p>I cant see php.ini file in my server. my host will not provide it.</p>

<p>So i'm now going to create a copy of that php.ini file.</p>

<p>so i have tried system()</p>

<p>i searched in google and i got this link.
<a href="http://drupal.org/node/290592" rel="nofollow">http://drupal.org/node/290592</a></p>

<p>Here they are using like this</p>

<p>system("cp /usr/local/php5/lib/php.ini /home/YOURUSERNAME/php.ini"); </p>

<p>in my server when i looked the phpinfo my php.ini location is </p>

<p>/ms/svc/php5/conf/php.ini </p>

<p>and when i looked for the current directory of my server using this </p>

<p>$dir_path = str_replace( $_SERVER['DOCUMENT_ROOT'], "", dirname(realpath(<strong>FILE</strong>)) ) . DIRECTORY_SEPARATOR; </p>

<p>i got my current directory as </p>

<p>/netapp/whnas-swamp/s11/s11/01712/www.sample.com/webdocs/</p>

<p>so my system command will now look lke this</p>

<p>system("/ms/svc/php5/conf/php.ini  /netapp/whnas-swamp/s11/s11/01712/www.sample.com/webdocs/php.ini"); </p>

<p>i have named this page as getthephpini.php</p>

<p>and when i b rowse this page i got a blank page  but no new php.ini file created in my server.</p>

<p>Is any mistake in  that code???
Can any one show me the correct way</p>

<p>Please help me</p>

<p>Thanks</p>
