Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. $file = FCPATH.'applicationconfigassets_fe.php';
  2.  
  3. if(is_writable($file)){
  4.  
  5. $open = fopen($file, 'W');
  6. if(!fwrite($open, $frontend)){
  7.  
  8. echo "Could not write file!";
  9.  
  10. } else {
  11.  
  12. echo "File written!";
  13. }
  14.  
  15. } else {
  16.  
  17. echo "File not writable!";
  18.  
  19. }
  20.  
  21. write_file(FCPATH.'application/config/assets_fe.php', $frontend, 'W');
  22. write_file('application/config/assets_fe.php', $frontend, 'W');
  23. write_file('./application/config/assets_fe.php', $frontend, 'W');
  24.  
  25. $this->config->load('filename');
  26.  
  27. $this->config->set_item('item_name', 'item_value');
  28.  
  29. $this->config->set_item('ftp_frontend', array(...));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement