hi,
I need to modify css file from php code based on the logo position selected by user; if user selects logo position :left then i need to write float :left; else i need to write float: right to css file,I have UI written in php file now i need to open css file from php code, how can I do it?
fopen('/path-to-file/','w');
This is assuming you have the permission to write the file
my code is as follows
$myfile1="C:/xampp/htdocs/joomla1.5/templates/$username$template/css/template_css.css"; $fh1 = fopen($myFile1,"a+") or die("can't open file");
but its not opening the file showing cant open the file message
First problem I see is that you define a path called $myfile1 but attempt to use a variable called $myFile1.