Is there something wrong with my php code? -


this question has answer here:
something wrong replace string? 1 answer

ok have php code:

<?php $str="hwids.html" str_replace($_get['hwid']."<br />","",$str); ?> 

and when go html script after running php script, text still there told remove

can help?

forgot semicolon

$str="hwids.html"; 

but html script should not change cause making replace in string "hwids.html"

correct solution in case:

$file = 'hwids.html'; file_put_contents($file,str_replace($_get['hwid']."<br />",'',file_get_contents($file))); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -