I want to open a file and write to it changes after doing a search and replace on certain text.
this is how I am trying it, but it does not work.
any ideas?
$fp = fopen ("<file_name>", "r+"
$fputs_str = ereg_replace ("sub_category_id", "XXX", "$fp"
fputs($fp, $fputs_str,strlen(100000));
this is how I am trying it, but it does not work.
any ideas?
$fp = fopen ("<file_name>", "r+"
$fputs_str = ereg_replace ("sub_category_id", "XXX", "$fp"
fputs($fp, $fputs_str,strlen(100000));