//////////////////
$content='<?php
$db_host="'.$mhost.'";
$db_name="'.$dname.'";
$db_user="'.$duname.'";
$db_pass="'.$dpass.'";
?>';
$file=@fopen("global.php","w");
@fputs($file,$content);
@fclose($file);
///////////////////
I tired this code one of my cpanel machine; its working fine I am able to create a file.
Whereas i have tried the same code in Directadmin machine; its not working; its not creating global.php file.
I donno what to do.... Do i have to set some permission?
$content='<?php
$db_host="'.$mhost.'";
$db_name="'.$dname.'";
$db_user="'.$duname.'";
$db_pass="'.$dpass.'";
?>';
$file=@fopen("global.php","w");
@fputs($file,$content);
@fclose($file);
///////////////////
I tired this code one of my cpanel machine; its working fine I am able to create a file.
Whereas i have tried the same code in Directadmin machine; its not working; its not creating global.php file.
I donno what to do.... Do i have to set some permission?